ERIGrid / JRA2-TC1

ERIGrid JRA2: Test case TC1 implementation
BSD 2-Clause "Simplified" License
5 stars 1 forks source link

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

Open Blitzy20 opened 3 years ago

Blitzy20 commented 3 years ago

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 commented 3 years ago

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

Blitzy20 commented 3 years ago

Hi, Sorry for the late reply.

I am using python 3.8.5

It says that fmipp was successfully installed issue_1

ewidl commented 3 years ago

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
  2. 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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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)!