Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537122 - dev-python/setuptools-12.0.3 - No module named 'version'
Summary: dev-python/setuptools-12.0.3 - No module named 'version'
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://bitbucket.org/pypa/setuptools...
Whiteboard:
Keywords:
: 537068 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-01-20 11:42 UTC by Helmut Jarausch
Modified: 2015-11-23 10:08 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
setuptools-12.0.3.environment.xz (setuptools-12.0.3.environment.xz,28.40 KB, application/x-xz)
2015-01-20 11:42 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-01-20 11:42:02 UTC
Created attachment 394396 [details]
setuptools-12.0.3.environment.xz

I stepped back to setuptools-9.1 (binary package) and tried to emerge
setuptools-12.0.3 which fails during install :

running egg_info
writing /var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/build/setuptools.egg-info/PKG-INFO
writing top-level names to /var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/build/setuptools.egg-info/top_level.txt
writing requirements to /var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/build/setuptools.egg-info/requires.txt
writing dependency_links to /var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/build/setuptools.egg-info/dependency_links.txt
writing entry points to /var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/build/setuptools.egg-info/entry_points.txt
Traceback (most recent call last):
  File "setup.py", line 179, in <module>
    dist = setuptools.setup(**setup_params)
  File "/usr/lib64/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib64/python3.4/distutils/command/install.py", line 551, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python3.4/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/setuptools/command/install_egg_info.py", line 33, in run
    self.run_command('egg_info')
  File "/usr/lib64/python3.4/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/setuptools/command/egg_info.py", line 171, in run
    writer = ep.load(installer=installer)
  File "/var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/pkg_resources/__init__.py", line 2310, in load
    return self.resolve()
  File "/var/tmp/portage/dev-python/setuptools-12.0.3/work/setuptools-12.0.3-python3_4/pkg_resources/__init__.py", line 2316, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named 'version'
 * ERROR: dev-python/setuptools-12.0.3::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 3884:  Called distutils-r1_src_install
 *   environment, line 1277:  Called _distutils-r1_run_foreach_impl 'python_install'
 *   environment, line  368:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_install'
 *   environment, line 3434:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install'
 *   environment, line 2560:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_install'
 *   environment, line 2558:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_install'
 *   environment, line  833:  Called distutils-r1_run_phase 'python_install'
 *   environment, line 1248:  Called python_install
 *   environment, line 3573:  Called distutils-r1_python_install
 *   environment, line 1175:  Called esetup.py 'install' '--root=/var/tmp/portage/dev-python/setuptools-12.0.3/image//_python3.4'
 *   environment, line 1729:  Called die
Comment 1 Tim Harder gentoo-dev 2015-01-20 19:41:36 UTC
I'm still unable to reproduce this. Perhaps some other python herd members can test as well though.

On a side note, it looks somewhat easier to replace the bundled packaging lib now so I might do that in the next bump unless someone else does.
Comment 2 Helmut Jarausch 2015-01-21 08:44:16 UTC
It's either a general setuptoools problem or a python-daemon problem
Stepping back to dev-python/python-daemon-2.0.1 (or even dev-python/python-daemon-2.0.2, which is not in the tree)
solves the problem.
Please see bug
https://bugs.gentoo.org/show_bug.cgi?id=537210
and
http://stackoverflow.com/questions/27972349/installing-latest-python-daemon-2-0-3-breaks-subsequent-pip-installs
Comment 3 Mike Gilbert gentoo-dev 2015-01-21 16:26:22 UTC
Adding setuptools upstream bug (thanks Arfrever).
Comment 4 Tim Harder gentoo-dev 2015-01-21 16:51:56 UTC
*** Bug 537068 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Capricelli 2015-01-27 12:30:06 UTC
hit by the same problem with dev-python/setuptools-12.0.5

intalled were : dev-python/python-daemon-2.0.3

as hinted somewhere, i removed this package, and then setuptools installed fine.
Comment 6 Alexander 'E-Razor' Krause 2015-03-16 09:22:46 UTC
(In reply to Thomas Capricelli from comment #5)
> hit by the same problem with dev-python/setuptools-12.0.5
> 
> intalled were : dev-python/python-daemon-2.0.3
> 
> as hinted somewhere, i removed this package, and then setuptools installed
> fine.

Thanks, that helped me a lot too!

emerge -C dev-python/python-daemon; emerge -u setuptools
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2015-11-23 10:08:58 UTC
commit bea1f6190d0aca59a83db41435f992f0cb97e1ca
Author: Justin Lecher <jlec@gentoo.org>
Date:   Mon Nov 23 10:42:05 2015 +0100

    dev-python/setuptools: Drop old

    obsoletes:

    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=447144
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=450560
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=468628
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=519956
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=537122
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=522456

    Package-Manager: portage-2.2.25
    Signed-off-by: Justin Lecher <jlec@gentoo.org>

    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bea1f6190d0aca59a83db41435f992f0cb97e1ca