sogno-platform/dpsim

No module named 'dpsimpy'

frostyduck opened this issue · 2 comments

I tried to run one of examples, but I have got the following error:

import dpsimpy
ModuleNotFoundError: No module named 'dpsimpy''

What means dpsimpy?

Hi @frostyduck, it looks like the dpsimpy module is not available in the PYTHONPATH.
The dpsimpy module is created using pybind and exposes all C++ core functions of DPsim to Python.

If you are using the dev Dockerfile, you need to add the location of the modules to the PYTHONPATH environment variable using 'export' as explained in the build instructions.

If you are using this Dockerfile, the python package is automatically installed and everything should work out of the box.

Please feel free to message me in the LFE slack in case my hints do not solve your problem: https://slack.lfenergy.org/

I close this issue for now. Please come back to me if the issue persists for your installation.