Python 3.10: launch_testing has a warning of "There is no current event loop"
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- testing-qa, tooling
调研方向
使用提供的 joint_state_publisher checkout 和 colcon test 命令重现该警告。检查 launch、launch_ros 和 osrf_pycommon 中的事件循环处理,然后验证受影响的测试在没有“There is no current event loop”警告的情况下仍能成功。
由索引模型根据 Issue 内容生成。
描述
Bug report
Required Info:
- Operating System:
- Ubuntu 22.04 arm64
- Installation type:
- source
- Version or commit hash:
- d2935d6fd85636ace62699eec106cd56f5e9c6a4
- DDS implementation:
- Fast-RTPS
- Client library (if applicable):
- rclpy
Steps to reproduce issue
$ . /opt/ros/humble/setup.bash
$ mkdir -p jsp_ws/src
$ cd jsp_ws
$ git clone https://github.com/ros/joint_state_publisher -b ros2 src/joint_state_publisher
$ colcon build
$ colcon test
Expected behavior
Tests run and succeed without warning
Actual behavior
Tests run, and succeed, but have warnings like:
=============================== warnings summary ===============================
test/test_64_joint_robot.py: 2 warnings
test/test_mimic_chain.py: 2 warnings
test/test_mimic_cycle.py: 2 warnings
test/test_multi_joints.py: 2 warnings
test/test_zero_joints.py: 2 warnings
Warning: There is no current event loop
Additional information
This seems to be a change in Python 3.10. In particular, I think that calling get_event_loop without a loop running is now an error. See https://github.com/pytest-dev/pytest-asyncio/issues/212 for some explanation of this. We probably need fixes in launch, launch_ros, and osrf_pycommon (at least).
- 主要语言
- Python
- 星标
- 156
- 派生
- 200
- 平均合并
- 2 天 11 小时
- 30 天内合并 PR
- 11
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ros2/launch 的其他 Issue
-
Use a relative target for the `latest` log symlink so it survives different absolute mount paths (host/Docker)可能已有人在做 @Old-Ding 于 139 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
ros2/launch#978 · 1 个 reaction ·
维护者通常 1 天内回复
-
Add OpaqueFunction to list at docs.ros.org可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug help wanted
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
维护者通常 1 天内回复
-
[launch_testing] pytest>8.1 dropped the legacy "path" argument from its internal hooks on humble可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
相似的 Issue
-
ui
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
ARTPARK-SAHAI-ORG/calibrate-frontend#919 ·
维护者通常 1 天内回复
-
CI: MSYS2 jobs fail — mingw python3 package renamed upstream to python可能已有人在做 @ronaldtse 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 95/100
-
难度 2/5 1-3 小时 新手友好度 76/100
pydantic/pytest-examples#102 · 1 条评论 ·