Python-wrapper-for-R-Forecast icon indicating copy to clipboard operation
Python-wrapper-for-R-Forecast copied to clipboard

module object has no attribute converters

Open akrun1 opened this issue 6 years ago • 2 comments

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?

akrun1 avatar Mar 16 '19 17:03 akrun1

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

davidthaler avatar Mar 16 '19 20:03 davidthaler

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).

davidthaler avatar Mar 18 '19 16:03 davidthaler