Skip to content

enum34 causing errors when installed globally with Python 3.6.5 #649

Closed

Description

@deybhayden

Reading this issue for enum34, I do not believe that enum34 is intended to be installed with Python3.4 and up, and I'm having the following issue when it's installed (I'm doing some PYTHONPATH mangling to get a local virtualenv to also include some system wide python packages, btw):

  Traceback (most recent call last):
  File "/usr/lib64/python3.6/runpy.py", line 183, in _run_module_as_main
  mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/lib64/python3.6/runpy.py", line 142, in _get_module_details
  return _get_module_details(pkg_main_name, error)
  File "/usr/lib64/python3.6/runpy.py", line 109, in _get_module_details
  __import__(pkg_name)
  File "/opt/python/run/venv/local/lib/python3.6/site-packages/snips_nlu/__init__.py", line 1, in <module>
  import logging
  File "/usr/lib64/python3.6/logging/__init__.py", line 26, in <module>
  import sys, os, time, io, traceback, warnings, weakref, collections
  File "/usr/lib64/python3.6/traceback.py", line 5, in <module>
  import linecache
  File "/opt/python/run/venv/lib64/python3.6/linecache.py", line 11, in <module>
  import tokenize
  File "/opt/python/run/venv/lib64/python3.6/tokenize.py", line 33, in <module>
  import re
  File "/opt/python/run/venv/lib64/python3.6/re.py", line 142, in <module>
  class RegexFlag(enum.IntFlag):
  AttributeError: module 'enum' has no attribute 'IntFlag'
   (ElasticBeanstalk::ExternalInvocationError)

Was wondering if something in setup.py can be tweaked to only install enum3.4 if it's version is less than Python 3.4 (something like the stackoverflow article linked here).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions