I was trying to some code in python and noted this peculiar case. The above code runs fine in python 3.7 but not in python 3.10.2. In python 3.10.2, i get the following error: I tried to look at the documentation as to whether the behaviour of the above code got changed somehow. But couldn’t find it. The documentations i
Tag: python-importlib
Enum comparison become False after reloading module
I have MyEnum, an enumerate derived from enum, defined in a myenum.py file such as : Then, I import this file using the importlib.import_module() method. I create a an instance of my enumerate, and test its value : it is correct, as intended. However, if I reload my file, using importlib.reload(), a is no longer equal to MyEnum.ONE. What is
Import error: DLL load failed in Jupyter notebook but working in .py file
I installed BreakoutDetection the module in Anaconda environment. When I tried to import the module using import breakout_detection in jupyter notebook, I get the below error I could import the same module in python shell I looked at the system paths (print sys.path) and in both python shell and jupyter notebook. They both are the same. Executable path (print sys.executable)