Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to locate the python bindings after #752 #754

Closed
isorrentino opened this issue Nov 7, 2023 · 8 comments
Closed

Unable to locate the python bindings after #752 #754

isorrentino opened this issue Nov 7, 2023 · 8 comments

Comments

@isorrentino
Copy link
Collaborator

#752 installs the python bindings in /install/lib/python3.10/. However, I got error by importing them with

import bipedal_locomotion_framework.bindings as blf

with

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'bipedal_locomotion_framework'
@isorrentino
Copy link
Collaborator Author

This is the output of pythonpath

echo $PYTHONPATH 
/home/isorrentino/dev/robotology-superbuild/build/install/lib/python3/dist-packages:/home/isorrentino/dev/element_sensorless-torque-control/code/python/

as you can see build/install/lib/python3.10/ is not there

@isorrentino
Copy link
Collaborator Author

cc @traversaro @GiulioRomualdi

@traversaro
Copy link
Collaborator

#752 changed the default installation location for Python bindings, see also the comment in #751 (comment) . However, if you use an updated version of the robotology-superbuild (after robotology/robotology-superbuild#1508), everything should work fine.

@isorrentino
Copy link
Collaborator Author

Thank you, I'm going to update the superbuild.

@isorrentino
Copy link
Collaborator Author

Updating the robotology-superbuild to the latest master I'm able to locate the python bindings. @GiulioRomualdi feel free to close this issue if you think no actions are required.

@isorrentino
Copy link
Collaborator Author

Updating the robotology-superbuild to the latest master I'm able to locate the python bindings. @GiulioRomualdi feel free to close this issue if you think no actions are required.

Actually, I see the bindings only if I run

python3
import bipedal_locomotion_framework.bindings as blf
blf.robot_dynamics_estimator

from the build folder of bipedal-locomotion-framework. From all the other locations, if I run the same, I cannot locate the bindings again.

@isorrentino
Copy link
Collaborator Author

isorrentino commented Nov 8, 2023

Last update: by running make from the build of robotology-superbuild I can see the bindings from everywhere.

@GiulioRomualdi
Copy link
Member

Closing! ❤️

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

No branches or pull requests

3 participants