Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'fmipp' has no attribute 'eu' #1

Open
Blitzy20 opened this issue Nov 16, 2020 · 8 comments
Open

module 'fmipp' has no attribute 'eu' #1

Blitzy20 opened this issue Nov 16, 2020 · 8 comments

Comments

@Blitzy20
Copy link

I'm getting the above errror when trying to run the master.py file. I have installed the fmipp package and followed the other steps before running Master.py

@ewidl
Copy link
Member

ewidl commented Nov 16, 2020

This sounds like fmipp is not installed properly. Which version of Python are you using?

@Blitzy20
Copy link
Author

Hi,
Sorry for the late reply.

I am using python 3.8.5

It says that fmipp was successfully installed
issue_1

@ewidl
Copy link
Member

ewidl commented Jan 19, 2021

There seem to be 2 issues:

  1. To install module fmipp on Windows, you have to call pip with the extra argument --prefer-binary:
pip install fmipp --prefer-binary
  1. So far, there is no version of fmipp for Python 3.8. I will work on that in the coming days. I will keep you posted ...

@Blitzy20
Copy link
Author

I tried the first step but I got the same error. Maybe it's the second issue. Please let me know what I can do to fix it

@Blitzy20
Copy link
Author

I tried going through the procedure using python 2.7.14. Now, I'm getting a new error. Can you help me out with this.

image

@ewidl
Copy link
Member

ewidl commented Jan 22, 2021

The problem is that libmx.dll, a library from MATLAB/Simulink, cannot be found and then loaded at run-time. You need to add the directory containing this library (it is a sub-directory of your local MATLAB installation) to the system path.

You can find instructions on how to edit the Windows system path for instance here:
https://de.mathworks.com/matlabcentral/answers/94933-how-do-i-edit-my-system-path-in-windows

@Blitzy20
Copy link
Author

Blitzy20 commented Jan 25, 2021

Hi,
I'm still getting the same error even after adding the directory to the path variable and restarting the pc. Is there something else I'm missing ? Is there something I need to open in MATLAB or PSCAD before running master.py (other than the PSCAD library and the example case mentioned in the instructions) ?
PS: I'm using matlab 2020b and libmx.dll is in bin/win64
tempsnip

@ewidl
Copy link
Member

ewidl commented Jan 26, 2021

In principle, this co-simulation setup can be implemented in various ways.
However, the resources available in this repository have been compiled to work specifically with the toolchain mentioned in the documentation:

The documentation says "tested with ...", but what it really means is "very likely will not work with any other version than ...".
The reason is that the interfaces of these software tools typically change (at least slightly) with each version.
I will add a note in the documentation to emphasize this point.

It is also very important to be consistent in using either 32-bit applications or 64-bit applications:

ATTENTION: The co-simulation toolchain needs to be completely in either 32-bit or 64-bit.
For TC1 it was decided to use consistently 32-bit for Windows setups.
Therefore, be sure to install 32-bit versions of all tools (Python, PowerFactory, MATLAB/Simulink)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants