Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ez_setup.use_setuptools() fails if it needs to download a newer setuptools #519

Closed
ghost opened this issue Mar 17, 2016 · 2 comments
Closed

ez_setup.use_setuptools() fails if it needs to download a newer setuptools #519

ghost opened this issue Mar 17, 2016 · 2 comments

Comments

@ghost
Copy link

@ghost ghost commented Mar 17, 2016

Originally reported by: agronholm (Bitbucket: agronholm, GitHub: agronholm)


In setup.py:

#!python

import ez_setup
ez_setup.use_setuptools('20.3')

Then, with setuptools 20.1.1 installed:

$ python setup.py
Traceback (most recent call last):
  File "setup.py", line 38, in <module>
    ez_setup.use_setuptools('20.3')
  File "/home/alex/checkout/crossbar/ez_setup.py", line 173, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "/home/alex/checkout/crossbar/ez_setup.py", line 132, in _do_download
    import setuptools
  File "build/bdist.linux-x86_64/egg/setuptools/__init__.py", line 11, in <module>
  File "build/bdist.linux-x86_64/egg/setuptools/extern/__init__.py", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 48, in <module>
  File "/home/alex/virtualenv/crossbar/local/lib/python2.7/site-packages/pkg_resources/extern/__init__.py", line 43, in load_module
    mod = sys.modules[extant]
AttributeError: 'NoneType' object has no attribute 'modules'

@ghost
Copy link
Author

@ghost ghost commented Mar 18, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Merged in agronholm/setuptools/agronholm/remove-the-import-hook-when-unloading-th-1458177009332 (pull request #182)
. Fixes #519.
Remove the import hook when unloading the old pkg_resources modules

1 similar comment
@ghost
Copy link
Author

@ghost ghost commented Mar 18, 2016

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


Merged in agronholm/setuptools/agronholm/remove-the-import-hook-when-unloading-th-1458177009332 (pull request #182)
. Fixes #519.
Remove the import hook when unloading the old pkg_resources modules

@ghost ghost closed this Mar 29, 2016
jaraco added a commit that referenced this issue Mar 29, 2016
…unloading-th-1458177009332 (pull request #182)

. Fixes #519.
Remove the import hook when unloading the old pkg_resources modules
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
0 participants