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
Initializing EViewsPyConn
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
- EViews Developer
- Posts: 820
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Initializing EViewsPyConn
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.
Re: Initializing EViewsPyConn
Thanks for the swift reply Steve.
I will try to downgrade step by step to see if that works.
I will try to downgrade step by step to see if that works.
-
- EViews Developer
- Posts: 820
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Initializing EViewsPyConn
Krille:
I just tried XOPEN(P) from within EViews 13 using pandas 2.2.2 and it worked just fine.
Are you using a recent version of EViews 13? I'm running the Aug 28, 2024 build.
Steve
I just tried XOPEN(P) from within EViews 13 using pandas 2.2.2 and it worked just fine.
Are you using a recent version of EViews 13? I'm running the Aug 28, 2024 build.
Steve
Re: Initializing EViewsPyConn
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
I am running the Jun 20 2024 Build. Will update EViews and try again (the successive downgrading didn't work).
Best,
Kristian
Re: Initializing EViewsPyConn
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
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
Re: Initializing EViewsPyConn
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.
Failed to initialize EViewsPyConn.
Failed to load EViews python module: _eviewsPandas.
-
- EViews Developer
- Posts: 820
- Joined: Tue Sep 16, 2008 3:00 pm
- Location: Irvine, CA
Re: Initializing EViewsPyConn
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:
After making that change, you should be able to call XOPEN(p) with pandas 2.2 installed.
Steve
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:
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