Skip to content

test_distutils failing on OpenSUSE 10.3, Py3k #50125

Closed

Description

@ShuaibKhan
BPO 5875
Nosy @tarekziade, @merwok, @skrah
Files
  • output.txt: Complete output of "./python Lib/tests/regrtest.py -v test_distutils"
  • rpm-tmp.15210
  • rpm-tmp.15211
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/merwok'
    closed_at = <Date 2011-11-03.17:24:43.737>
    created_at = <Date 2009-04-29.07:49:31.026>
    labels = ['tests', 'type-bug', 'library']
    title = 'test_distutils failing on OpenSUSE 10.3, Py3k'
    updated_at = <Date 2011-11-03.17:45:09.582>
    user = 'https://bugs.python.org/ShuaibKhan'

    bugs.python.org fields:

    activity = <Date 2011-11-03.17:45:09.582>
    actor = 'skrah'
    assignee = 'eric.araujo'
    closed = True
    closed_date = <Date 2011-11-03.17:24:43.737>
    closer = 'eric.araujo'
    components = ['Distutils', 'Tests']
    creation = <Date 2009-04-29.07:49:31.026>
    creator = 'ShuaibKhan'
    dependencies = []
    files = ['13810', '13811', '13812']
    hgrepos = []
    issue_num = 5875
    keywords = []
    message_count = 16.0
    messages = ['86781', '86783', '86789', '86790', '86791', '86792', '86793', '145649', '145717', '145758', '146631', '146708', '146749', '146950', '146952', '146955']
    nosy_count = 6.0
    nosy_names = ['tarek', 'eric.araujo', 'rpetrov', 'ShuaibKhan', 'skrah', 'neologix']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue5875'
    versions = ['Python 3.2', 'Python 3.3']

    Activity

    1. ShuaibKhan commented on Apr 29, 2009

      ShuaibKhanmannequin
      MannequinAuthor

      Hi,

      Running test_distutils as a non root user fails for me. Running it as a
      root user works.

      System information:

      uname -a
      Linux Matrix 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC i686
      i686 i386 GNU/Linux

      ./python --version
      Python 3.1a2+

      ======================================================================
      ERROR: test_no_optimize_flag
      (distutils.tests.test_bdist_rpm.BuildRpmTestCase)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File
      "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/tests/test_bdist_rpm.py",
      line 114, in test_no_optimize_flag
          cmd.run()
        File
      "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/command/bdist_rpm.py",
      line 363, in run
          self.spawn(rpm_cmd)
        File "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/cmd.py", line
      368, in spawn
          spawn(cmd, search_path, dry_run=self.dry_run)
        File "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py", line
      31, in spawn
          _spawn_posix(cmd, search_path, dry_run=dry_run)
        File "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py", line
      139, in _spawn_posix
          % (cmd[0], exit_status))
      distutils.errors.DistutilsExecError: command 'rpmbuild' failed with exit
      status 1

      ======================================================================
      ERROR: test_quiet (distutils.tests.test_bdist_rpm.BuildRpmTestCase)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File
      "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/tests/test_bdist_rpm.py",
      line 74, in test_quiet
          cmd.run()
        File
      "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/command/bdist_rpm.py",
      line 363, in run
          self.spawn(rpm_cmd)
        File "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/cmd.py", line
      368, in spawn
          spawn(cmd, search_path, dry_run=self.dry_run)
        File "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py", line
      31, in spawn
          _spawn_posix(cmd, search_path, dry_run=dry_run)
        File "/home/shuaib/Tools/GSoC2009/py3k/Lib/distutils/spawn.py", line
      139, in _spawn_posix
          % (cmd[0], exit_status))
      distutils.errors.DistutilsExecError: command 'rpmbuild' failed with exit
      status 1

    2. added
      stdlib
      tests
      type-bug
      on Apr 29, 2009
    3. tarekziade commented on Apr 29, 2009

      tarekziademannequin
      Mannequin

      can you try to remove all /var/tmp/rpm-tmp.* directories and relaunch
      the tests as a simple user ?

      I would like to see if this problem doesn't occur because this temp
      directory was previously created by root.

    4. ShuaibKhan commented on Apr 29, 2009

      ShuaibKhanmannequin
      MannequinAuthor

      Tried. Same failure.

    5. tarekziade commented on Apr 29, 2009

      tarekziademannequin
      Mannequin

      can you tell me the owner and permission setttings for:

      • /var/tmp/rpm-tmp.*
      • /var/tmp

      (and if /var/tmp is a symklink, if it points to /tmp,
      and in that case the same info for /tmp)

    6. ShuaibKhan commented on Apr 29, 2009

      ShuaibKhanmannequin
      MannequinAuthor

      drwxrwxrwt 5 root root 4096 2009-04-29 15:46 tmp

      And after a number of failed test runs...

      -rw-r--r-- 1 shuaib users 893 2009-04-29 16:01 rpm-tmp.11523
      -rw-r--r-- 1 shuaib users 893 2009-04-29 16:01 rpm-tmp.11524
      -rw-r--r-- 1 shuaib users 893 2009-04-29 15:46 rpm-tmp.13270

    7. tarekziade commented on Apr 29, 2009

      tarekziademannequin
      Mannequin

      Can you remove

      /var/tmp/foo-0.1-1-buildroot

      and try again ?

      if it fails, can you look at the permissions of

      /var/tmp/foo-0.1-1-buildroot/dev/null/lib

    8. ShuaibKhan commented on Apr 29, 2009

      ShuaibKhanmannequin
      MannequinAuthor

      I've already tried the removal of foo... directory. Failed.

      I think the following might be interesing...

      drw-rw-rw- 3 shuaib users 4096 2009-04-29 15:46 null

      Permissions for null/lib are as follows:

      drwxr-xr-x 3 shuaib users 4096 2009-04-29 15:46 lib

    9. skrah commented on Oct 16, 2011

      skrahmannequin
      Mannequin

      I temporarily changed the Fedora bot to run Fedora-14-i386. The
      same failures can be observed:

      ======================================================================
      ERROR: test_no_optimize_flag (distutils.tests.test_bdist_rpm.BuildRpmTestCase)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/tests/test_bdist_rpm.py", line 121, in test_no_optimize_flag
          cmd.run()
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/command/bdist_rpm.py", line 365, in run
          self.spawn(rpm_cmd)
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/cmd.py", line 366, in spawn
          spawn(cmd, search_path, dry_run=self.dry_run)
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/spawn.py", line 32, in spawn
          _spawn_posix(cmd, search_path, dry_run=dry_run)
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/spawn.py", line 163, in _spawn_posix
          % (cmd[0], exit_status))
      distutils.errors.DistutilsExecError: command 'rpmbuild' failed with exit status 1

      ======================================================================
      ERROR: test_quiet (distutils.tests.test_bdist_rpm.BuildRpmTestCase)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/tests/test_bdist_rpm.py", line 81, in test_quiet
          cmd.run()
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/command/bdist_rpm.py", line 365, in run
          self.spawn(rpm_cmd)
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/cmd.py", line 366, in spawn
          spawn(cmd, search_path, dry_run=self.dry_run)
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/spawn.py", line 32, in spawn
          _spawn_posix(cmd, search_path, dry_run=dry_run)
        File "/home/buildbot/buildarea/3.x.krah-fedora/build/Lib/distutils/spawn.py", line 163, in _spawn_posix
          % (cmd[0], exit_status))
      distutils.errors.DistutilsExecError: command 'rpmbuild' failed with exit status 1

      Ran 177 tests in 2.967s

    10. merwok commented on Oct 17, 2011

      @merwok
      Member

      The patch from bpo-11599 should let us get the full error message, for a start.

    11. rpetrov commented on Oct 17, 2011

      rpetrovmannequin
      Mannequin

      May be last report is not related to initial two years old . It seems to me it is introduced recently after some optimization related to creation of pyc files and this is not OpenSUSE related.

    12. neologix commented on Oct 30, 2011

      neologixmannequin
      Mannequin

      Here's the error message:
      """
      error: File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc
      error: File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyo
      File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc
      File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyo
      """
      http://python.org/dev/buildbot/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/934/steps/test/logs/stdio

    13. merwok commented on Oct 31, 2011

      @merwok
      Member

      Here's the error message:
      error: File not found: /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc

      Thanks. Some rpm tool is looking for byte-compiled files in the old location, but I’ve fixed sdist (used under the cover by bdist_rpm) recently to use __pycache__ directories. There must be some other code path that reports wrong locations for byte-compiled files, similar to the get_outputs methods that I fixed in another commit, but I’m unable to find it right now. I’ll try to install Fedora in a VM when I get more time.

    14. skrah commented on Oct 31, 2011

      skrahmannequin
      Mannequin

      For the buildbot failures see bpo-13307. I think that it's indeed a
      different issue, since AFAIK __pycache__ didn't exist when this one
      was opened.

    15. merwok commented on Nov 3, 2011

      @merwok
      Member

      Buildbot passes, certainly thanks to the fix for bpo-13307.

    16. assigned and unassigned on Nov 3, 2011
    17. merwok commented on Nov 3, 2011

      @merwok
      Member

      Hm, did I close this too hastily? The original report was not about the buildbot; does the buildbot run as a non-root user with the same version that was reported in the first message? If no, can someone try to reproduce the issue in the same conditions as the OP?

    18. skrah commented on Nov 3, 2011

      skrahmannequin
      Mannequin

      The buildbot runs as non-root, so it should reproduce this
      issue (but it's green).

      The original report was for 2.6/3.1, so I think closing this as
      out-of-date is reasonable.

    19. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    stdlibteststype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions