java2python
java2python copied to clipboard
Cannot install on mac
I get this exception while installing on mac via the command: sudo pip install java2python (I see the same problem without sudo)
byte-compiling /Library/Python/2.7/site-packages/java2python/mod/transform.py to transform.pyc
running install_data
creating /System/Library/Frameworks/Python.framework/Versions/2.7/doc
error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/doc': Operation not permitted
----------------------------------------
Rolling back uninstall of java2python
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-BTfKen-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-BWjER1-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-BTfKen-build/
that's not a java2python issue, that's a permission error on your end. It also looks like your polluting your system's site-packages directory. You should try pyenv, install the version of python you want, and try installing again. You might run into another issue with a dependency that isn't on pip anymore. Install it like pip install http://antlr3.org/download/Python/antlr_python_runtime-3.1.3.tar.gz