irena-flextool / flextool

IRENA FlexTool is an energy and power systems model for understanding the role of variable power generation in future energy systems.
https://www.irena.org/energytransition/Energy-System-Models-and-Data/IRENA-FlexTool
Other
21 stars 5 forks source link

Cannot run FlexTool on Microsoft server 12/2012 #113

Open e-zaline opened 9 months ago

e-zaline commented 9 months ago

I have tried to install FlexTool in a Microsoft server 12/2012. The installation showed no error, but when running python -m spinetoolbox, I get the following error:

(flextool) C:\Users\XXXX>python -m spinetoolbox Traceback (most recent call last): File "C:\Users\XXXX.conda\envs\flextool\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\XXXX.conda\envs\flextool\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\XXXX\Spine-Toolbox\spinetoolbox__main__.py", line 17, in from spinetoolbox.main import main File "C:\Users\XXXX\Spine-Toolbox\spinetoolbox\main.py", line 28, in from PySide6.QtGui import QFontDatabase ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.

Do you have any idea what could be the problem?

jkiviluo commented 9 months ago

@soininen would you know a solution to this. I would guess that it's not really about Microsoft server as such, but that the installation has failed to get everything installed. There could e.g. be a policy against allowing unknown DLL files in the system.

soininen commented 9 months ago

Maybe adding the folder which contains the DLLs to the PATH environment variable would help? On my system, the folder would be C:\Users\XXX\AppData\Local\miniconda3\envs\flextool\Lib\site-packages\PySide6.

e-zaline commented 9 months ago

Thanks. Unfortunately it does not help.

soininen commented 9 months ago

Does it work if you try to install Toolbox using Python's virtual environment? You will need to have Python installed (not the Anaconda one) and follow the instructions in Installation from sources using Git.