Page 1 of 1

Bug (Attribute Error) in PyEviews?

Posted: Tue Dec 20, 2022 4:46 am
by darmanij
I am getting an error when running the PyEviews code as given in the white paper.

The below code:

Code: Select all

>>> import numpy as np >>> import pandas as pa >>> import pyeviews as evp >>> dtsa = pa.date_range('1998', periods = 3, freq = 'A') >>> benchmark = pa.Series([4000.,4161.4,np.nan],index=dtsa, name = 'benchmark') >>> eviewsapp = evp.GetEViewsApp(instance='new', showwindow=True) >>> evp.PutPythonAsWF(benchmark, app=eviewsapp)
returns
AttributeError: 'DataFrame' object has no attribute 'attrs'
The error appears to be linked to the last line of the code (the PutPythonAsWF function). Would appreciate some guidance. Thanks!

Re: Bug (Attribute Error) in PyEviews?

Posted: Tue Dec 20, 2022 11:53 am
by EViews Rebecca
I don't get that error. Which version of pyeviews are you using?

Re: Bug (Attribute Error) in PyEviews?

Posted: Wed Dec 21, 2022 1:53 am
by darmanij
Hi Rebecca,

It was actually pandas that had an old version and required upgrading. Problem solved now, but thanks for the tip!