Oemof.solph installation problem, ModuleNotFoundError

Hi everyone,

I’m having trouble installing oemof.solph under Windows 11 using PyCharm version 2022.3.2. I’ve installed Python version 3.11 and the most recent versions of the cbc and gurobi solvers, and I’ve added them to the system path. I’ve also updated pip and setuptools to their latest versions. After that, I installed oemof.solph version 0.5.0 using pip install oemof.solph.
When I try to verify if the installation was successful using oemof_installation_test, I receive the following error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\eikoh\Documents\Masterarbeit\Python Projekt MA\OemofTest2\venv\Scripts\oemof_installation_test.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'oemof.solph.console_scripts'

Thank you in advance.

1 Like

This issue has just been fixed on the developer version (Fixing the path to the file containing `check_oemof_installation()` w… by tobirohrer · Pull Request #924 · oemof/oemof-solph · GitHub). I guess the fix will be included in the next release.