Open MaroMetelski opened 4 years ago
With you workaround, txaio and asyncio have different event loops, right? Are you sure there are no issues with this? So far, we've not looked into what would need to be done to support this properly. Note that the integration of autobahn via txaio is not really straight forward.
No, I don't have any issues with this workaround. The error happens without using any of the 'Remote' functionalities or even any labgrid environment. It crashes while pytest loads all the modules in its plugins, and the mentioned line is invoked. Maybe this line from the Traceback is a problem here?
File "/home/marek/.local/lib/python3.7/site-packages/labgrid/pytestplugin/fixtures.py", line 6, in <module>
from ..remote.client import UserError
Hi, While trying to invoke pytest in a thread with labgrid plugin in use RuntimeError is raised. Maybe the exeption should be catched in the module?
Example code:
Can be worked around by adding this to the thread target function:
The line at fault: https://github.com/labgrid-project/labgrid/blob/d11a5ecc86decd74d3ff86b6fb8b730c9ea4a962/labgrid/remote/client.py#L30
The error log: