You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JuliaError: Exception 'Failed to precompile PandaModels [2dbab86a-7cbf-476f-9afe-75ffd3079e7c] to "/Users/macbookair/.julia/compiled/v1.10/PandaModels/jl_eidSz9".' occurred while calling julia code:
using PandaModels
On the other hand, I can run PowerModels directly using julia from Python just fine.
importjuliajulia.install(quiet=True)
frommatpowerimportpath_matpower_casesfromjuliaimportMainMain.eval(""" using PowerModels using Ipopt using JuMP nlp_solver = JuMP.optimizer_with_attributes(Ipopt.Optimizer, "tol"=>1e-6, "print_level"=>0)""")
func_name='case9'file_path=f"{path_matpower_cases}/{func_name}.m"Main.eval('solver = optimizer_with_attributes(Ipopt.Optimizer, "tol" => 1e-6)')
result_ac=Main.eval(f'solve_opf("{file_path}", ACPPowerModel, solver)')
Expected Behavior
I can Main.eval just fine, PandaModels that relies on that should be able to run just fine.
Installed Versions
python version: '2.14.10' * Operating System name/version: MacOs, M1
Label
Relevant labels are selected
The text was updated successfully, but these errors were encountered:
Turns out, it is because PandaModels requires Cbc, and Cbc requires Cbc-2.10.0. Need some acrobatic as brew didn't support old Cbc.
julia
import Pkg
Pkg.rm("Cbc")
exit()
sudo cd /usr/local/lib
sudo curl -LO https://github.com/coin-or/Cbc/archive/refs/tags/2.10.0.tar.gz
sudo tar -xvzf 2.10.0.tar.gz
cd Cbc-releases-2.10.0
sudo ./configure
make
sudo make install
julia
ENV["JULIA_CBC_LIBRARY_PATH"] = "/usr/local/lib/Cbc-releases-2.10.0/lib"
import Pkg
Pkg.build("Cbc")
using Cbc
Bug report checklis
Searched the issues page for similar reports
Read the relevant sections of the documentation
Browse the tutorials and tests for usefull code snippets and examples of use
Reproduced the issue after updating with
pip install --upgrade pandapower
(orgit pull
)Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
Reproducible Example
Issue Description and Traceback
Running above code, I got this error
On the other hand, I can run PowerModels directly using julia from Python just fine.
Expected Behavior
I can
Main.eval
just fine,PandaModels
that relies on that should be able to run just fine.Installed Versions
Label
The text was updated successfully, but these errors were encountered: