Open bimbimbambam69 opened 1 month ago
just need to rewrite from all Inf to inf
Official changelog of numpy 2.0.0: Alias np.Inf has been removed. Use np.inf instead.
Hi, this will be fixed in the upcoming release, see the current changelog on pandapower develop: [FIXED] namespace changes from numpy 2.0 release
Bug report checklis
[X] Searched the issues page for similar reports
[X] Read the relevant sections of the documentation
[X] Browse the tutorials and tests for usefull code snippets and examples of use
[X] Reproduced the issue after updating with
pip install --upgrade pandapower
(orgit pull
)[X] Tried basic troubleshooting (if a bug/error) like restarting the interpreter and checking the pythonpath
Reproducible Example
Issue Description and Traceback
The issue with new version of numpy (2.0.0) is importing Inf, while new numpy need to import inf started with small letter
Traceback (most recent call last): File "E:\PyCharmProjects\pythonProject````````.py", line 1, in
import pandapower as pp
File "C:\Users\Lolik\AppData\Local\Programs\Python\venv\Lib\site-packages\pandapower__init.py", line 11, in
from pandapower.powerflow import *
File "C:\Users\Lolik\AppData\Local\Programs\Python\venv\Lib\site-packages\pandapower\powerflow.py", line 13, in
from pandapower.pf.run_bfswpf import _run_bfswpf
File "C:\Users\Lolik\AppData\Local\Programs\Python\venv\Lib\site-packages\pandapower\pf\run_bfswpf.py", line 20, in
from pandapower.pypower.newtonpf import _evaluate_Fx, _check_forconvergence
File "C:\Users\Lolik\AppData\Local\Programs\Python\venv\Lib\site-packages\pandapower\pypower\newtonpf.py", line 14, in
from numpy import float64, array, angle, sqrt, square, exp, linalg, conj, r , Inf, arange, zeros, \
ImportError: cannot import name 'Inf' from 'numpy' (C:\Users\Lolik\AppData\Local\Programs\Python\venv\Lib\site-packages\numpy\ init__.py). Did you mean: 'inf'?
Expected Behavior
Can`t run any code with this traceback after attempt to impor pandapower
Installed Versions
Label