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

import radical.saga fails in harvester #766

Open
andre-merzky opened this issue Feb 14, 2020 · 1 comment
Open

import radical.saga fails in harvester #766

andre-merzky opened this issue Feb 14, 2020 · 1 comment

Comments

@andre-merzky
Copy link
Member

2020-02-10 08:18:59,024 panda.log.queue_config_mapper: ERROR    QueueConfigMapper.load_data : val: {u'name': u'SAGASubmitter', u'adaptor': u'lsf://localhost', u'projectname': u'csc343', u'module': u'pandaharvester.harvestersubmitter.saga_submitter', u'nNodes': 2, u'localqueue': u'batch', u'nCorePerNode': 16}, traceback: Traceback (most recent call last):
  File "/autofs/nccs-svm1_home1/zhangr/harvester/x86_envh/lib/python2.7/site-packages/pandaharvester/harvestercore/queue_config_mapper.py", line 465, in load_data
    _t3mP_1Mp0R7_mO6U1e__ = importlib.import_module(val['module'])
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/autofs/nccs-svm1_home1/zhangr/harvester/x86_envh/lib/python2.7/site-packages/pandaharvester/harvestersubmitter/saga_submitter.py", line 2, in <module>
    import radical.saga as saga
  File "/autofs/nccs-svm1_home1/zhangr/harvester/x86_envh/lib/python2.7/site-packages/radical/saga/__init__.py", line 13, in <module>
    import utils
  File "/autofs/nccs-svm1_home1/zhangr/harvester/x86_envh/lib/python2.7/site-packages/radical/saga/utils/__init__.py", line 13, in <module>
    import pty_shell
  File "/autofs/nccs-svm1_home1/zhangr/harvester/x86_envh/lib/python2.7/site-packages/radical/saga/utils/pty_shell.py", line 15, in <module>
    from  .  import misc              as sumisc
ImportError: cannot import name misc

We did not yet manage to reproduce the problem outside of Harvester. Rui suspects that Harvester changes the python environment somewhere in a way that relative import fail. Absolute imports work though.

@andre-merzky
Copy link
Member Author

This is with v0.72.1.

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

No branches or pull requests

1 participant