Closed meyer89 closed 1 year ago
With this set of packages I get the a NumbaDeprecationWarning:
C:\Users\smeinecke\Documents\GIT\pandapower\pandapower\pypower\makeLODF.py:25: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.
def update_LODF_diag(LODF): # pragma: no cover
Maybe @rbolgaryn, you can have a look since it it about LODF?
deepdiff 5.8.1 matplotlib 3.7.1 networkx 2.6.3 numba 0.57.0 numpy 1.23.5 packaging 23.0 pandas 2.0.1 scipy 1.10.1
I have encountered the same problem, there is a way out of it although.
The auxiliary script in pandapower is ending up in exception because the way the script is trying to extract the numba version, is not compatible with the numba _version script. Hence the output of the
from numba._version import version_version as numba_version
leads already to exception.
I will try to create a PR.
Is this bug fixed?
Btw. instead of using private imports of modules that are likely to change to determine the version of modules, I would recommend to use importlib.metadata.version("numba")
.
This works from Python 3.8 onwards.
See https://stackoverflow.com/questions/20180543/how-do-i-check-the-versions-of-python-modules
I added an MR doing exactly this.
it still didnt work for me, i have python 3.10 and numba 0.57
sorry to say @RedBatProject but reckon it is something with your python installation, since it is working with python 3.10 and numba 0.57 on all laptops I know.
hallo everybody, I observed the same issue as @RedBatProject :
python3.10 -c "from pandapower.auxiliary import _check_if_numba_is_installed; print(_check_if_numba_is_installed(True))"
numba cannot be imported and numba functions are disabled.
Probably the execution is slow.
Please install numba to gain a massive speedup.
(or if you prefer slow execution, set the flag numba=False to avoid this warning!)
False
I am running on macOS Sonoma, python 3.10, pandapower 2.13.1, numba 0.57
Package Version
--------------- ------------
deepdiff 6.6.1
llvmlite 0.40.1
networkx 3.2.1
numba 0.57.0
numpy 1.24.4
ordered-set 4.1.0
packaging 23.2
pandapower 2.13.1
pandas 2.1.2
pip 23.3.1
python-dateutil 2.8.2
pytz 2023.3.post1
scipy 1.11.3
setuptools 65.5.0
six 1.16.0
tqdm 4.66.1
tzdata 2023.3
Note that with numba 0.56 the import works
Issue Report Checklist
pip install --upgrade pandapower
(orgit pull
)Problem Description
Pandapower is not compatible with numba 0.57.0. Installing the older numba version 0.56.4 solves the problem.
The interface changed in numba and the attribute
version_version
is no longer available.What steps reproduce the problem?
Use fresh virtual environment or docker image.
pip install numba==0.57.0
pip install pandapower
python -c "from pandapower.auxiliary import _check_if_numba_is_installed; print(_check_if_numba_is_installed(True))"
What is the expected output? What do you see instead?
Expected output:
Actually observed output:
Paste Traceback/Error Below (if applicable)
Old content of numba._versions.py
New content
Importing the function
get_versions()
and evaluation the dictionary keyversion
would work in both numba versions.Versions
Labels (if access available)
labels
at the right side (e.g.bug
,controller
,OPF
...)