Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81360

ImportError: cannot import name 'Enum'

Newsgroups comp.lang.python
Date 2014-11-23 04:10 -0800
Message-ID <fc105124-6de7-425e-bb3d-5d9a5933b28d@googlegroups.com> (permalink)
Subject ImportError: cannot import name 'Enum'
From muhammedabuali@gmail.com

Show all headers | View raw


Hello all,

I am trying to use the python module but when I open the shell and write:

` import enum `

I get the following error

` Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.4/enum.py", line 3, in <module>
    from types import MappingProxyType, DynamicClassAttribute
  File "/home/muhammed/workspace/python/unification/types.py", line 1, in <module>
    from enum import Enum
ImportError: cannot import name 'Enum'

`

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

ImportError: cannot import name 'Enum' muhammedabuali@gmail.com - 2014-11-23 04:10 -0800
  Re: ImportError: cannot import name 'Enum' Chris Angelico <rosuav@gmail.com> - 2014-11-23 23:20 +1100
    Re: ImportError: cannot import name 'Enum' muhammedabuali@gmail.com - 2014-11-23 07:35 -0800

csiph-web