e2nIEE / PandaModels.jl

PandaModels is the developing Julia package that contains supplementary data and codes to prepare pandapower networks in a compatible format for PowerModels.jl.
https://e2niee.github.io/PandaModels.jl/dev/
Other
9 stars 11 forks source link

Problem with installing Panda Power #116

Closed Aivlyz closed 9 months ago

Aivlyz commented 9 months ago

Hello everyone,

I struggle to install PandaModels. I followed the instructions available. I think julia should be installed correctly since ] test PowerModels works. Whenever I try to run code in Spyder I get a windows fatal error. I tried to reinstall and looked for solutions, but wasn't successful. I would appreciate any ideas on how to solve the issue.

import julia.PowerModels

Windows fatal exception: code 0xc0000139

Main thread: Current thread 0x00000178 (most recent call first): File "C:\Users\koica07\anaconda3\Lib\site-packages\julia\libjulia.py", line 332 in init_julia File "C:\Users\koica07\anaconda3\Lib\site-packages\julia\core.py", line 497 in init File "C:\Users\koica07\anaconda3\Lib\site-packages\julia\core.py", line 242 in julia File "C:\Users\koica07\anaconda3\Lib\site-packages\julia\core.py", line 254 in create_module File "", line 573 in module_from_spec File "", line 676 in _load_unlocked File "", line 1147 in _find_and_load_unlocked File "", line 1176 in _find_and_load File "C:\Users\koica07\AppData\Local\Temp\ipykernel_19700\1033055077.py", line 1 in

Edit: sorry I just realized I wrote Panda Power in the title, it should be PandaModels of course. Also import julia works fine, but everything with pandamodels leads to the error. I already checked that the path variable leads to the julia directory. Also earlier I got an error like this: "could not load library "libcurl-4.dll after rebuilding the pycall package and making sure that this file is linked in the system variable PATH this part of the error did not appear anymore.

Aivlyz commented 9 months ago

If someone faces a similar issue, it was julia after all. For me installing julia-1.6.7 instead of the most current version solved the issue. However, at another computer it seems to work fine with the newest version.