Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rdinoff opened this issue Jun 1, 2022 · 2 comments
Closed

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

rdinoff opened this issue Jun 1, 2022 · 2 comments

Comments

@rdinoff
Copy link

rdinoff commented Jun 1, 2022

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']
@rdinoff rdinoff changed the title pymrpt.so in in python sys.path pymrpt.so is not in python sys.path Jun 1, 2022
@jlblancoc
Copy link
Member

Good point. Will try to fix it for the next release.

Any further testing or improvements in the python wrappers will be welcome, since we normally only focus on C++ ;-)

@jlblancoc
Copy link
Member

Closed via 5486914

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants