mortada / fredapi

Python API for FRED (Federal Reserve Economic Data) and ALFRED (Archival FRED)
Apache License 2.0
902 stars 159 forks source link

'Basic Usage' snippet does not work #24

Open Jacyle opened 5 years ago

Jacyle commented 5 years ago

The following snippet doesn't work for me:

from fredapi import Fred fred = Fred(api_key='insert api key here') data = fred.get_series('SP500')

I get the following error:

from fredapi import Fred

Traceback (most recent call last):

File "", line 1, in from fredapi import Fred

File "C:\", line 8, in from fredapi import Fred

ImportError: cannot import name 'Fred'

mortada commented 5 years ago

could you please provide a bit more context - which version of fredapi are you using, and which OS? thanks!

Jacyle commented 5 years ago

mb, I'm using fredapi 0.4.2 and Windows7/python 3.5

The import statement is not finding the module.