Pyeviews not working with new eviews 13 update
Posted: Tue Jan 09, 2024 12:46 pm
Hi,
We updated Eviews 13 with the "Patch Date : 2024-01-08", but now we can`t run our python codes with the PYEVIEWS library (function GETFASPYTHON is not working anymore). Could you please update your pyeviews library asap, some important processes depend on our python codes for business.
df_data = evp.GetWFAsPython(app=eviewsapp, wfname=dict_inf['wf_name'],pagename=dict_inf['page_name'],namefilter=dict_inf['name_filter'])
File ~\AppData\Local\anaconda3\lib\site-packages\pyeviews\__init__.py:422 in GetWFAsPython
app.Run('string ' + str(tempvar) + ' = ' + str(var).strip() + '.@attr("' + str(attr) + '")')
COMError: (-2147221490, 'compobj.dll is too old for the ole2.dll initialized', ('Syntax error in "STRING TEMP = AUDUSD.@ATTR(""SECURITY")".', 'EViews.Application.13.Run', None, 0, None))
It is this section of the "__init__.py" :
# get all attribute names
for var in names:
attrnames = app.Get('=@attrnames("*", "' + str(var) + '")').split()
if attrnames and not ispanel:
attrvals = []
for attr in attrnames:
tempvar = app.Get('=@getnextname("TEMP")')
app.Run('string ' + str(tempvar) + ' = ' + str(var).strip() + '.@attr("' + str(attr) + '")')
attrvals.append(app.Get(str(tempvar)))
app.Run('delete ' + str(tempvar))
data.attrs.update(dict(zip(attrnames, attrvals)))
# close the workfile
#app.Run("wfclose")
return data
Regards,
LC
We updated Eviews 13 with the "Patch Date : 2024-01-08", but now we can`t run our python codes with the PYEVIEWS library (function GETFASPYTHON is not working anymore). Could you please update your pyeviews library asap, some important processes depend on our python codes for business.
df_data = evp.GetWFAsPython(app=eviewsapp, wfname=dict_inf['wf_name'],pagename=dict_inf['page_name'],namefilter=dict_inf['name_filter'])
File ~\AppData\Local\anaconda3\lib\site-packages\pyeviews\__init__.py:422 in GetWFAsPython
app.Run('string ' + str(tempvar) + ' = ' + str(var).strip() + '.@attr("' + str(attr) + '")')
COMError: (-2147221490, 'compobj.dll is too old for the ole2.dll initialized', ('Syntax error in "STRING TEMP = AUDUSD.@ATTR(""SECURITY")".', 'EViews.Application.13.Run', None, 0, None))
It is this section of the "__init__.py" :
# get all attribute names
for var in names:
attrnames = app.Get('=@attrnames("*", "' + str(var) + '")').split()
if attrnames and not ispanel:
attrvals = []
for attr in attrnames:
tempvar = app.Get('=@getnextname("TEMP")')
app.Run('string ' + str(tempvar) + ' = ' + str(var).strip() + '.@attr("' + str(attr) + '")')
attrvals.append(app.Get(str(tempvar)))
app.Run('delete ' + str(tempvar))
data.attrs.update(dict(zip(attrnames, attrvals)))
# close the workfile
#app.Run("wfclose")
return data
Regards,
LC