Page MenuHomeSoftware Heritage
Paste P1542

(An Untitled Masterwork)
ActivePublic

Authored by ardumont on Dec 8 2022, 11:46 AM.
pytest swh
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 774, in import_plugin
__import__(importspec)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
exec(co, module.__dict__)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-scheduler/swh/scheduler/pytest_plugin.py", line 17, in <module>
from swh.scheduler.backend import SchedulerBackend
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
exec(co, module.__dict__)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-scheduler/swh/scheduler/backend.py", line 18, in <module>
from swh.core.db import BaseDb
ImportError: cannot import name 'BaseDb' from 'swh.core.db' (unknown location)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 190, in console_main
code = main()
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 148, in main
config = _prepareconfig(args, plugins)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 330, in _prepareconfig
pluginmanager=pluginmanager, args=args
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/helpconfig.py", line 103, in pytest_cmdline_parse
config: Config = outcome.get_result()
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 1058, in pytest_cmdline_parse
self.parse(args)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 1346, in parse
self._preparse(args, addopts=addopts)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 1249, in _preparse
early_config=self, args=args, parser=self._parser
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 1126, in pytest_load_initial_conftests
early_config.known_args_namespace, rootpath=early_config.rootpath
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 557, in _set_initial_conftests
self._try_load_conftest(anchor, namespace.importmode, rootpath)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 574, in _try_load_conftest
self._getconftestmodules(anchor, importmode, rootpath)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 603, in _getconftestmodules
mod = self._importconftest(conftestpath, importmode, rootpath)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 651, in _importconftest
self.consider_conftest(mod)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 732, in consider_conftest
self.register(conftestmodule, name=conftestmodule.__file__)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 496, in register
self.consider_module(plugin)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 740, in consider_module
self._import_plugin_specs(getattr(mod, "pytest_plugins", []))
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 747, in _import_plugin_specs
self.import_plugin(import_spec)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 778, in import_plugin
).with_traceback(e.__traceback__) from e
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/config/__init__.py", line 774, in import_plugin
__import__(importspec)
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
exec(co, module.__dict__)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-scheduler/swh/scheduler/pytest_plugin.py", line 17, in <module>
from swh.scheduler.backend import SchedulerBackend
File "/home/tony/work/inria/repo/swh/.direnv/python-3.7.14/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
exec(co, module.__dict__)
File "/home/tony/work/inria/repo/swh/swh-environment/swh-scheduler/swh/scheduler/backend.py", line 18, in <module>
from swh.core.db import BaseDb
ImportError: Error importing plugin "swh.scheduler.pytest_plugin": cannot import name 'BaseDb' from 'swh.core.db' (unknown location)