Skip to content

Removing an encode line which causes AttributeError #374

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shushman
Copy link
Contributor

@Shushman Shushman commented Jul 3, 2017

While deserializing with the current setup I get the following error:

/home/shushman/ros_control_ws/src/prpy/src/prpy/serialization.pyc in <lambda>(x)
    661     '_type': (
    662         lambda x: x.name,
--> 663         lambda x: openravepy.KinBody.JointType.names[x].encode()
    664     ),
    665     '_vanchor': numpy_identity,

AttributeError: 'JointType' object has no attribute 'encode'

Removing the .encode, as suggested by @mkoval , seems to fix this. Should that change be made permanent?

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

Successfully merging this pull request may close these issues.

1 participant