Initializing EViewsPyConn

For questions regarding installation and registration of EViews.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

Krille
Posts: 13
Joined: Tue Dec 13, 2016 11:16 am

Initializing EViewsPyConn

Postby Krille » Fri Aug 30, 2024 11:14 pm

Hi,

I am setting up a configuration for calling Python 3.12 from EViews 13. Installing Python and opening up a connection (with xopen(p)) works fine. Running commands also works fine.

Then, I want to be able to use Pandas in Python through EViews and so installed Pandas 2.2.2 (from the Windows command prompt)

Trying to run xopen(p) again (after restart, just to be safe) I get the Following error message:

Failed to initialize EViewsPyConn.
Failed to load EViews python module:
_eviewsPandas.

Do I miss something here? Appreciate any help.

Best,
Krille

Current build: Eviews 13, Jun 20 2024 Build

EViews Steve
EViews Developer
Posts: 821
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Initializing EViewsPyConn

Postby EViews Steve » Sat Aug 31, 2024 4:46 pm

I will do some testing on Tuesday, but for now, try downgrading your Pandas package to 2.1.x to see if that fixes the issue. It's possible that Pandas 2.2 changed some things so that our _eviewsPandas.py code file is no longer compatible. If you wish, you can also play/edit with this file located in your EViews 13 program folder to figure out what the exact issue is.

Krille
Posts: 13
Joined: Tue Dec 13, 2016 11:16 am

Re: Initializing EViewsPyConn

Postby Krille » Sun Sep 01, 2024 8:30 am

Thanks for the swift reply Steve.

I will try to downgrade step by step to see if that works.

EViews Steve
EViews Developer
Posts: 821
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Initializing EViewsPyConn

Postby EViews Steve » Tue Sep 03, 2024 8:03 am

Krille:

I just tried XOPEN(P) from within EViews 13 using pandas 2.2.2 and it worked just fine.
pandas_test.png
pandas_test.png (150.29 KiB) Viewed 2361 times
Are you using a recent version of EViews 13? I'm running the Aug 28, 2024 build.

Steve

Krille
Posts: 13
Joined: Tue Dec 13, 2016 11:16 am

Re: Initializing EViewsPyConn

Postby Krille » Tue Sep 03, 2024 10:35 pm

Thanks for the update.

I am running the Jun 20 2024 Build. Will update EViews and try again (the successive downgrading didn't work).

Best,
Kristian

Krille
Posts: 13
Joined: Tue Dec 13, 2016 11:16 am

Re: Initializing EViewsPyConn

Postby Krille » Fri Sep 20, 2024 10:07 pm

Hi again,

A short update on this.

A colleague of mine replicated my error messages by downloading Python from python.org, installing the packages with pip and launching EViews to set up a connection. He got the same error.

Then he created an Anaconda environment with the same version of Python and packages (all installed through Anaconda Navigator). And this turned out to work just fine. I did the same and got it to work as well.

So I guess that we do something wrong when installing Python and packages not using Anaconda.

Best,
Krille

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: Initializing EViewsPyConn

Postby trubador » Mon Sep 23, 2024 7:10 am

I have the very same problem. After installing Pandas, I get the following error message:

Failed to initialize EViewsPyConn.
Failed to load EViews python module: _eviewsPandas.

EViews Steve
EViews Developer
Posts: 821
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Initializing EViewsPyConn

Postby EViews Steve » Tue Sep 24, 2024 9:24 am

Ok, found the problem.

Our "_eviewsPandas.py" has an unused reference to a package that is no longer available starting with Pandas 2.2. Since our code doesn't actually use that package, we can just comment it out.

I'll fix this in the next patch, but for now, if you want the fix earlier, edit the "_eviewsPandas.py" file located in the EViews directory and comment out line 5 by placing a hashtag '#' in front, like this:
2024-09-24_09h20_25.png
2024-09-24_09h20_25.png (22.56 KiB) Viewed 1552 times

After making that change, you should be able to call XOPEN(p) with pandas 2.2 installed.

Steve


Return to “Installation and Registration”

Who is online

Users browsing this forum: No registered users and 1 guest