It’s because your enum
is not the standard library enum
module. You probably have the package enum34
installed.
One way check if this is the case is to inspect the property enum.__file__
import enum print(enum.__file__) # standard library location should be something like # /usr/local/lib/python3.6/enum.py
Since python 3.6 the enum34 library is no longer compatible with the standard library. The library is also unnecessary, so you can simply uninstall it.
pip uninstall -y enum34
If you need the code to run on python versions both <=3.4 and >3.4, you can try having enum-compat
as a requirement. It only installs enum34
for older versions of python without the standard library enum.
Related Posts:
- SyntaxError: unexpected EOF while parsing
- Are dictionaries ordered in Python 3.6+?
- How can I convert a .py to .exe for Python?
- AttributeError: ‘Series’ object has no attribute ‘reshape’
- How to fix “Can’t find a default Python” error
- Not able to pip install pickle in python 3.6
- What is the correct format to write float value to file in Python
- Use Gif Logo For Loading Screen In Kivy
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- What is the difference between rw+ and r+
- Python – TypeError: ‘int’ object is not iterable
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- What does the list() function do in Python?
- PermissionError: [Errno 13] Permission denied
- What is setup.py?
- Invalid character in identifier
- Is there a ‘foreach’ function in Python 3?
- Convert bytes to a string
- How to print like printf in Python3?
- Python Error: AttributeError: __enter__ [duplicate]
- filedialog, tkinter and opening files
- Error in Python script “Expected 2D array, got 1D array instead:”?
- ‘str’ object has no attribute ‘decode’. Python 3 error?
- How to find all the indexes of a recurring item in a list?
- Name ‘xrange’ is not defined in Python 3 [duplicate]
- How do you use subprocess.check_output() in Python?
- Error: ” ‘dict’ object has no attribute ‘iteritems’ “
- (Help) TypeError: ‘str’ object cannot be interpreted as an integer
- How do order of operations go on Python?
- Why KeyError: 0
- How to upgrade pip3?
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- TypeError: cannot convert the series to
- builtins.TypeError: must be str, not bytes
- Pinging servers in Python
- Import error: No module name urllib2
- takes 1 positional argument but 2 were given
- ‘End of statement expected’ in pycharm
- Change figure size and figure format in matplotlib
- How can I concatenate str and int objects?
- error: Failed to load the native TensorFlow runtime
- ImportError: No module named ‘encodings’
- TypeError(“‘bool’ object is not iterable”,) when trying to return a Boolean
- Get ZeroDivisionError: float division in python
- TypeError: ‘encoding’ is an invalid keyword argument for this function
- What is the Python 3 equivalent of “python -m SimpleHTTPServer”
- What does -> mean in Python function definitions?
- How to delete last item in list?
- Don’t understand this SyntaxError: illegal target for annotation
- Using Queue in python
- TypeError(“‘bool’ object is not iterable”,) when trying to return a Boolean
- “for line in…” results in UnicodeDecodeError: ‘utf-8’ codec can’t decode byte
- SyntaxError invalid token
- How do I format a string using a dictionary in python-3.x?
- For loop and ‘numpy.float64’ object is not iterable error
- How to troubleshoot an “AttributeError: __exit__” in multiproccesing in Python?
- TypeError: cannot unpack non-iterable NoneType object
- python mpl_toolkits installation issue
- Shebang doesn’t work with python3
- TypeError: ‘dict_keys’ object does not support indexing
- How to strip all whitespace from string
- Python Binomial Coefficient
- Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings
- Python map object is not subscriptable
- pythonw.exe or python.exe?
- .pyw files in python program
- AttributeError: ‘Tensor’ object has no attribute ‘_keras_history’
- How to convert ‘binary string’ to normal string in Python3?
- python3 TypeError: ‘function’ object is not iterable
- Directing print output to a .txt file
- How to start from second index for for-loop
- Converting a sentence to piglatin in Python
- Python Error – TypeError: input expected at most 1 arguments, got 3 [duplicate]
- A general tree implementation?
- ModuleNotFoundError: No module named ‘seaborn’ in Python IDE
- Is there a ceiling equivalent of // operator in Python?
- Conda command is not recognized on Windows 10
- ImportError: No module named ‘django.core.urlresolvers’
- TypeError: ‘set’ object does not support indexing
- Python 3: Multiply a vector by a matrix without NumPy
- TypeError: ‘newline’ is an invalid keyword argument for this function
- Python 3.6 No module named pip
- Root mean square of a function in python
- Print empty line?
- Checking to see if a string is an integer or float
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- How to know/change current directory in Python shell?
- How to embed image or picture in jupyter notebook, either from a local machine or from a web resource?
- What is an easy way to implement fprintf in python?
- How to use cmp() in Python 3?
- Generator expression must be parenthesized if not sole argument
- Does python have header files like C/C++?
- “E: Unable to locate package python3-pip”
- Error: No module named ‘fcntl’
- Python can’t find file
- TypeError: got multiple values for argument
- IOError: [Errno 32] Broken pipe when piping: `prog.py | othercmd`
- Accessing dict_keys element by index in Python3
- Python webbrowser.open() to open Chrome browser