[Python] Python package is installed but it doesn't get detected in a IDE #ROS2

Discussão em 'Python' iniciado por Stack, Maio 31, 2025.

  1. Stack

    Stack Membro Participativo

    I'm here trying to follow a tutorial on ROS2 from a Udemy course and as by the tutorial, I created a bare minimal node and the main package RCLPY is not recognised in the IDE. I tried this with Pycharm. But when the code is installed using colcon build the code works as intended.

    RCLPY not recognised in Pycharm

    since the package is not recognised, the auto complete is also not working.

    I'm using ROS2 humble distro on ubuntu 22.04LTS.

    RCLPY listed by using pip

    RCLPY package not found in Pycharm

    Code running in Terminal after building in COLCON BUILD

    Error regarding RCLPY in pycharm

    here is the snippet of the XML file from ROS2 workspace package.xml

    I don't know how to proceed from here. Thank you for your help!

    Continue reading...

Compartilhe esta Página