mortada/fredapi

'Basic Usage' snippet does not work

Opened this issue · 2 comments

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'

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

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

The import statement is not finding the module.