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
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_for_convergence
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
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
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_for_convergence
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
The text was updated successfully, but these errors were encountered: