Skip to content

Pytest import errors due to roslibpy 2.0.0 actiolnlib #451

Description

@mattiskoh

Describe the bug
according to changelog v2.0.0 moved the location of the actionlib module. https://pypi.org/project/roslibpy/

.venv\Lib\site-packages\compas_rrc\__init__.py:90: in <module>
    from compas_rrc.client import AbbClient, RosClient
.venv\Lib\site-packages\compas_rrc\client.py:5: in <module>
    from compas_fab.backends import RosClient
.venv\Lib\site-packages\compas_fab\backends\__init__.py:122: in <module>
    from .ros import (
.venv\Lib\site-packages\compas_fab\backends\ros\__init__.py:3: in <module>
    from .client import RosClient
.venv\Lib\site-packages\compas_fab\backends\ros\client.py:9: in <module>
    from roslibpy.actionlib import ActionClient
E   ModuleNotFoundError: No module named 'roslibpy.actionlib'

https://github.com/compas-dev/compas_fab/blob/main/src/compas_fab/backends/ros/client.py

To Reproduce
from compas_rrc import AbbClient

Package                   Version     Editable project location
------------------------- ----------- -----------------------------------------------------------------
compas                    2.14.1
compas-fab                1.1.0
compas-robots             0.6.0
compas-rrc                2.0.0
pytest                    8.4.2
roslibpy                  2.0.0

Expected behavior
It should import roslibpy.ros1.actionlib i guess

Screenshots

Add screenshots to help explain your problem (if applicable).

Desktop (please complete the following information):

  • OS: Windows 10
  • Python version 3.12
  • Python package manager uv

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions