Closed pberkes closed 9 years ago
I don't know why, but the enpkg
you are using is not the updated one (and is instead from canopy application....).
Can you paste the content of /Users/pberkes/Library/Enthought/Canopy_64bit/User/bin/enpkg
?
pberkes@pietros_macbook:~/egit/meta-geophysics/geolibs (master)
↳ which enpkg
/Users/pberkes/Library/Enthought/Canopy_64bit/User/bin/enpkg
pberkes@pietros_macbook:~/egit/meta-geophysics/geolibs (master)
↳ cat /Users/pberkes/Library/Enthought/Canopy_64bit/User/bin/enpkg
#!/Users/pberkes/Library/Enthought/Canopy_64bit/User/bin/python
# This script was created by egginst when installing:
#
# enstaller-4.8.5-1.egg
#
if __name__ == '__main__':
import sys
from enstaller.main import main_noexc
sys.exit(main_noexc())
hm, from your user env python, can you do the following:
$ python
import sys
print(sys.path)
import enstaller
print(enstaller.__file__)
↳ python
Enthought Canopy Python 2.7.6 | 64-bit | (default, Sep 15 2014, 17:43:19)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/Users/pberkes/egit/meta-geophysics/geocanopy', '/Users/pberkes/egit/pyrasite', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/urwid-1.1.1-py2.7-macosx-10.6-x86_64.egg', '/Users/pberkes/egit/meta-geophysics/meta-ETS/etsdevtools', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/PyGithub-1.21.0-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/grits_client-0.1-py2.7.egg', '/Users/pberkes/egit/vbench', '/Users/pberkes/egit/refcycle', '/Users/pberkes/egit/meta-geophysics/geolib', '/Users/pberkes/egit/meta-ETS/enable', '/Users/pberkes/egit/meta-ETS/chaco', '/Users/pberkes/egit/meta-geophysics/canopy_data', '/Users/pberkes/egit/meta-ETS/codetools', '/Users/pberkes/egit/scikit-image', '/Users/pberkes/egit/SlideTools', '/Users/pberkes/egit/simphony-mayavi/simphony-common', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/stevedore-1.2.0-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/enum34-1.0.4-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/argparse-1.3.0-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pbr-0.10.8-py2.7.egg', '/Users/pberkes/egit/simphony-mayavi', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/click-4.0-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/appdirs-1.4.0-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/tabulate-0.7.5-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/clint-0.4.1-py2.7.egg', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/args-0.1.0-py2.7.egg', '/Users/pberkes/egit/meta-geophysics/meta-ETS/traits', '/Users/pberkes/egit/canopy_dashboard/dependencies/jigna', '/Users/pberkes/egit/canopy_dashboard', '/Users/pberkes/o/keras', '/Users/pberkes/egit/envisage', '/Users/pberkes/egit/meta-geophysics/meta-ETS/traitsui', '/Users/pberkes/egit/canopy_platform', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages', '/Users/pberkes', '/Users/pberkes/o/gp', '/Users/pberkes/o/pyschool/pelita', '/Users/pberkes/o/tools', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python27.zip', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/plat-darwin', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/plat-mac', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/lib-tk', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/lib-old', '/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/lib-dynload', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages', '/Users/pberkes/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/PIL']
>>> import enstaller
>>> enstaller.__file__
'/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7/site-packages/enstaller/__init__.pyc'
So that's the problem. For some reasons, you have the canopy app ('/Applications/Canopy.app/appdata/canopy-1.5.1.2730.macosx-x86_64/Canopy.app/Contents/lib/python2.7`) in your sys.path before user environment.
This is an issue with your environment. There are also a lots of eggs/develop entries in your sys.path, I advise you to clean those, as it increases the likelihood of such issues.
ok... but who is adding that?
@pberkes Can you ping Robin about that? It would be good to understand how we can have the appdata path before the user path.
For the .egg
entries, I would look into setuptools (e.g. the easy_install.pth
files in your PYTHONPATH)
.
For the directories entries, look into your PYTHONPATH
.
Here's what happened: 1) I ran
enpkg
and it asked to update. I did.2) Re-running the command gives the error:
3) The full traceback is: