Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618256 - dev-python/setuptools-34.0.2-r1: various packages fail to build with AttributeError: '_NamespacePath' object has no attribute 'sort' (was: dev-python/ndg-httpsclient-0.4.0, dev-python/zope-interface-4.3.2)
Summary: dev-python/setuptools-34.0.2-r1: various packages fail to build with Attribut...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 618258 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-11 22:46 UTC by Alessandro Barbieri
Modified: 2018-06-11 19:41 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2017-05-11 22:46:45 UTC
infos here https://gist.github.com/67197accbd2e9d849ba32c2df1fbd0a2

fails with

 * python3_5: running distutils-r1_run_phase distutils-r1_python_compile                                                                                        [7/9628]
/usr/bin/python3.5 setup.py build
Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    from setuptools import setup, find_packages
  File "/usr/lib64/python3.5/site-packages/setuptools/__init__.py", line 10, in <module>
    from setuptools.extern.six.moves import filter, filterfalse, map
  File "/usr/lib64/python3.5/site-packages/setuptools/extern/__init__.py", line 1, in <module>
    from pkg_resources.extern import VendorImporter
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 3015, in <module>
    @_call_aside
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 2999, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 3043, in _initialize_master_working_set
    for dist in working_set
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 3043, in <genexpr>
    for dist in working_set
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 2573, in activate
    declare_namespace(pkg)
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 2147, in declare_namespace
    _handle_ns(packageName, path_item)
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 2087, in _handle_ns
    _rebuild_mod_path(path, packageName, module)
  File "/usr/lib64/python3.5/site-packages/pkg_resources/__init__.py", line 2116, in _rebuild_mod_path
    orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
 * ERROR: dev-python/ndg-httpsclient-0.4.0::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 4383:  Called distutils-r1_src_compile
 *   environment, line 1667:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line 1055:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3923:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3011:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3009:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1317:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1658:  Called distutils-r1_python_compile
 *   environment, line 1533:  Called esetup.py 'build'
 *   environment, line 2144:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
Comment 1 Jonas Stein gentoo-dev 2017-05-12 22:01:35 UTC
Please attach the logfiles
https://wiki.gentoo.org/wiki/Bugzilla/Bug_report_guide#Problems_at_build_time
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-05-13 07:11:00 UTC
What's the setuptools version?
Comment 4 Alessandro Barbieri 2017-05-13 08:36:31 UTC
At the time of report: 34.0.2-r1 but now I upgraded to setuptools-35.0.2 and this package version 0.4.2-r1 without failures
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-05-15 12:50:59 UTC
I'll investigate whether it's a bug in this setuptools version or something else.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-05-15 12:51:07 UTC
*** Bug 618258 has been marked as a duplicate of this bug. ***
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-05-15 13:42:16 UTC
I'm afraid I can't figure out a way to reproduce this. I've tried with setuptools-34.0.2-r1, with old and new zope-interface, on top of installed, uninstalled, with namespace-zope, without...

I suspect it might be yet another python3.5 namespace issue in pkg_resources. If that is the case, feasible solutions are:

a. upgrading setuptools (as you've done),

b. using the newer ebuilds with fixed namespace support (which are less likely to cause issues).

In either case, I believe the best way forward would be to stabilize both new setuptools and new package versions before marking python3.5 stable.