Created
March 3, 2011 16:04
-
-
Save justquick/853003 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jquick7490MLA:force jquick$ mkvirtualenv force | |
Traceback (most recent call last): | |
File "/usr/local/bin/virtualenv", line 8, in <module> | |
load_entry_point('virtualenv==1.5.1', 'console_scripts', 'virtualenv')() | |
File "/Library/Python/2.6/site-packages/virtualenv.py", line 558, in main | |
prompt=options.prompt) | |
File "/Library/Python/2.6/site-packages/virtualenv.py", line 647, in create_environment | |
site_packages=site_packages, clear=clear)) | |
File "/Library/Python/2.6/site-packages/virtualenv.py", line 771, in install_python | |
copy_required_modules(home_dir) | |
File "/Library/Python/2.6/site-packages/virtualenv.py", line 725, in copy_required_modules | |
dst_filename = change_prefix(filename, dst_prefix) | |
File "/Library/Python/2.6/site-packages/virtualenv.py", line 710, in change_prefix | |
(filename, prefixes) | |
AssertionError: Filename /Library/Python/2.6/site-packages/readline-6.1.0-py2.6-macosx-10.6-universal.egg/readline.so does not start with any of these prefixes: ['/System/Library/Frameworks/Python.framework/Versions/2.6'] |
hrm, my ipython seems to be working fine for me. maybe try reinstalling w/ easy_install and if that doesnt work, pip?
Here's a highly-experimental (i.e. tested once, quickly) patch here:
https://github.com/acdha/virtualenv/commits/mac-site-packages-hack
For anyone else who stumbles across this gist when googling:
This issue appears to be fixed in virtualenv's latest source. If I am not mistaken, it uses @acdha's patch.
fitzgen is right: since we were all at the table at PyCon during the sprints, @carljm merged it after a but of testing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! It solves it but breaks ipython.
Oh dear God, provide us with better Python packaging on Mac OS X...