Jul-21-2022, 02:18 PM
Hi,
first post here.
This is a thread about an python error I cannot resolve.
I'm primarily a c++ programmer (python beginner) and have to access python via pybind11.
Actually, all was fine until I changed my OS from Win10 to Win11 (this is the only change I am aware of in the last months).
The error occurs when I try to import other packages (numpy in this case). I made tests where I simply imported a module which imports another module. This worked fine.
For numpy, I get the following exception message:
I tried to find the source for the error in the cpython source code. But the nearest I got so far is the creation of the error message itself:
And I don't understand whats wrond with '__repr__'
May anyone point me to the right direction?
Many thanks!
first post here.
This is a thread about an python error I cannot resolve.
I'm primarily a c++ programmer (python beginner) and have to access python via pybind11.
Actually, all was fine until I changed my OS from Win10 to Win11 (this is the only change I am aware of in the last months).
The error occurs when I try to import other packages (numpy in this case). I made tests where I simply imported a module which imports another module. This worked fine.
For numpy, I get the following exception message:
Error:'SystemError: <method-wrapper '__getattribute__' of EnumMeta object at 0x0000026950F06650> returned a result with an exception set
At:
C:\Users\rammn\AppData\Local\Programs\Python\Python310\Lib\enum.py(462): __repr__
C:\Users\rammn\AppData\Local\Programs\Python\Python310\Lib\enum.py(648): _find_new_
C:\Users\rammn\AppData\Local\Programs\Python\Python310\Lib\enum.py(192): __new__
C:\Users\rammn\AppData\Local\Programs\Python\Python310\Lib\enum.py(807): <module>
<frozen importlib._bootstrap>(241): _call_with_frames_removed
<frozen importlib._bootstrap_external>(883): exec_module
<frozen importlib._bootstrap>(703): _load_unlocked
<frozen importlib._bootstrap>(1006): _find_and_load_unlocked
<frozen importlib._bootstrap>(1027): _find_and_load
C:\Users\rammn\AppData\Local\Programs\Python\Python310\Lib\site-packages\numpy\_globals.py(21): <module>
<frozen importlib._bootstrap>(241): _call_with_frames_removed
<frozen importlib._bootstrap_external>(883): exec_module
<frozen importlib._bootstrap>(703): _load_unlocked
<frozen importlib._bootstrap>(1006): _find_and_load_unlocked
<frozen importlib._bootstrap>(1027): _find_and_load
C:\Users\rammn\AppData\Local\Programs\Python\Python310\Lib\site-packages\numpy\__init__.py(112): <module>
<frozen importlib._bootstrap>(241): _call_with_frames_removed
<frozen importlib._bootstrap_external>(883): exec_module
<frozen importlib._bootstrap>(703): _load_unlocked
<frozen importlib._bootstrap>(1006): _find_and_load_unlocked
<frozen importlib._bootstrap>(1027): _find_and_load
C:\Users\rammn\AppData\Local\Programs\Python\Python310\Lib\site-packages\myOwnPythonFileImportingNumpy.py(38): <module>
<frozen importlib._bootstrap>(241): _call_with_frames_removed
<frozen importlib._bootstrap_external>(883): exec_module
<frozen importlib._bootstrap>(703): _load_unlocked
<frozen importlib._bootstrap>(1006): _find_and_load_unlocked
<frozen importlib._bootstrap>(1027): _find_and_load
The online docs tell me to contact the responsible developer (which would be somebody from CPython), but I have honestly no idea if and how I should do that.Quote: exception SystemError
Raised when the interpreter finds an internal error, but the situation does not look so serious to cause it to abandon all hope. The associated value is a string indicating what went wrong (in low-level terms).
You should report this to the author or maintainer of your Python interpreter
I tried to find the source for the error in the cpython source code. But the nearest I got so far is the creation of the error message itself:
_PyErr_FormatFromCauseTstate( tstate, PyExc_SystemError, "%R returned a result with an exception set", callable);in '_Py_CheckFunctionResult'
And I don't understand whats wrond with '__repr__'
May anyone point me to the right direction?
Many thanks!