New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MISP: fix requirements; enum not required for python 3.4+ #409

Rolinh opened this Issue Jan 22, 2019 · 1 comment


None yet
2 participants
Copy link

Rolinh commented Jan 22, 2019

Request Type


Work Environment

Question Answer
OS version (server) N/A
OS version (client) N/A
Cortex Analyzer Name MISP
Cortex Analyzer Version 1.15.1
Cortex Version N/A
Browser type & version N/A


PR #398 may fix an issue with Ubuntu 16.04 but it introduces another: enum is apparently in python standard library since v3.4 (check this link).

The added dependency causes issues when using (at least) python 3.6:

/opt/analyzers/MISP # pip3 install -r requirements.txt
Ignoring future: markers 'python_version <= "2.7"' don't match your environment
Requirement already satisfied: cortexutils in /usr/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (1.3.0)
Collecting pymisp (from -r requirements.txt (line 2))
  Using cached
Collecting enum (from -r requirements.txt (line 3))
  Using cached
    Complete output from command python egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.6/site-packages/setuptools/", line 6, in <module>
        import distutils.core
      File "/usr/lib/python3.6/distutils/", line 16, in <module>
        from distutils.dist import Distribution
      File "/usr/lib/python3.6/distutils/", line 9, in <module>
        import re
      File "/usr/lib/python3.6/", line 142, in <module>
        class RegexFlag(enum.IntFlag):
    AttributeError: module 'enum' has no attribute 'IntFlag'

Command "python egg_info" failed with error code 1 in /tmp/pip-install-ljoxw_cm/enum/

Steps to Reproduce

Attempt to pip3 install -r requirements.txt for the MISP analyzer with Python 3.6.

Possible Solutions

My guess is that the enum package is only required for python < 3.4. Thus, the requirements.txt file can probably be modified for something like:


At the very least, I can confirm that enum is not required with python 3.6.

@Rolinh Rolinh changed the title MISP: fix requirements MISP: fix requirements; enum not required for python 3.4+ Jan 22, 2019

@3c7 3c7 added bug analyzer labels Jan 22, 2019

3c7 added a commit that referenced this issue Jan 22, 2019


This comment has been minimized.

Copy link

3c7 commented Jan 22, 2019

Thanks for reporting!

@3c7 3c7 added this to the 1.15.2 milestone Jan 22, 2019

@3c7 3c7 self-assigned this Jan 22, 2019

@3c7 3c7 closed this Jan 30, 2019

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