import FINE
if __name__ == '__main__':
print("Hello World!")
Outputs:
...\pythonTestProject\venv\Scripts\python.exe .../pythonTestProject/main.py
Traceback (most recent call last):
File "C:/Users/Paul/Git/EWI/pythonTestProject/main.py", line 3, in <module>
import FINE
File "...\pythonTestProject\venv\lib\site-packages\FINE\__init__.py", line 6, in <module>
from .energySystemModel import EnergySystemModel
File "...\pythonTestProject\venv\lib\site-packages\FINE\energySystemModel.py", line 6, in <module>
from FINE.component import Component, ComponentModel
File "...\pythonTestProject\venv\lib\site-packages\FINE\component.py", line 2, in <module>
from FINE import utils
File "...\pythonTestProject\venv\lib\site-packages\FINE\utils.py", line 9, in <module>
import pwlf
File "...\pythonTestProject\venv\lib\site-packages\pwlf\__init__.py", line 1, in <module>
from .pwlf import PiecewiseLinFit # noqa F401
File "...\pythonTestProject\venv\lib\site-packages\pwlf\pwlf.py", line 27, in <module>
from scipy.optimize import differential_evolution
File "...\pythonTestProject\venv\lib\site-packages\scipy\__init__.py", line 136, in <module>
from . import _distributor_init
File "...\pythonTestProject\venv\lib\site-packages\scipy\_distributor_init.py", line 61, in <module>
WinDLL(os.path.abspath(filename))
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] Das angegebene Modul wurde nicht gefunden
Process finished with exit code 1
I tried multiple combinations of different versions of scipy and pwlf.
Also including the minimum of scipy==1.4.1 and pwlf==1.1.5 mentioned in requirements.txt.
But this still raises an error.
Hi there,
I created a new python project in PyCharm with Virtualenv + Python 3.7 and installed FINE with
pip install fine
. That ran successfully:I created a simple
main.py
script:Outputs:
I tried multiple combinations of different versions of scipy and pwlf. Also including the minimum of
scipy==1.4.1
andpwlf==1.1.5
mentioned inrequirements.txt
. But this still raises an error.