Skip to content
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

No module named enum #13

Closed
ncook-hxgn opened this issue Jan 8, 2021 · 2 comments
Closed

No module named enum #13

ncook-hxgn opened this issue Jan 8, 2021 · 2 comments
Labels

Comments

@ncook-hxgn
Copy link

Hi,

Just installed this module
E:\repos\TestProject>pip install cppcheck_junit

.. then updated pip because it told me to:
E:\repos\TestProject>python -m pip install --upgrade pip

Then I tried to convert a file as instructed in README.md, got this:

E:\repos\TestProject>cppcheck_junit cppcheck-result.xml cppcheck-junit.xml
Traceback (most recent call last):
  File "c:\python27amd64\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27amd64\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27amd64\Scripts\cppcheck_junit.exe\__main__.py", line 5, in <module>
  File "c:\python27amd64\lib\site-packages\cppcheck_junit.py", line 16, in <module>
    from exitstatus import ExitStatus
  File "c:\python27amd64\lib\site-packages\exitstatus.py", line 3, in <module>
    import enum
ImportError: No module named enum

E:\repos\TestProject>

I'm using Windows Terminal on Windows 10 Pro, probably Python 2.7.16 (blame googles various build toolings).

@johnthagen
Copy link
Owner

Hello, this project only supports Python 3.6+. The enum module does not exist in Python 2.7 standard library, so you'll need to upgrade to a supported Python version.

For Windows, these can be found here: https://www.python.org/downloads/

@ncook-hxgn
Copy link
Author

Hi @johnthagen

Sorry it took ages to get back to you!

I can confirm: I have both Python 2.7 and Python 3.9, but having built GoogleTest recently, I'd modified my path to find python 2.7 first. 🤹‍♀️

I've now corrected my path, cursed the irony of Google build tools using Python 2 when they invented Go , and will report back when I have confirmed what I am sure is going to be a successful run of the tool.

Many thanks for pointing out the obvious to me - I needed it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants