Error 'bubuteerror: & #39; _ NamespacePath & #39; object has no attribute & #39; sort & #39 ;',

Source: Internet
Author: User

The error 'bubuteerror: '_ NamespacePath 'object has no attribute 'sort ''is returned when zc. buildout is used to build a project '',

If 'bubuteerror: '_ NamespacePath 'object has no attribute 'sort ''is encountered during project construction using zc. buildout, an error is returned:

An internal error occurred due to a bug in either zc.buildout or in arecipe being used:Traceback (most recent call last):  File "c:\python36\lib\site-packages\zc\buildout\buildout.py", line 2123, in main    getattr(buildout, command)(args)  File "c:\python36\lib\site-packages\zc\buildout\buildout.py", line 680, in install    [self[part]['recipe'] for part in install_parts]  File "c:\python36\lib\site-packages\zc\buildout\buildout.py", line 680, in <listcomp>    [self[part]['recipe'] for part in install_parts]  File "c:\python36\lib\site-packages\zc\buildout\buildout.py", line 1274, in __getitem__    options._initialize()  File "c:\python36\lib\site-packages\zc\buildout\buildout.py", line 1382, in _initialize    self.initialize()  File "c:\python36\lib\site-packages\zc\buildout\buildout.py", line 1388, in initialize    recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)  File "c:\python36\lib\site-packages\zc\buildout\buildout.py", line 1338, in _install_and_load    allow_hosts=buildout._allow_hosts  File "c:\python36\lib\site-packages\zc\buildout\easy_install.py", line 920, in install    return installer.install(specs, working_set)  File "c:\python36\lib\site-packages\zc\buildout\easy_install.py", line 673, in install    ws.add(dist)  File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 790, in add    self._added_new(dist)  File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 990, in _added_new    callback(dist)  File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 3047, in <lambda>    add_activation_listener(lambda dist: dist.activate(replace=True), existing=False)  File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2574, in activate    fixup_namespace_packages(self.location)  File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2162, in fixup_namespace_packages    subpath = _handle_ns(package, path_item)  File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2091, in _handle_ns    _rebuild_mod_path(path, packageName, module)  File "c:\python36\lib\site-packages\pkg_resources\__init__.py", line 2120, in _rebuild_mod_path    orig_path.sort(key=position_in_sys_path)AttributeError: '_NamespacePath' object has no attribute 'sort'

You can try to upgrade setuptools to solve this problem:

pip3 install --upgrade setuptools

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.