Hi, I recently re-installed the repo and I'm having this bug with pytest, however, it seems to be working, the only exception I've found is that I cannot use logging variables at all, however, I do not know if this is related to the pytest failure or if it is another error.
This is the output:
============================= test session starts ==============================
platform linux -- Python 3.8.10, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
rootdir: /home/santiagorg2401/crazyflie/crazyswarm
collecting ... roslaunch is /opt/ros/noetic/bin/roslaunch
collected 0 items / 1 errors
==================================== ERRORS ====================================
________________________ ERROR collecting test session _________________________
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:440: in _importconftest
return self._conftestpath2mod[conftestpath]
E KeyError: local('/home/santiagorg2401/crazyflie/crazyswarm/ros_ws/src/crazyswarm/externalDependencies/libmotioncapture/deps/pybind11/tests/conftest.py')
During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:446: in _importconftest
mod = conftestpath.pyimport()
/usr/lib/python3/dist-packages/py/_path/local.py:701: in pyimport
__import__(modname)
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:304: in load_module
exec(co, mod.__dict__)
ros_ws/src/crazyswarm/externalDependencies/libmotioncapture/deps/pybind11/tests/conftest.py:19: in <module>
import pybind11_tests # noqa: F401
E ModuleNotFoundError: No module named 'pybind11_tests'
During handling of the above exception, another exception occurred:
/usr/lib/python3/dist-packages/py/_path/common.py:383: in visit
for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:435: in gen
for p in self.gen(subdir):
/usr/lib/python3/dist-packages/py/_path/common.py:424: in gen
dirs = self.optsort([p for p in entries
/usr/lib/python3/dist-packages/py/_path/common.py:425: in <listcomp>
if p.check(dir=1) and (rec is None or rec(p))])
/usr/lib/python3/dist-packages/_pytest/main.py:667: in _recurse
ihook = self.gethookproxy(dirpath)
/usr/lib/python3/dist-packages/_pytest/main.py:482: in gethookproxy
my_conftestmodules = pm._getconftestmodules(fspath)
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:424: in _getconftestmodules
mod = self._importconftest(conftestpath.realpath())
/usr/lib/python3/dist-packages/_pytest/config/__init__.py:463: in _importconftest
raise ConftestImportFailure(conftestpath, sys.exc_info())
E _pytest.config.ConftestImportFailure: (local('/home/santiagorg2401/crazyflie/crazyswarm/ros_ws/src/crazyswarm/externalDependencies/libmotioncapture/deps/pybind11/tests/conftest.py'), (<class 'ModuleNotFoundError'>, ModuleNotFoundError("No module named 'pybind11_tests'"), <traceback object at 0x7fad58cb8b80>))
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
==
```========================= 1 error in 0.36 seconds ============================
Thank you in advance.
Hi, I recently re-installed the repo and I'm having this bug with pytest, however, it seems to be working, the only exception I've found is that I cannot use logging variables at all, however, I do not know if this is related to the pytest failure or if it is another error.
This is the output: