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

str has no attribute decode #8

Open
tutr464b opened this issue Jun 16, 2022 · 0 comments
Open

str has no attribute decode #8

tutr464b opened this issue Jun 16, 2022 · 0 comments

Comments

@tutr464b
Copy link

Hi, I am facing a problem. I am using Python 3
When I run the code, this error shows up: AttributeError: 'str' object has no attribute 'decode'
I googled it and it seems here we don't need the decode more. I then deleted it, but then a new error showed up:
Traceback (most recent call last):
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 151, in
vive_tracker()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/vive_tracker.py", line 39, in vive_tracker
v.print_discovered_objects()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 259, in print_discovered_objects
self.devices[device].get_model()
File "/home/tuan/Documents/catkin_ws/src/vive_tracker/scripts/triad_openvr.py", line 163, in get_model
print(self.vr.getStringTrackedDeviceProperty(self.index,openvr.Prop_ModelNumber_String))
File "/usr/local/lib/python3.8/dist-packages/openvr/init.py", line 3213, in getStringTrackedDeviceProperty
openvr.error_code.TrackedPropertyError.check_error_value(error.value)
File "/usr/local/lib/python3.8/dist-packages/openvr/error_code/init.py", line 23, in check_error_value
raise error_class(error_value, message)
openvr.error_code.TrackedProp_UnknownProperty

How do I fix it?
Thanks it advance

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

1 participant