fredapi icon indicating copy to clipboard operation
fredapi copied to clipboard

'Basic Usage' snippet does not work

Open Jacyle opened this issue 6 years ago • 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'

Jacyle avatar Feb 20 '19 14:02 Jacyle

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

mortada avatar Feb 21 '19 04:02 mortada

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

The import statement is not finding the module.

Jacyle avatar Feb 22 '19 13:02 Jacyle