feedinlib icon indicating copy to clipboard operation
feedinlib copied to clipboard

can not run file [load_open_fred_weather_data.ipynb] online by binder or using my PC

Open ADai528 opened this issue 5 years ago • 4 comments

hi, I want to run load_open_fred_weather_data.ipynb file, but no matter I use binder online or on my PC , errors will appear.

When i use the binder online, it shows that the 'open_FRED' module cannot be found.

image

When i try to run it on my PC, there will be another error: AttributeError: 'NoneType' object has no attribute 'id'

image image

Has anyone encountered the same problem and how did you solve it? I hope that feedinlib Team can solve this problem as soon as possible.

ADai528 avatar Dec 02 '20 09:12 ADai528

I got a little farther by adding an initialization cell:

!pip install "git+https://github.com/oemof/feedinlib.git"
!pip install open_FRED-cli

But then hit:

image

dpinney avatar Jan 10 '21 17:01 dpinney

I gave up on FRED and switched to looking at era5. Looks like there's some configuration steps needed to get access to the api and to store the key.

dpinney avatar Jan 10 '21 17:01 dpinney

Okay, I finally got this all running with era5 data. Here's a working notebook: https://colab.research.google.com/drive/174mEpFy-Yr00o3R2Grqd8Q7mvGsG-jHY

Note you'll have to go through the era5 api signup and key generation process to get it to run.

I'd recommend updating the feedinlib readme and install instructions to mention that registrations and api keys are needed for the weather data sources (I assume FRED wasn't working because I didn't register).

It also appears that an old version of feedinlib is in pypi that's incompatible with the example notebooks. That's why I did a !pip install git+https://github... install.

By the way, great job in the library finding data and a preparation pipeline that can be used as an input to windpowerlib. Not an easy task!

dpinney avatar Jan 10 '21 18:01 dpinney

Thank you @dpinney for sharing your experience. We will check the notebooks before the next release and we will have a look at your notebook.

uvchik avatar Jun 22 '21 14:06 uvchik