Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Just a typical command line session with Python on my mac
~/awesome bemmu$ python
Python 2.7.8 (default, Jul 3 2014, 06:13:58)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import hmac
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hmac.py", line 8, in <module>
from operator import _compare_digest as compare_digest
ImportError: cannot import name _compare_digest
>>> exit()
~/awesome bemmu$ virtualenv fuck
Using real prefix '/opt/local/Library/Frameworks/Python.framework/Versions/2.7'
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/virtualenv", line 9, in <module>
load_entry_point('virtualenv==1.11.6', 'console_scripts', 'virtualenv')()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 824, in main
symlink=options.symlink)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 984, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1180, in install_python
copy_required_modules(home_dir, symlink)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1118, in copy_required_modules
dst_filename = change_prefix(filename, dst_prefix)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1083, in change_prefix
(filename, prefixes)
AssertionError: Filename /Users/bemmu/b2/virtualenv/appengine/lib/python2.7/os.py does not start with any of these prefixes: ['/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7', '/Users/bemmu/Library/Python/2.7/lib/python/site-packages', '/Users/bemmu/.local/lib/python/2.7/site-packages', '/Users/bemmu/Library/Python/2.7/site-packages', '/Library/Python/2.7/site-packages']
~/awesome bemmu$ easy_install virtualenv
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/easy_install", line 9, in <module>
load_entry_point('setuptools==5.3', 'console_scripts', 'easy_install')()
File "build/bdist.macosx-10.7-x86_64/egg/pkg_resources.py", line 357, in load_entry_point
File "build/bdist.macosx-10.7-x86_64/egg/pkg_resources.py", line 2394, in load_entry_point
def egg_name(self):
File "build/bdist.macosx-10.7-x86_64/egg/pkg_resources.py", line 2108, in load
Strings like "a", "b", "c", "alpha", "beta", "candidate" and so on (that
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 42, in <module>
from setuptools.archive_util import unpack_archive
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/archive_util.py", line 15, in <module>
from pkg_resources import ensure_directory, ContextualZipFile
ImportError: cannot import name ContextualZipFile
~/awesome bemmu$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.