Repository: weecology/retriever

Issue:
Some new datasets failing on 2.0.0
Two or three of the new datasets that got added today (hooray!) appearing to having issues on `2.0.0`.

```
ethan@croryx:~$ pip install retriever --upgrade
...
ethan@croryx:~$ retriever reset all
...
ethan@croryx:~$ retriever update
Downloading scripts...
Download Progress: [##############################] 100.00%
The retriever is up-to-date
Failed to load script: socean_diet_data (/home/ethan/.retriever/scripts/)
Exception: 'main' object has no attribute 'keywords' 
Failed to load script: flensburg_food_web (/home/ethan/.retriever/scripts/)
Exception: 'main' object has no attribute 'keywords' 

ethan@croryx:~$ retriever ls
Failed to load script: socean_diet_data (/home/ethan/.retriever/scripts/)
Exception: 'main' object has no attribute 'keywords' 
Failed to load script: flensburg_food_web (/home/ethan/.retriever/scripts/)
Exception: 'main' object has no attribute 'keywords' 
Failed to load script: socean_diet_data (/home/ethan/.retriever/scripts/)
Exception: 'main' object has no attribute 'keywords' 
Failed to load script: flensburg_food_web (/home/ethan/.retriever/scripts/)
Exception: 'main' object has no attribute 'keywords' 
Available datasets : 78

abalone-age               breast-cancer-wi              fish-parasite-hosts           home-ranges             mammal-life-hist         mediter-basin-plant-traits    plant-life-hist-eu         prism-climate              vertnet-amphibians  
amniote-life-hist         breed-bird-survey             forest-biomass-china          intertidal-abund-me     mammal-masses            mt-st-helens-veg              plant-occur-oosting        species-exctinction-rates  vertnet-birds       
antarctic-breed-bird      breed-bird-survey-50stop      forest-fires-portugal         iris                    mammal-metabolic-rate    nematode-traits               plant-taxonomy-us          streamflow-conditions      vertnet-fishes      
aquatic-animal-excretion  butterfly-population-network  forest-inventory-analysis     la-selva-trees          mammal-super-tree        ngreatplains-flowering-dates  poker-hands                tree-canopy-geometries     vertnet-mammals     
bioclim                   car-eval                      forest-plots-michigan         leaf-herbivory          mapped-plant-quads-co    NPN                           portal                     tree-demog-wghats          vertnet-reptiles    
biodiversity-response     chytr-disease-distr           forest-plots-wghats           macroalgal_communities  mapped-plant-quads-id    nyc-tree-count                portal-dev                 turtle-offspring-nesting   wine-composition    
biomass-allometry-db      community-abundance-misc      fray-jorge-ecology            macrocystis-variation   mapped-plant-quads-ks    pantheria                     predator-prey-body-ratio   veg-plots-sdl              wine-quality        
bird-migration-data       dicerandra-frutescens         gentry-forest-transects       mammal-community-db     mapped-plant-quads-mt    phytoplankton-size            predator-prey-size-marine  vertnet                    wood-density        
bird-size                 elton-traits                  great-basin-mammal-abundance  mammal-diet             marine-recruitment-data  plant-comp-ok
```

@henrykironde suspects that these datasets only work due to improvements in `master` that were made to get this whole set of datasets running, so we may just need to update their `retriever_minimum_version` values to `2.1.dev0`.


Discussion:
I tried running a few of these datasets on 2.0.0 with a changed `retriever_minimum_version`, and the problems seemed to persist. I can talk about it with @henrykironde some more though. Looks like the temporary fix is removing these repositories. #932 
Yah I tried that too and it didn't work well. I think removing them for now will be good. I could try again later and see where the problem really is.
I understand this now and it's an easy fix. PR inbound.

Resolving patch:
diff --git a/scripts/flensburg_food_web.py b/scripts/flensburg_food_web.py
--- a/scripts/flensburg_food_web.py
+++ b/scripts/flensburg_food_web.py
@@ -14,8 +14,9 @@ def __init__(self, **kwargs):
         self.shortname="flensburg-food-web"
         self.ref="https://figshare.com/articles/Full_Archive/3552066"
         self.description="This data is of a food web for the Flensburg Fjord, a brackish shallow water inlet on the Baltic Sea, between Germany and Denmark."
+        self.keywords = []
         self.retriever_minimum_version='2.0.dev'
-        self.version='1.0.0'
+        self.version='1.0.1'
         self.urls={"zip": "https://ndownloader.figshare.com/files/5620326"}
         self.cleanup_func_table = Cleanup(correct_invalid_value, missing_values=[''])
 
@@ -39,4 +40,4 @@ def download(self, engine=None, debug=False):
             self.engine.auto_create_table(Table(str(tablename), cleanup=self.cleanup_func_table),filename=filename)
             self.engine.insert_data_from_file(data_path)
 
-SCRIPT = main()
\ No newline at end of file
+SCRIPT = main()
diff --git a/scripts/socean_diet_data.py b/scripts/socean_diet_data.py
--- a/scripts/socean_diet_data.py
+++ b/scripts/socean_diet_data.py
@@ -14,8 +14,9 @@ def __init__(self, **kwargs):
         self.shortname="socean-diet-data"
         self.ref="https://figshare.com/articles/Full_Archive/3551304"
         self.description="Diet-related data from published and unpublished data sets and studies"
+        self.keywords = []
         self.retriever_minimum_version='2.0.dev'
-        self.version='1.0.0'
+        self.version='1.0.1'
         self.urls={"zip": "https://ndownloader.figshare.com/files/5618823"}
         self.cleanup_func_table = Cleanup(correct_invalid_value, missing_values=['', 'unknown'])
 
@@ -40,4 +41,4 @@ def download(self, engine=None, debug=False):
             self.engine.auto_create_table(Table(str(tablename), cleanup=self.cleanup_func_table),filename=filename)
             self.engine.insert_data_from_file(data_path)
 
-SCRIPT = main()
\ No newline at end of file
+SCRIPT = main()


Test patch: