weecology / retriever

Quickly download, clean up, and install public datasets into a database management system
http://data-retriever.org
Other
307 stars 132 forks source link

Failed to load Gentry script when building from source #402

Closed davharris closed 8 years ago

davharris commented 8 years ago

I tried installing from source tonight and ran into a problem that seems to be related to loading scripts. Summarized console output:

davidharris$ sudo python setup.py install

    ...stuff...

Finished processing dependencies for retriever==1.8.1
Compiling retriever scripts...
Failed to load script: gentry (/Users/davidharris/.retriever/scripts/)done.

Here's the full output from the console:

setup.py:74: UserWarning: wxpython is not installed.
                  Retriever will not work in GUI mode.
                  For retriever-gui install python-wxpython and
                  run 'python setup.py install' again.
  UserWarning
/Users/davidharris/anaconda/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console'
  warnings.warn(msg)
/Users/davidharris/anaconda/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zipfile'
  warnings.warn(msg)
running install
running bdist_egg
running egg_info
writing requirements to retriever.egg-info/requires.txt
writing retriever.egg-info/PKG-INFO
writing top-level names to retriever.egg-info/top_level.txt
writing dependency_links to retriever.egg-info/dependency_links.txt
writing entry points to retriever.egg-info/entry_points.txt
reading manifest file 'retriever.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'retriever.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.5-x86_64/egg
running install_lib
running build_py
creating build/bdist.macosx-10.5-x86_64/egg
creating build/bdist.macosx-10.5-x86_64/egg/retriever
copying build/lib/retriever/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/retriever
copying build/lib/retriever/__main__.py -> build/bdist.macosx-10.5-x86_64/egg/retriever
creating build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/app.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/connect_wizard.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/controls.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/download_manager.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/images.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/logo.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/main.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/app/splash.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/app
copying build/lib/retriever/compile.py -> build/bdist.macosx-10.5-x86_64/egg/retriever
creating build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/csv.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/download_only.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/jsonengine.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/msaccess.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/mysql.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/postgres.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/sqlite.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/engines
creating build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/__init__.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/cleanup.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/compile.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/download.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/engine.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/excel.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/get_opts.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/lists.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/models.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/repository.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/table.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/templates.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/tools.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/warning.py -> build/bdist.macosx-10.5-x86_64/egg/retriever/lib
copying build/lib/retriever/lscolumns.py -> build/bdist.macosx-10.5-x86_64/egg/retriever
copying build/lib/retriever/term_size.py -> build/bdist.macosx-10.5-x86_64/egg/retriever
copying build/lib/retriever/try_install_all.py -> build/bdist.macosx-10.5-x86_64/egg/retriever
copying build/lib/retriever/version.py -> build/bdist.macosx-10.5-x86_64/egg/retriever
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/__main__.py to __main__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/app.py to app.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/connect_wizard.py to connect_wizard.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/controls.py to controls.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/download_manager.py to download_manager.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/images.py to images.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/logo.py to logo.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/main.py to main.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/app/splash.py to splash.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/compile.py to compile.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/csv.py to csv.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/download_only.py to download_only.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/jsonengine.py to jsonengine.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/msaccess.py to msaccess.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/mysql.py to mysql.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/postgres.py to postgres.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/engines/sqlite.py to sqlite.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/cleanup.py to cleanup.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/compile.py to compile.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/download.py to download.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/engine.py to engine.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/excel.py to excel.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/get_opts.py to get_opts.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/lists.py to lists.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/models.py to models.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/repository.py to repository.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/table.py to table.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/templates.py to templates.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/tools.py to tools.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lib/warning.py to warning.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/lscolumns.py to lscolumns.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/term_size.py to term_size.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/try_install_all.py to try_install_all.pyc
byte-compiling build/bdist.macosx-10.5-x86_64/egg/retriever/version.py to version.pyc
installing package data to build/bdist.macosx-10.5-x86_64/egg
running install_data
copying CITATION -> build/bdist.macosx-10.5-x86_64/egg/
creating build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying retriever.egg-info/PKG-INFO -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying retriever.egg-info/SOURCES.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying retriever.egg-info/dependency_links.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying retriever.egg-info/entry_points.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying retriever.egg-info/requires.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
copying retriever.egg-info/top_level.txt -> build/bdist.macosx-10.5-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
retriever.__main__: module references __file__
retriever.version: module references __file__
creating 'dist/retriever-1.8.1-py2.7.egg' and adding 'build/bdist.macosx-10.5-x86_64/egg' to it
removing 'build/bdist.macosx-10.5-x86_64/egg' (and everything under it)
Processing retriever-1.8.1-py2.7.egg
removing '/Users/davidharris/anaconda/lib/python2.7/site-packages/retriever-1.8.1-py2.7.egg' (and everything under it)
creating /Users/davidharris/anaconda/lib/python2.7/site-packages/retriever-1.8.1-py2.7.egg
Extracting retriever-1.8.1-py2.7.egg to /Users/davidharris/anaconda/lib/python2.7/site-packages
retriever 1.8.1 is already the active version in easy-install.pth
Installing retriever script to /Users/davidharris/anaconda/bin

Installed /Users/davidharris/anaconda/lib/python2.7/site-packages/retriever-1.8.1-py2.7.egg
Processing dependencies for retriever==1.8.1
Searching for xlrd==0.9.4
Best match: xlrd 0.9.4
Adding xlrd 0.9.4 to easy-install.pth file

Using /Users/davidharris/anaconda/lib/python2.7/site-packages
Finished processing dependencies for retriever==1.8.1
Compiling retriever scripts...
Failed to load script: gentry (/Users/davidharris/.retriever/scripts/)done.
ethanwhite commented 8 years ago

Thanks for reporting this Dave. We know about this one - it's happening because we got stuck mid-release with the OS X issues and while we were there we changed removed some dead code that triggered this. It will go away as soon as we finish the release which will be tonight or tomorrow.

dmcglinn commented 8 years ago

I'm still having this problem when building from source as @davharris pointed out at febe789e on the master branch.

ethanwhite commented 8 years ago

I think you just have an old script cached. Try:

retriever reset scripts
retriever update

and see if that fixes it.

dmcglinn commented 8 years ago

That worked thanks!

ethanwhite commented 8 years ago

:cool: