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

Unable to run make static_check or make run #1

Open
frankenmichl opened this issue Jan 30, 2018 · 0 comments
Open

Unable to run make static_check or make run #1

frankenmichl opened this issue Jan 30, 2018 · 0 comments

Comments

@frankenmichl
Copy link
Contributor

Hi, I'm currently trying to run nvmftests. However, I run into several problems. I will add one as an example:

ERROR: test_nvmf_target_template (nose2.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.4/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/usr/lib64/python3.4/unittest/case.py", line 580, in run
    testMethod()
  File "/usr/lib/python3.4/site-packages/nose2/loader.py", line 119, in testFailure
    raise exception
ImportError: Failed to import test module: test_nvmf_target_template
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/nose2/plugins/loader/discovery.py", line 201, in _find_tests_in_file
    module = util.module_from_name(module_name)
  File "/usr/lib/python3.4/site-packages/nose2/util.py", line 77, in module_from_name
    __import__(name)
  File "/home/mmoese/nvmftests/tests/test_nvmf_target_template.py", line 33, in <module>
    from nvmf_test import NVMFTest
  File "/home/mmoese/nvmftests/tests/nvmf_test.py", line 28, in <module>
    from utils.const import Const
  File "/home/mmoese/nvmftests/utils/__init__.py", line 28, in <module>
    from .misc import Loopback
  File "/home/mmoese/nvmftests/utils/misc/__init__.py", line 23, in <module>
    from .nvme_pci import NVMePCIeBlk
  File "/home/mmoese/nvmftests/utils/misc/nvme_pci.py", line 74
    except Exception, err:
                    ^
SyntaxError: invalid syntax

It looks like I get these syntax errors for all test scripts, and I got the same behavior on Python 3.4 and 3.6. Do you have any hints for me?

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

No branches or pull requests

1 participant