Open DEUCE1957 opened 1 year ago
Hi @DEUCE1957 ,
thank you for the issue!
Can you please double-check if the issue is occurring on the develop branch?
python 3.10.11 with pandapower-2.13.1. numba warning version(0.57.0, 0.58.0, 0.58.1). numba-0.56.0 is fine. test code is here
Hello,
I am still getting this error:
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!)
With the latest version of numba (0.59.1) and pandapower (2.13.1) on ubuntu 20.04.
I am pretty sure I got similar error messages for every version of numba (>= 0.58) and pandapower. Only way for me to silence these issues is either not to use numba (which is much slower) or downgrade to numba < 0.57 (which does not work on python >= 3.11)
Bug report checklist
[X] Searched the issues page for similar reports Related Issue: https://github.com/e2nIEE/pandapower/issues/2041
[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
In the current version of the PandaPower codebase, the version of Numba is checked in auxiliary.py by importing:
However, in the latest versions of Numba (checked with Numba 0.58.1), the contents of numba._version are:
So the new way to check the version would be to import:
Then inside the function '_check_if_numba_is_installed':
Where I have renamed the local variable "numba" to "use_numba" to prevent a name conflict with the numba module.
The downside of this solution is that it may break again if numba._version changes again, perhaps remove the try-except block or add the normal error message to the numba_warning_str.
Alternatively, we could just the package attribute:
Issue Description and Traceback
If you comment out the try-except keywords in the "_check_if_numba_is_installed" function (auxiliary._check_if_numba_is_installed) then we get the following error:
Otherwise a warning message is shown:
Expected Behavior
I expect no warning message nor error, since I have Numba installed and the version is greater than 0.2.5.
Installed Versions
Python: 3.11.3 Numba: 0.58.1 Pandapower: 2.13.1
Label