Hello @Intaraprasert, Pramote
The error message AttributeError: module 'enum' has no attribute 'global_enum'
suggests that the Python interpreter is trying to access an attribute global_enum
in the enum
module, which doesn’t exist.
This error can occur if there’s a naming conflict between the standard library’s enum
module and another file or module in your project named enum
. If there’s a file named enum.py
in your project or in your Python path, it could be shadowing the standard library’s enum
module
To help resolve this issue make sure there’s no file or module named enum
in your project or in your Python path. Also looking into your environment variables, such as PYTHONPATH
, do not point to a location that includes a conflicting enum
modue. Lastly, If you’re using any third-party libraries that depend on the enum34
backport module, they could be causing a conflict. The enum34
module is not compatible with Python 3.6 and later, and can shadow the built-in enum
module. If this is the case, you can uninstall enum34
using pip: pip uninstall
-y enum34
Best,
-Grace