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

lpad archive_wflows -s RUNNING throws "ModuleNotFoundError: fireworks.utilities.tests" #450

Open
janosh opened this issue Aug 7, 2021 · 0 comments

Comments

@janosh
Copy link
Member

janosh commented Aug 7, 2021

Running lpad archive_wflows -s RUNNING with the latest Fireworks v1.9.7 throws

ModuleNotFoundError: No module named 'fireworks.utilities.tests'
$: lpad archive_wflows -s RUNNING
>>> Are you sure? This will modify 45 entries. (Y/N)y
Traceback (most recent call last):
  File "py38/bin/lpad", line 8, in <module>
    sys.exit(lpad())
  File "py38/lib/python3.8/site-packages/fireworks/scripts/lpad_run.py", line 1435, in lpad
    args.func(args)
  File "py38/lib/python3.8/site-packages/fireworks/scripts/lpad_run.py", line 543, in archive
    lp.archive_wf(f)
  File "py38/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 1133, in archive_wf
    self.rerun_fw(fw_id)
  File "py38/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 1804, in rerun_fw
    updated_ids = wf.rerun_fw(fw_id)
  File "py38/lib/python3.8/site-packages/fireworks/core/firework.py", line 914, in rerun_fw
    m_fw._rerun()
  File "py38/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 2194, in _rerun
    self.full_fw._rerun()
  File "py38/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 2294, in full_fw
    self._get_launch_data(launch_field)
  File "py38/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 2309, in _get_launch_data
    fw = self.partial_fw  # assure stage 1
  File "py38/lib/python3.8/site-packages/fireworks/core/launchpad.py", line 2287, in partial_fw
    self._fw = Firework.from_dict(data)
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 161, in _decorator
    new_args[0] = {k: _recursive_load(v) for k, v in args[0].items()}
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 161, in <dictcomp>
    new_args[0] = {k: _recursive_load(v) for k, v in args[0].items()}
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 122, in _recursive_load
    return {k: _recursive_load(v) for k, v in obj.items()}
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 122, in <dictcomp>
    return {k: _recursive_load(v) for k, v in obj.items()}
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 125, in _recursive_load
    return [_recursive_load(v) for v in obj]
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 125, in <listcomp>
    return [_recursive_load(v) for v in obj]
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 117, in _recursive_load
    return load_object(obj)
  File "py38/lib/python3.8/site-packages/fireworks/utilities/fw_serializers.py", line 355, in load_object
    root_module = importlib.import_module(package)
  File "py38/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'fireworks.utilities.tests'

Btw, seems a little odd that archive_wf calls rerun_fws.

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