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

buildout breaks on Ubuntu 12.04 #81

Closed
wichert opened this issue Feb 20, 2013 · 4 comments
Closed

buildout breaks on Ubuntu 12.04 #81

wichert opened this issue Feb 20, 2013 · 4 comments

Comments

@wichert
Copy link
Contributor

wichert commented Feb 20, 2013

Trying to bootstrap a buildout using a current bootstrap gives me this error:

/usr/bin/python2.7 bootstrap.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
  File "bootstrap.py", line 257, in <module>
    import zc.buildout.buildout
  File "/tmp/tmp_keZR4/zc.buildout-2.0.1-py2.7.egg/zc/buildout/buildout.py", line 18, in <module>
    import zc.buildout.easy_install
  File "/tmp/tmp_keZR4/zc.buildout-2.0.1-py2.7.egg/zc/buildout/easy_install.py", line 61, in <module>
    pkg_resources.Requirement.parse('distribute')
AttributeError: 'NoneType' object has no attribute 'location'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 66, in apport_excepthook
    from apport.fileutils import likely_packaged, get_recent_crashes
ImportError: No module named apport.fileutils

Original exception was:
Traceback (most recent call last):
  File "bootstrap.py", line 257, in <module>
    import zc.buildout.buildout
  File "/tmp/tmp_keZR4/zc.buildout-2.0.1-py2.7.egg/zc/buildout/buildout.py", line 18, in <module>
    import zc.buildout.easy_install
  File "/tmp/tmp_keZR4/zc.buildout-2.0.1-py2.7.egg/zc/buildout/easy_install.py", line 61, in <module>
    pkg_resources.Requirement.parse('distribute')
AttributeError: 'NoneType' object has no attribute 'location'
make: *** [bin/buildout] Error 1
@reinout
Copy link
Contributor

reinout commented Feb 20, 2013

buildout 2 requires distribute (instead of setuptools). But setuptools is downloaded. Do you have the 2.x bootstrap from http://downloads.buildout.org/2/bootstrap.py?

@reinout
Copy link
Contributor

reinout commented Feb 20, 2013

I'm using buildout 2 on 12.04, so "it should work (tm)" :-)

@wichert
Copy link
Contributor Author

wichert commented Feb 20, 2013

Bugger, I missed updating bootstrap.py for this one :(

@reinout
Copy link
Contributor

reinout commented Feb 20, 2013

Well, see #82. I do think a better error handling in buildout is a good idea. This is an common mistake to make, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants