Skip to content

pymrpt.so is not in python sys.path #1232

@rdinoff

Description

@rdinoff

after installing ros-noetic-mrpt-bridge, pymrpt.so is placed in the wrong directory. The file needs to be in the pythonpath:

$ dpkg -S pymrpt
ros-noetic-mrpt2: /opt/ros/noetic/lib/x86_64-linux-gnu/python3.8/dist-packages/pymrpt.so

$ dpkg -l ros-noetic-mrpt2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version                      Architecture Description
+++-================-============================-============-===================================================
ii  ros-noetic-mrpt2 2.4.4-1focal.20220514.015241 amd64        Mobile Robot Programming Toolkit (MRPT) version 2.x


$ python
Python 3.8.10 (default, Mar 15 2022, 12:22:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymrpt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pymrpt'
>>> import sys
>>> print(sys.path)
['', '/opt/ros/noetic/lib/python3/dist-packages', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']

Metadata

Metadata

Assignees

No one assigned

    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