Skip to content

module object has no attribute converters #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
akrun1 opened this issue Mar 16, 2019 · 2 comments
Open

module object has no attribute converters #13

akrun1 opened this issue Mar 16, 2019 · 2 comments

Comments

@akrun1
Copy link

akrun1 commented Mar 16, 2019

I get this error after loading the rforecast package
`

import rforecast
data = [509, 506, 340, 240, 219, 172, 252, 221, 276, 271, 342, 428, 442, 432, 437]
rforecast.converters.sequence_as_series(data, start=1980)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'converters'
`

How do I correct it?

@davidthaler
Copy link
Owner

aksa,
I'm not going to be able to get to this until tomorrow.

@davidthaler
Copy link
Owner

aksa

Sorry for the late response. It looks like you are calling rforecast.converters after importing rforecast, but not the rforecast.converters sub-package. That is, the import you need is:

import rforecast, rforecast.converters

Importing the package doesn't import its sub-packages (although I should probably move everything up into the top-level rforecast package).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants