ImportError: cannot import name IntEnum
See original GitHub issueFile "apnsClient.py", line 1, in <module>
from hyper import HTTPConnection
File "/usr/local/lib/python2.7/dist-packages/hyper/__init__.py", line 11, in <module>
from .common.connection import HTTPConnection
File "/usr/local/lib/python2.7/dist-packages/hyper/common/connection.py", line 10, in <module>
from ..http20.connection import HTTP20Connection
File "/usr/local/lib/python2.7/dist-packages/hyper/http20/connection.py", line 8, in <module>
import h2.connection
File "/usr/local/lib/python2.7/dist-packages/h2/connection.py", line 10, in <module>
from enum import Enum, IntEnum
ImportError: cannot import name IntEnum
I am using Python 2.7.
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
ImportError: cannot import name 'IntEnum' - Stack Overflow
I am trying to install upstox , which is a Python API for connecting to market data. I am unable to install it...
Read more >ImportError: cannot import name IntEnum · Issue #351 - GitHub
I am using Python 2.7. The text was updated successfully, but these errors were encountered: ...
Read more >How to fix Python ImportError: cannot import name 'enum'
The enum module is only available in Python 3, but you are using Python 2! After installing this, the ImportError should disappear.
Read more >Python – ImportError: cannot import name 'IntEnum' - iTecNote
Python – ImportError: cannot import name 'IntEnum'. packagespippythonpython-3.x. I am trying to install upstox , which is a Python API for connecting to ......
Read more >Re: 3.4 on Windows ImportError: cannot import name 'IntEnum'
On 04/01/2014 19:35, Mark Lawrence wrote: Raised an issue anyway and then found a file caused enum.py. Whoops :( -- My fellow Pythonistas,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pip install enum34 solved the above issue but now i am getting this
Hmm. At a glance, I’d guess you have the wrong version of
enum34
, or maybe an entirely different package that also has the nameenum
.Could you post the output of
pip freeze
please?