You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Glasses Firmware Version: 1.25.4-citronkola-0
Headunit version: 0.0.62
Python: Python 3.5.6 :: Anaconda, Inc.
IDE: Jupyter lab with Ipykernel 5.1.0
Copied from demo code:
importtimefromtobiiglassesctrl.controllerimportTobiiGlassesControllerifhasattr(__builtins__, 'raw_input'):
input=raw_inputdefmain():
tobiiglasses=TobiiGlassesController("192.168.71.50")
print(tobiiglasses.get_battery_info())
print(tobiiglasses.get_storage_info())
iftobiiglasses.is_recording():
rec_id=tobiiglasses.get_current_recording_id()
tobiiglasses.stop_recording(rec_id)
project_name=input("Please insert the project's name: ")
project_id=tobiiglasses.create_project(project_name)
participant_name=input("Please insert the participant's name: ")
participant_id=tobiiglasses.create_participant(project_id, participant_name)
calibration_id=tobiiglasses.create_calibration(project_id, participant_id)
input("Put the calibration marker in front of the user, then press enter to calibrate")
tobiiglasses.start_calibration(calibration_id)
res=tobiiglasses.wait_until_calibration_is_done(calibration_id)
ifresisFalse:
print("Calibration failed!")
exit(1)
recording_id=tobiiglasses.create_recording(participant_id)
print("Important! The recording will be stored in the SD folder projects/%s/recordings/%s"% (project_id, recording_id))
input("Press enter to start recording")
tobiiglasses.start_recording(recording_id)
tobiiglasses.send_custom_event("start_recording", "Start of the recording ")
input("Press enter to stop recording")
tobiiglasses.send_custom_event("stop_recording", "Stop of the recording "+str(recording_id))
tobiiglasses.stop_recording(recording_id)
ifresisFalse:
print("Recording failed!")
exit(1)
if__name__=='__main__':
main()
Error:
[DEBUG]: ConnectingtotheTobiiProGlasses2 ...
[DEBUG]: TobiiProGlasses2successfulconnected!
Batteryinfo= [ Level: 86.00%-RemainingTime: 5160.00s ]
Storageinfo= [ RemainingTime: 5160.00s ]
Pleaseinserttheproject'sname: Li---------------------------------------------------------------------------TypeErrorTraceback (mostrecentcalllast)
<ipython-input-19-4597c1eb8694>in<module>4445if__name__=='__main__':
--->46main()
<ipython-input-19-4597c1eb8694>inmain()
1415project_name=input("Please insert the project's name: ")
--->16project_id=tobiiglasses.create_project(project_name)
1718participant_name=input("Please insert the participant's name: ")
D:\Miniconda3\envs\python35\lib\site-packages\tobiiglassesctrl\controller.pyincreate_project(self, projectname)
320ifproject_idisNone:
321data= {'pr_info' : {'CreationDate': self.__get_current_datetime__(),
-->322'EagleId': str(uuid.uuid5(uuid.NAMESPACE_DNS, projectname.encode('utf-8'))),
323'Name': projectname},
324'pr_created': self.__get_current_datetime__() }
D:\Miniconda3\envs\python35\lib\uuid.pyinuuid5(namespace, name)
606"""Generate a UUID from the SHA-1 hash of a namespace UUID and a name."""607fromhashlibimportsha1-->608hash=sha1(namespace.bytes+bytes(name, "utf-8")).digest()
609returnUUID(bytes=hash[:16], version=5)
610TypeError: encodingwithoutastringargument
The text was updated successfully, but these errors were encountered:
Glasses Firmware Version: 1.25.4-citronkola-0
Headunit version: 0.0.62
Python: Python 3.5.6 :: Anaconda, Inc.
IDE: Jupyter lab with Ipykernel 5.1.0
Copied from demo code:
Error:
The text was updated successfully, but these errors were encountered: