Page 1 of 1
python xput & xrun working differently in EViews 14?
Posted: Thu Nov 28, 2024 8:20 am
by amrsherif
Hello,
I have been using an addin for the past several years. It passes an EViews string to python as a list, which then gets processed and data is returned back to EViews.
I am noticing that it does not work in EViews14.
my code is simple:
xput(name=series, ptype=list) input
xrun "data = fetch_2(series)"
I am getting a "NameError: name 'series' is not defined"
I get the same error if i try: xrun "print('series')"
Any ideas would be greatly appreciated.
Re: python xput & xrun working differently in EViews 14?
Posted: Thu Nov 28, 2024 12:20 pm
by EViews Steve
It looks like XPUT's name option is being ignored. Running your XPUT command is creating an object named 'input' instead of 'series'. This does not happen in EViews 13.
We'll get this fixed.
Steve
Re: python xput & xrun working differently in EViews 14?
Posted: Thu Nov 28, 2024 1:25 pm
by amrsherif
Ok thanks. Will wait for the fix
Re: python xput & xrun working differently in EViews 14?
Posted: Mon Dec 02, 2024 2:40 pm
by EViews Steve
Fix has been released in today's 14 patch.
Re: python xput & xrun working differently in EViews 14?
Posted: Wed Dec 04, 2024 9:13 am
by amrsherif
Thanks, but there is still an issue (my script still works in older versions but not 14).
Right now, i am calling back to python objects:
xget(type=series) datalist
xget(type=alpha) dateslist
printing the objects in python works: xrun "print(datalist[0:10])"
However, I cannot use them in EVIews after calling them.
I get an error: "datalist is not defined"
Re: python xput & xrun working differently in EViews 14?
Posted: Mon Dec 09, 2024 10:21 am
by EViews Steve
Thanks for the info. XGET also had an issue (a different one) with the name option. Fix will be put into the next 14 patch.
Re: python xput & xrun working differently in EViews 14?
Posted: Thu Dec 19, 2024 8:18 am
by amrsherif
Thanks. Any idea when the patch will be released?
Re: python xput & xrun working differently in EViews 14?
Posted: Thu Dec 19, 2024 2:03 pm
by EViews Steve
Just released a new patch.