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

Import error in sot_talos_balance/test #7

Open
TLasguignes opened this issue May 26, 2020 · 2 comments
Open

Import error in sot_talos_balance/test #7

TLasguignes opened this issue May 26, 2020 · 2 comments

Comments

@TLasguignes
Copy link

TLasguignes commented May 26, 2020

Hi,

I installed this package from the binaries, and tried to run the test_dcmZmpControl_file.py file in /opt/openrobots/lib/python2.7/site-packages/sot_talos_balance/test.

After fixing locally the import error from from dynamic_graph.sot.core import SOT, Derivator_of_Vector, FeaturePosture, MatrixHomoToPoseQuaternion, Task in appli_dcmZmpControl_file.py by replacing it with:

from dynamic_graph.sot.core.sot import SOT, Task
from dynamic_graph.sot.core.math_small_entities import Derivator_of_Vector
from dynamic_graph.sot.core.feature_posture import FeaturePosture
from dynamic_graph.sot.core.operator import MatrixHomoToPoseQuaternion

I got this error:

command: from dynamic_graph.sot.core.feature_posture import FeaturePosture
standarderror: Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name FeaturePosture

python -c "from dynamic_graph.sot.core.feature_posture import FeaturePosture" works.

@olivier-stasse
Copy link
Collaborator

Hi Thibaud this is related to Issue stack-of-tasks/sot-core#138
A patch has been applied to fix the second situation.
A quick fix is to have the file

/opt/openrobots/lib/python2.7/site-packages/dynamic_graph/sot/core/__init__.py

to have it to be empty.

@olivier-stasse
Copy link
Collaborator

Hi Thibaud is it fixed for you ?

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