You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like pytest fails on scanning units with call trace
Reproduce
python3 -sBm build -w --no-isolation
because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
install .whl file in </install/prefix> using 'installer` module
run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")
Expected behavior
Here is pytest output:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-lsp-5.0.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-jupyter-lsp-5.0.1-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra -m 'not network'============================= test session starts ==============================platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0rootdir: /home/tkloczko/rpmbuild/BUILD/jupyterlab-lsp-5.0.1plugins: anyio-4.2.0, asyncio-0.23.2asyncio: mode=strictcollected 67 itemsINTERNALERROR> Traceback (most recent call last):INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_sessionINTERNALERROR> session.exitstatus = doit(config, session) or 0INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 324, in _mainINTERNALERROR> config.hook.pytest_collection(session=session)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__INTERNALERROR> return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexecINTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 152, in _multicallINTERNALERROR> return outcome.get_result()INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_result.py", line 114, in get_resultINTERNALERROR> raise exc.with_traceback(exc.__traceback__)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicallINTERNALERROR> res = hook_impl.function(*args)INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 335, in pytest_collectionINTERNALERROR> session.perform_collect()INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 675, in perform_collectINTERNALERROR> self.items.extend(self.genitems(node))INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 842, in genitemsINTERNALERROR> rep = collect_one_node(node)INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 546, in collect_one_nodeINTERNALERROR> ihook.pytest_collectstart(collector=collector)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__INTERNALERROR> return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexecINTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 113, in _multicallINTERNALERROR> raise exception.with_traceback(exception.__traceback__)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicallINTERNALERROR> res = hook_impl.function(*args)INTERNALERROR> File "/usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py", line 612, in pytest_collectstartINTERNALERROR> pyobject = collector.objINTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/python.py", line 315, in objINTERNALERROR> self._obj = obj = self._getobj()INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/python.py", line 533, in _getobjINTERNALERROR> return self._importtestmodule()INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/python.py", line 622, in _importtestmoduleINTERNALERROR> mod = import_path(self.path, mode=importmode, root=self.config.rootpath)INTERNALERROR> File "/usr/lib/python3.8/site-packages/_pytest/pathlib.py", line 567, in import_pathINTERNALERROR> importlib.import_module(module_name)INTERNALERROR> File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_moduleINTERNALERROR> return _bootstrap._gcd_import(name[level:], package, level)INTERNALERROR> File "<frozen importlib._bootstrap>", line 1014, in _gcd_importINTERNALERROR> File "<frozen importlib._bootstrap>", line 991, in _find_and_loadINTERNALERROR> File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlockedINTERNALERROR> File "<frozen importlib._bootstrap>", line 671, in _load_unlockedINTERNALERROR> File "<frozen importlib._bootstrap_external>", line 843, in exec_moduleINTERNALERROR> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removedINTERNALERROR> File "/home/tkloczko/rpmbuild/BUILD/jupyterlab-lsp-5.0.1/python_packages/jupyterlab_lsp/jupyterlab_lsp/__init__.py", line 2, in <module>INTERNALERROR> from ._version import __version__INTERNALERROR> File "/home/tkloczko/rpmbuild/BUILD/jupyterlab-lsp-5.0.1/python_packages/jupyterlab_lsp/jupyterlab_lsp/_version.py", line 6, in <module>INTERNALERROR> (MAIN_PACKAGE_PATH / "package.json").read_text(encoding="utf-8")INTERNALERROR> File "/usr/lib64/python3.8/pathlib.py", line 1236, in read_textINTERNALERROR> with self.open(mode='r', encoding=encoding, errors=errors) as f:INTERNALERROR> File "/usr/lib64/python3.8/pathlib.py", line 1222, in openINTERNALERROR> return io.open(self, mode, buffering, encoding, errors, newline,INTERNALERROR> File "/usr/lib64/python3.8/pathlib.py", line 1078, in _openerINTERNALERROR> return self._accessor.open(self, flags, mode)INTERNALERROR> FileNotFoundError: [Errno 2] No such file or directory: '/home/tkloczko/rpmbuild/BUILD/jupyterlab-lsp-5.0.1/python_packages/jupyterlab_lsp/jupyterlab_lsp/labextensions/@jupyter-lsp/jupyterlab-lsp/package.json'============================= 6 warnings in 0.58s ==============================
Context
Operating System and version: Linux x86/64
Browser and version: N/A
JupyterLab version: test suite do not need jupyterlab
Description
Looks like pytest fails on scanning units with call trace
Reproduce
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)Expected behavior
Here is pytest output:
Context
jupyterlab
The text was updated successfully, but these errors were encountered: