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

Initialization warning/error messages #904

Open
gvallee opened this issue Mar 18, 2020 · 0 comments
Open

Initialization warning/error messages #904

gvallee opened this issue Mar 18, 2020 · 0 comments

Comments

@gvallee
Copy link
Contributor

gvallee commented Mar 18, 2020

Version

master ab1269c

Description of the problem

I am getting the following messages over and over again while running MTT against the following INI file: https://github.com/openpmix/pmix-tests/blob/master/intel/pmix.ini

$ mtt intel/pmix.ini 
/home/gvallee/projects/MTT/mtt/pyclient/pymtt.py:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
Unable to import plugin: /home/gvallee/projects/MTT/mtt/pylib/Stages/Reporter/JunitXML
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yapsy/PluginManager.py", line 510, in loadPlugins
    candidate_module = PluginManager._importModule(plugin_module_name, candidate_filepath)
  File "/usr/lib/python3/dist-packages/yapsy/PluginManager.py", line 576, in _importModule
    candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))
  File "/usr/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/gvallee/projects/MTT/mtt/pylib/Stages/Reporter/JunitXML.py", line 15, in <module>
    from junit_xml import TestSuite, TestCase
ModuleNotFoundError: No module named 'junit_xml'
Unable to import plugin: /home/gvallee/projects/MTT/mtt/pylib/Tools/Build/Hostfile
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yapsy/PluginManager.py", line 510, in loadPlugins
    candidate_module = PluginManager._importModule(plugin_module_name, candidate_filepath)
  File "/usr/lib/python3/dist-packages/yapsy/PluginManager.py", line 576, in _importModule
    candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))
  File "/usr/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/gvallee/projects/MTT/mtt/pylib/Tools/Build/Hostfile.py", line 15, in <module>
    import hostlist # python-hostlist package
ModuleNotFoundError: No module named 'hostlist'
Unable to import plugin: /home/gvallee/projects/MTT/mtt/pylib/Stages/Reporter/JunitXML
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/yapsy/PluginManager.py", line 510, in loadPlugins
    candidate_module = PluginManager._importModule(plugin_module_name, candidate_filepath)
  File "/usr/lib/python3/dist-packages/yapsy/PluginManager.py", line 576, in _importModule
    candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))
  File "/usr/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/gvallee/projects/MTT/mtt/pylib/Stages/Reporter/JunitXML.py", line 15, in <module>
    from junit_xml import TestSuite, TestCase

It does not seem to prevent MTT from running. At least not as far as I can tell. But the number of errors messages is concerning.
PMIx developers told me to report the problem here.

Expectation

My two questions would be:

  • are these messages error messages or warning?
  • if they are not critical, is is possible to hide them by default?
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