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

Errors when building from source: Mac #1066

Closed aswanipranjal closed 6 years ago

aswanipranjal commented 6 years ago

Hey @henrykironde, @ethanwhite: I am trying to install retriever from source. I downloaded the repository, then ran python setup.py develop. Then on running the retriever command i got the options that i could use with retriever. After that i ran retriever update and it gave me:

Downloading scripts...
Download Progress: [#########################################################################################################################] 100.00%
The retriever is up-to-date
Failed to load script: amniote_life_hist (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'amniote_life_hist' has no attribute 'download'
Failed to load script: aquatic_animal_excretion (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'aquatic_animal_excretion' has no attribute 'download'
Failed to load script: bioclim (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'bioclim' has no attribute 'download'
Failed to load script: biomass_allometry_db (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'biomass_allometry_db' has no attribute 'download'
Failed to load script: breed_bird_survey (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey' has no attribute 'download'
Failed to load script: breed_bird_survey_50stop (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey_50stop' has no attribute 'download'
Failed to load script: flensburg_food_web (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'flensburg_food_web' has no attribute 'download'
Failed to load script: forest_inventory_analysis (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_inventory_analysis' has no attribute 'download'
Failed to load script: forest_plots_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_plots_wghats' has no attribute 'download'
Failed to load script: gentry_forest_transects (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'gentry_forest_transects' has no attribute 'download'
Failed to load script: intertidal_abund_me (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'intertidal_abund_me' has no attribute 'download'
Failed to load script: la_selva_trees (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'la_selva_trees' has no attribute 'download'
Failed to load script: MammalSuperTree (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'MammalSuperTree' has no attribute 'download'
Failed to load script: npn (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'npn' has no attribute 'download'
Failed to load script: pantheria (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'pantheria' has no attribute 'download'
Failed to load script: plant_life_hist_eu (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'plant_life_hist_eu' has no attribute 'download'
Failed to load script: predator_prey_size_marine (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predator_prey_size_marine' has no attribute 'download'
Failed to load script: predicts (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predicts' has no attribute 'download'
Failed to load script: prism_climate (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'prism_climate' has no attribute 'download'
Failed to load script: socean_diet_data (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'socean_diet_data' has no attribute 'download'
Failed to load script: tree_demog_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'tree_demog_wghats' has no attribute 'download'
Failed to load script: vertnet (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet' has no attribute 'download'
Failed to load script: vertnet_amphibians (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_amphibians' has no attribute 'download'
Failed to load script: vertnet_birds (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_birds' has no attribute 'download'
Failed to load script: vertnet_fishes (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_fishes' has no attribute 'download'
Failed to load script: vertnet_mammals (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_mammals' has no attribute 'download'
Failed to load script: vertnet_reptiles (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_reptiles' has no attribute 'download'
Failed to load script: wood_density (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'wood_density' has no attribute 'download'
Downloading scripts...
Download Progress: [#########################################################################################################################] 100.00%
The retriever is up-to-date
Failed to load script: amniote_life_hist (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'amniote_life_hist' has no attribute 'download'
Failed to load script: aquatic_animal_excretion (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'aquatic_animal_excretion' has no attribute 'download'
Failed to load script: bioclim (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'bioclim' has no attribute 'download'
Failed to load script: biomass_allometry_db (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'biomass_allometry_db' has no attribute 'download'
Failed to load script: breed_bird_survey (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey' has no attribute 'download'
Failed to load script: breed_bird_survey_50stop (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey_50stop' has no attribute 'download'
Failed to load script: flensburg_food_web (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'flensburg_food_web' has no attribute 'download'
Failed to load script: forest_inventory_analysis (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_inventory_analysis' has no attribute 'download'
Failed to load script: forest_plots_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_plots_wghats' has no attribute 'download'
Failed to load script: gentry_forest_transects (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'gentry_forest_transects' has no attribute 'download'
Failed to load script: intertidal_abund_me (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'intertidal_abund_me' has no attribute 'download'
Failed to load script: la_selva_trees (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'la_selva_trees' has no attribute 'download'
Failed to load script: MammalSuperTree (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'MammalSuperTree' has no attribute 'download'
Failed to load script: npn (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'npn' has no attribute 'download'
Failed to load script: pantheria (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'pantheria' has no attribute 'download'
Failed to load script: plant_life_hist_eu (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'plant_life_hist_eu' has no attribute 'download'
Failed to load script: predator_prey_size_marine (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predator_prey_size_marine' has no attribute 'download'
Failed to load script: predicts (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predicts' has no attribute 'download'
Failed to load script: prism_climate (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'prism_climate' has no attribute 'download'
Failed to load script: socean_diet_data (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'socean_diet_data' has no attribute 'download'
Failed to load script: tree_demog_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'tree_demog_wghats' has no attribute 'download'
Failed to load script: vertnet (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet' has no attribute 'download'
Failed to load script: vertnet_amphibians (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_amphibians' has no attribute 'download'
Failed to load script: vertnet_birds (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_birds' has no attribute 'download'
Failed to load script: vertnet_fishes (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_fishes' has no attribute 'download'
Failed to load script: vertnet_mammals (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_mammals' has no attribute 'download'
Failed to load script: vertnet_reptiles (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_reptiles' has no attribute 'download'
Failed to load script: wood_density (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'wood_density' has no attribute 'download'
Pranjals-MBP ॐ  ~:
1631 ◯  retriever
Failed to load script: amniote_life_hist (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'amniote_life_hist' has no attribute 'download'
Failed to load script: aquatic_animal_excretion (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'aquatic_animal_excretion' has no attribute 'download'
Failed to load script: bioclim (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'bioclim' has no attribute 'download'
Failed to load script: biomass_allometry_db (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'biomass_allometry_db' has no attribute 'download'
Failed to load script: breed_bird_survey (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey' has no attribute 'download'
Failed to load script: breed_bird_survey_50stop (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey_50stop' has no attribute 'download'
Failed to load script: flensburg_food_web (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'flensburg_food_web' has no attribute 'download'
Failed to load script: forest_inventory_analysis (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_inventory_analysis' has no attribute 'download'
Failed to load script: forest_plots_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_plots_wghats' has no attribute 'download'
Failed to load script: gentry_forest_transects (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'gentry_forest_transects' has no attribute 'download'
Failed to load script: intertidal_abund_me (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'intertidal_abund_me' has no attribute 'download'
Failed to load script: la_selva_trees (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'la_selva_trees' has no attribute 'download'
Failed to load script: MammalSuperTree (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'MammalSuperTree' has no attribute 'download'
Failed to load script: npn (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'npn' has no attribute 'download'
Failed to load script: pantheria (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'pantheria' has no attribute 'download'
Failed to load script: plant_life_hist_eu (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'plant_life_hist_eu' has no attribute 'download'
Failed to load script: predator_prey_size_marine (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predator_prey_size_marine' has no attribute 'download'
Failed to load script: predicts (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predicts' has no attribute 'download'
Failed to load script: prism_climate (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'prism_climate' has no attribute 'download'
Failed to load script: socean_diet_data (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'socean_diet_data' has no attribute 'download'
Failed to load script: tree_demog_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'tree_demog_wghats' has no attribute 'download'
Failed to load script: vertnet (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet' has no attribute 'download'
Failed to load script: vertnet_amphibians (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_amphibians' has no attribute 'download'
Failed to load script: vertnet_birds (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_birds' has no attribute 'download'
Failed to load script: vertnet_fishes (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_fishes' has no attribute 'download'
Failed to load script: vertnet_mammals (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_mammals' has no attribute 'download'
Failed to load script: vertnet_reptiles (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_reptiles' has no attribute 'download'
Failed to load script: wood_density (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'wood_density' has no attribute 'download'
Failed to load script: amniote_life_hist (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'amniote_life_hist' has no attribute 'download'
Failed to load script: aquatic_animal_excretion (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'aquatic_animal_excretion' has no attribute 'download'
Failed to load script: bioclim (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'bioclim' has no attribute 'download'
Failed to load script: biomass_allometry_db (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'biomass_allometry_db' has no attribute 'download'
Failed to load script: breed_bird_survey (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey' has no attribute 'download'
Failed to load script: breed_bird_survey_50stop (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'breed_bird_survey_50stop' has no attribute 'download'
Failed to load script: flensburg_food_web (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'flensburg_food_web' has no attribute 'download'
Failed to load script: forest_inventory_analysis (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_inventory_analysis' has no attribute 'download'
Failed to load script: forest_plots_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'forest_plots_wghats' has no attribute 'download'
Failed to load script: gentry_forest_transects (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'gentry_forest_transects' has no attribute 'download'
Failed to load script: intertidal_abund_me (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'intertidal_abund_me' has no attribute 'download'
Failed to load script: la_selva_trees (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'la_selva_trees' has no attribute 'download'
Failed to load script: MammalSuperTree (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'MammalSuperTree' has no attribute 'download'
Failed to load script: npn (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'npn' has no attribute 'download'
Failed to load script: pantheria (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'pantheria' has no attribute 'download'
Failed to load script: plant_life_hist_eu (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'plant_life_hist_eu' has no attribute 'download'
Failed to load script: predator_prey_size_marine (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predator_prey_size_marine' has no attribute 'download'
Failed to load script: predicts (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'predicts' has no attribute 'download'
Failed to load script: prism_climate (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'prism_climate' has no attribute 'download'
Failed to load script: socean_diet_data (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'socean_diet_data' has no attribute 'download'
Failed to load script: tree_demog_wghats (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'tree_demog_wghats' has no attribute 'download'
Failed to load script: vertnet (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet' has no attribute 'download'
Failed to load script: vertnet_amphibians (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_amphibians' has no attribute 'download'
Failed to load script: vertnet_birds (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_birds' has no attribute 'download'
Failed to load script: vertnet_fishes (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_fishes' has no attribute 'download'
Failed to load script: vertnet_mammals (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_mammals' has no attribute 'download'
Failed to load script: vertnet_reptiles (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'vertnet_reptiles' has no attribute 'download'
Failed to load script: wood_density (/Users/aswanipranjal/.retriever/scripts/)
Exception: module 'wood_density' has no attribute 'download'
usage: retriever [-h] [-v] [-q]
                 {download,install,defaults,update,new,new_json,edit_json,delete_json,ls,citation,license,reset,help}
                 ...

positional arguments:
  {download,install,defaults,update,new,new_json,edit_json,delete_json,ls,citation,license,reset,help}
                        sub-command help
    download            download raw data files for a dataset
    install             download and install dataset
    defaults            displays default options
    update              download updated versions of scripts
    new                 create a new sample retriever script
    new_json            CLI to create retriever datapackage.json script
    edit_json           CLI to edit retriever datapackage.json script
    delete_json         CLI to remove retriever datapackage.json script
    ls                  display a list all available dataset scripts
    citation            view citation
    license             view dataset license
    reset               reset retriever: removes configation settings,
                        scripts, and cached data
    help

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -q, --quiet           suppress command-line output

now everytime i run the command retriever, i get similar exceptions listed out before it gives me the options that i can use.

Similar thing happened when i tried to initially install from source (after deleting the ~/.retriever/ directory and uninstalling retriever using pip) using python setup.py install. The difference was that instead of the folder name /Users/aswanipranjal/.retriever/scripts/ in the error, it showed the scripts/ folder.

ss-is-master-chief commented 6 years ago
(venv) Sumits-MacBook-Pro:retriever sumitsaha$ python setup.py install
running install
running bdist_egg
running egg_info
creating retriever.egg-info
writing retriever.egg-info/PKG-INFO
writing dependency_links to retriever.egg-info/dependency_links.txt
writing entry points to retriever.egg-info/entry_points.txt
writing requirements to retriever.egg-info/requires.txt
writing top-level names to retriever.egg-info/top_level.txt
writing manifest file 'retriever.egg-info/SOURCES.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.7-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/retriever
copying retriever/_version.py -> build/lib/retriever
copying retriever/__init__.py -> build/lib/retriever
copying retriever/try_install_all.py -> build/lib/retriever
copying retriever/lscolumns.py -> build/lib/retriever
copying retriever/term_size.py -> build/lib/retriever
copying retriever/compile.py -> build/lib/retriever
copying retriever/__main__.py -> build/lib/retriever
creating build/lib/retriever/engines
copying retriever/engines/download_only.py -> build/lib/retriever/engines
copying retriever/engines/msaccess.py -> build/lib/retriever/engines
copying retriever/engines/csvengine.py -> build/lib/retriever/engines
copying retriever/engines/__init__.py -> build/lib/retriever/engines
copying retriever/engines/sqlite.py -> build/lib/retriever/engines
copying retriever/engines/postgres.py -> build/lib/retriever/engines
copying retriever/engines/jsonengine.py -> build/lib/retriever/engines
copying retriever/engines/xmlengine.py -> build/lib/retriever/engines
copying retriever/engines/mysql.py -> build/lib/retriever/engines
creating build/lib/retriever/lib
copying retriever/lib/datapackage.py -> build/lib/retriever/lib
copying retriever/lib/get_opts.py -> build/lib/retriever/lib
copying retriever/lib/models.py -> build/lib/retriever/lib
copying retriever/lib/engine_tools.py -> build/lib/retriever/lib
copying retriever/lib/download.py -> build/lib/retriever/lib
copying retriever/lib/tools.py -> build/lib/retriever/lib
copying retriever/lib/datasets.py -> build/lib/retriever/lib
copying retriever/lib/__init__.py -> build/lib/retriever/lib
copying retriever/lib/warning.py -> build/lib/retriever/lib
copying retriever/lib/cleanup.py -> build/lib/retriever/lib
copying retriever/lib/excel.py -> build/lib/retriever/lib
copying retriever/lib/templates.py -> build/lib/retriever/lib
copying retriever/lib/engine.py -> build/lib/retriever/lib
copying retriever/lib/defaults.py -> build/lib/retriever/lib
copying retriever/lib/table.py -> build/lib/retriever/lib
copying retriever/lib/scripts.py -> build/lib/retriever/lib
copying retriever/lib/install.py -> build/lib/retriever/lib
copying retriever/lib/load_json.py -> build/lib/retriever/lib
copying retriever/lib/repository.py -> build/lib/retriever/lib
copying retriever/lib/dummy.py -> build/lib/retriever/lib
creating build/bdist.macosx-10.7-x86_64
creating build/bdist.macosx-10.7-x86_64/egg
creating build/bdist.macosx-10.7-x86_64/egg/retriever
copying build/lib/retriever/_version.py -> build/bdist.macosx-10.7-x86_64/egg/retriever
copying build/lib/retriever/__init__.py -> build/bdist.macosx-10.7-x86_64/egg/retriever
copying build/lib/retriever/try_install_all.py -> build/bdist.macosx-10.7-x86_64/egg/retriever
copying build/lib/retriever/lscolumns.py -> build/bdist.macosx-10.7-x86_64/egg/retriever
copying build/lib/retriever/term_size.py -> build/bdist.macosx-10.7-x86_64/egg/retriever
creating build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/download_only.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/msaccess.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/csvengine.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/__init__.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/sqlite.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/postgres.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/jsonengine.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/xmlengine.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/engines/mysql.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/engines
copying build/lib/retriever/compile.py -> build/bdist.macosx-10.7-x86_64/egg/retriever
creating build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/datapackage.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/get_opts.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/models.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/engine_tools.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/download.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/tools.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/datasets.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/__init__.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/warning.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/cleanup.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/excel.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/templates.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/engine.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/defaults.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/table.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/scripts.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/install.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/load_json.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/repository.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/lib/dummy.py -> build/bdist.macosx-10.7-x86_64/egg/retriever/lib
copying build/lib/retriever/__main__.py -> build/bdist.macosx-10.7-x86_64/egg/retriever
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/_version.py to _version.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/try_install_all.py to try_install_all.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lscolumns.py to lscolumns.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/term_size.py to term_size.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/download_only.py to download_only.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/msaccess.py to msaccess.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/csvengine.py to csvengine.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/sqlite.py to sqlite.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/postgres.py to postgres.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/jsonengine.py to jsonengine.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/xmlengine.py to xmlengine.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/engines/mysql.py to mysql.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/compile.py to compile.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/datapackage.py to datapackage.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/get_opts.py to get_opts.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/models.py to models.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/engine_tools.py to engine_tools.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/download.py to download.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/tools.py to tools.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/datasets.py to datasets.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/warning.py to warning.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/cleanup.py to cleanup.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/excel.py to excel.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/templates.py to templates.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/engine.py to engine.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/defaults.py to defaults.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/table.py to table.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/scripts.py to scripts.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/install.py to install.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/load_json.py to load_json.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/repository.py to repository.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/lib/dummy.py to dummy.cpython-36.pyc
byte-compiling build/bdist.macosx-10.7-x86_64/egg/retriever/__main__.py to __main__.cpython-36.pyc
installing package data to build/bdist.macosx-10.7-x86_64/egg
running install_data
copying CITATION -> build/bdist.macosx-10.7-x86_64/egg/
creating build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying retriever.egg-info/PKG-INFO -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying retriever.egg-info/SOURCES.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying retriever.egg-info/dependency_links.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying retriever.egg-info/entry_points.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying retriever.egg-info/requires.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
copying retriever.egg-info/top_level.txt -> build/bdist.macosx-10.7-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/retriever-2.1.0-py3.6.egg' and adding 'build/bdist.macosx-10.7-x86_64/egg' to it
removing 'build/bdist.macosx-10.7-x86_64/egg' (and everything under it)
Processing retriever-2.1.0-py3.6.egg
Copying retriever-2.1.0-py3.6.egg to /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages
Adding retriever 2.1.0 to easy-install.pth file
Installing retriever script to /Users/sumitsaha/Desktop/venv/bin

Installed /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages/retriever-2.1.0-py3.6.egg
Processing dependencies for retriever==2.1.0
Searching for argcomplete
Reading https://pypi.python.org/simple/argcomplete/
Downloading https://pypi.python.org/packages/0d/f2/058910b2c732092175875820177dae9d390e71a5f30a9895f92e6a6ca466/argcomplete-1.9.3-py2.py3-none-any.whl#md5=31b1f18d438a5f97d2c2c1ae63abccdb
Best match: argcomplete 1.9.3
Processing argcomplete-1.9.3-py2.py3-none-any.whl
Installing argcomplete-1.9.3-py2.py3-none-any.whl to /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages
writing requirements to /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages/argcomplete-1.9.3-py3.6.egg/EGG-INFO/requires.txt
Adding argcomplete 1.9.3 to easy-install.pth file
Installing register-python-argcomplete script to /Users/sumitsaha/Desktop/venv/bin
Installing python-argcomplete-check-easy-install-script script to /Users/sumitsaha/Desktop/venv/bin
Installing python-argcomplete-tcsh script to /Users/sumitsaha/Desktop/venv/bin
Installing activate-global-python-argcomplete script to /Users/sumitsaha/Desktop/venv/bin

Installed /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages/argcomplete-1.9.3-py3.6.egg
Searching for future
Reading https://pypi.python.org/simple/future/
Downloading https://pypi.python.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz#md5=3e8e88a2bda48d54b1da7634d04760d7
Best match: future 0.16.0
Processing future-0.16.0.tar.gz
Writing /var/folders/1k/tmnhwp157nqdnm0lzylpmxs00000gn/T/easy_install-iuvw_y4c/future-0.16.0/setup.cfg
Running future-0.16.0/setup.py -q bdist_egg --dist-dir /var/folders/1k/tmnhwp157nqdnm0lzylpmxs00000gn/T/easy_install-iuvw_y4c/future-0.16.0/egg-dist-tmp-gxbqb2uh
warning: no files found matching '*.au' under directory 'tests'
warning: no files found matching '*.gif' under directory 'tests'
warning: no files found matching '*.txt' under directory 'tests'
zip_safe flag not set; analyzing archive contents...
future.backports.test.__pycache__.ssl_servers.cpython-36: module references __file__
future.backports.test.__pycache__.support.cpython-36: module references __file__
future.standard_library.__pycache__.__init__.cpython-36: module references __file__
future.standard_library.__pycache__.__init__.cpython-36: module references __path__
future.utils.__pycache__.__init__.cpython-36: module MAY be using inspect.stack
past.builtins.__pycache__.misc.cpython-36: module MAY be using inspect.stack
past.translation.__pycache__.__init__.cpython-36: module references __file__
past.translation.__pycache__.__init__.cpython-36: module references __path__
creating /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages/future-0.16.0-py3.6.egg
Extracting future-0.16.0-py3.6.egg to /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages
Adding future 0.16.0 to easy-install.pth file
Installing futurize script to /Users/sumitsaha/Desktop/venv/bin
Installing pasteurize script to /Users/sumitsaha/Desktop/venv/bin

Installed /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages/future-0.16.0-py3.6.egg
Searching for xlrd
Reading https://pypi.python.org/simple/xlrd/
Downloading https://pypi.python.org/packages/07/e6/e95c4eec6221bfd8528bcc4ea252a850bffcc4be88ebc367e23a1a84b0bb/xlrd-1.1.0-py2.py3-none-any.whl#md5=baef6cc82027269dbc9e1479d1dc942f
Best match: xlrd 1.1.0
Processing xlrd-1.1.0-py2.py3-none-any.whl
Installing xlrd-1.1.0-py2.py3-none-any.whl to /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages
Adding xlrd 1.1.0 to easy-install.pth file
Installing runxlrd.py script to /Users/sumitsaha/Desktop/venv/bin

Installed /Users/sumitsaha/Desktop/venv/lib/python3.6/site-packages/xlrd-1.1.0-py3.6.egg
Finished processing dependencies for retriever==2.1.0
usage: activate-global-python-argcomplete [-h] [--dest DEST] [--user]
                                          [--no-defaults]
                                          [--complete-arguments ...]
activate-global-python-argcomplete: error: Path /etc/bash_completion.d does not exist
(venv) Sumits-MacBook-Pro:retriever sumitsaha$ l
-bash: l: command not found
(venv) Sumits-MacBook-Pro:retriever sumitsaha$ ls
CHANGES.md      appveyor.yml        dist            modpath.iss     retriever.egg-info  test
CITATION        build           docker          osx_icon.icns       retriever_installer.iss version.py
CONTRIBUTING.md     build.sh        docs            paper           scripts         version.txt
LICENSE         build_mac       hooks           pyinstaller.spec    setup.cfg
MANIFEST.in     build_win       icon.ico        requirements.txt    setup.py
README.md       codecov.yml     make_docs.sh        retriever       stdeb.cfg
(venv) Sumits-MacBook-Pro:retriever sumitsaha$ retrievr
-bash: retrievr: command not found
(venv) Sumits-MacBook-Pro:retriever sumitsaha$ retriever
usage: retriever [-h] [-v] [-q]
                 {download,install,defaults,update,new,new_json,edit_json,delete_json,ls,citation,license,reset,help}
                 ...

positional arguments:
  {download,install,defaults,update,new,new_json,edit_json,delete_json,ls,citation,license,reset,help}
                        sub-command help
    download            download raw data files for a dataset
    install             download and install dataset
    defaults            displays default options
    update              download updated versions of scripts
    new                 create a new sample retriever script
    new_json            CLI to create retriever datapackage.json script
    edit_json           CLI to edit retriever datapackage.json script
    delete_json         CLI to remove retriever datapackage.json script
    ls                  display a list all available dataset scripts
    citation            view citation
    license             view dataset license
    reset               reset retriever: removes configation settings,
                        scripts, and cached data
    help

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -q, --quiet           suppress command-line output
(venv) Sumits-MacBook-Pro:retriever sumitsaha$ retriever ls
Available datasets : 84

abalone-age                   croche-vegetation-data        la-selva-trees              nematode-traits               socean-diet-data
airports                      dicerandra-frutescens         leaf-herbivory              ngreatplains-flowering-dates  species-exctinction-rates
amniote-life-hist             elton-traits                  macroalgal_communities      NPN                           streamflow-conditions
antarctic-breed-bird          fish-parasite-hosts           macrocystis-variation       nyc-tree-count                tree-canopy-geometries
aquatic-animal-excretion      flensburg-food-web            mammal-community-db         pantheria                     tree-demog-wghats
bioclim                       forest-biomass-china          mammal-diet                 phytoplankton-size            turtle-offspring-nesting
biodiversity-response         forest-fires-portugal         mammal-life-hist            plant-comp-ok                 veg-plots-sdl
biomass-allometry-db          forest-inventory-analysis     mammal-masses               plant-life-hist-eu            vertnet
bird-migration-data           forest-plots-michigan         mammal-metabolic-rate       plant-occur-oosting           vertnet-amphibians
bird-size                     forest-plots-wghats           mammal-super-tree           plant-taxonomy-us             vertnet-birds
breast-cancer-wi              fray-jorge-ecology            mapped-plant-quads-co       poker-hands                   vertnet-fishes
breed-bird-survey             gdp                           mapped-plant-quads-id       portal                        vertnet-mammals
breed-bird-survey-50stop      gentry-forest-transects       mapped-plant-quads-ks       portal-dev                    vertnet-reptiles
butterfly-population-network  great-basin-mammal-abundance  mapped-plant-quads-mt       predator-prey-body-ratio      wine-composition
car-eval                      home-ranges                   marine-recruitment-data     predator-prey-size-marine     wine-quality
chytr-disease-distr           intertidal-abund-me           mediter-basin-plant-traits  predicts                      wood-density
community-abundance-misc      iris                          mt-st-helens-veg            prism-climate

@aswanipranjal The retriever repository might not have been cloned properly. Also, check if you changed to the retriever directory before running python setup.py install. Let me know if this resolved your issue.

henrykironde commented 6 years ago
  1. Update your local repository to be on the same commit as master.
  2. Then clean the repo. git clean -fx
  3. Remove the . retriever directory from your home. rm -rf ~/.retriever
  4. Do afresh install. pip install . -U or python setup.py install and let me know if there are errors
aswanipranjal commented 6 years ago

@henrykironde Thank you! That did it.