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

ioHub and DataStore on Linux: RPC_ATTRIBUTE_ERROR and decoding str is not supported #3348

Closed
rphlypo opened this issue Dec 7, 2020 · 2 comments
Assignees
Labels
🐞 bug Issue describes a bug (crash or error) or undefined behavior.

Comments

@rphlypo
Copy link
Contributor

rphlypo commented Dec 7, 2020

Below is the output I have when running psychopy/demos/coder/iohub/launchHub.py, no idea about how to further deal with the error messages telling decoding str is not supported whenever trying to access the DataStore. Anyone with an idea on where to look into?

Running testWithNoKwargs Test:
pygame 2.0.0 (SDL 2.0.12, python 3.6.11)
Hello from the pygame community. https://www.pygame.org/contribute.html

 ** PRESS A KEY TO CONTINUE.....
gA Keyboard Event was Detected; exiting Test.
ioHub Server Process Completed With Code:  0
Test Result:  None

------------------------------------

Running testUsingPsychoPyMonitorConfig Test:
Display Psychopy Monitor Name:  testMonitor
Display Default Eye Distance:  570.0
Display Physical Dimensions:  {'width': 300.0, 'height': 168.75, 'unit_type': 'mm'}
ioHub Server Process Completed With Code:  0
Test Result:  None

------------------------------------

Running testEnabledDataStore Test:
RPC_ATTRIBUTE_ERROR
Traceback (most recent call last):
  File "/home/rphlypo/miniconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/iohub/server.py", line 108, in handle
    result = getattr(self, unicode(callable_name, 'utf-8'))
TypeError: decoding str is not supported
RPC_ATTRIBUTE_ERROR
Traceback (most recent call last):
  File "/home/rphlypo/miniconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/iohub/server.py", line 108, in handle
    result = getattr(self, unicode(callable_name, 'utf-8'))
TypeError: decoding str is not supported
Display Psychopy Monitor Name:  testMonitor
Display Default Eye Distance:  570.0
Display Physical Dimensions:  {'width': 300.0, 'height': 168.75, 'unit_type': 'mm'}
Experiment Metadata: 
{'code': 'gap_endo_que',
 'description': '',
 'experiment_id': 'C',
 'title': '',
 'total_sessions_to_run': 0,
 'version': ''}

Session Metadata: 
{'code': 'S_07_12_2020_16_18',
 'comments': '',
 'name': '',
 'session_id': 'C',
 'user_variables': {}}
ioHub Server Process Completed With Code:  0
Test Result:  None

------------------------------------

Running testEnabledDataStoreAutoSessionCode Test:
Current Session Code will be:  S_1607354282
RPC_ATTRIBUTE_ERROR
Traceback (most recent call last):
  File "/home/rphlypo/miniconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/iohub/server.py", line 108, in handle
    result = getattr(self, unicode(callable_name, 'utf-8'))
TypeError: decoding str is not supported
RPC_ATTRIBUTE_ERROR
Traceback (most recent call last):
  File "/home/rphlypo/miniconda3/envs/psychopy/lib/python3.6/site-packages/psychopy/iohub/server.py", line 108, in handle
    result = getattr(self, unicode(callable_name, 'utf-8'))
TypeError: decoding str is not supported
Display Psychopy Monitor Name:  testMonitor
Display Default Eye Distance:  570.0
Display Physical Dimensions:  {'width': 300.0, 'height': 168.75, 'unit_type': 'mm'}
Experiment Metadata: 
{'code': 'gap_endo_que',
 'description': '',
 'experiment_id': 'C',
 'title': '',
 'total_sessions_to_run': 0,
 'version': ''}

Session Metadata: 
{'code': 'S_1607354282',
 'comments': '',
 'name': '',
 'session_id': 'C',
 'user_variables': {}}
ioHub Server Process Completed With Code:  0
Test Result:  None
@rphlypo rphlypo changed the title ioHub and DataStore on Linux: decoding str is not supported ioHub and DataStore on Linux: RPC_ATTRIBUTE_ERROR and decoding str is not supported Dec 7, 2020
rphlypo added a commit to rphlypo/psychopy that referenced this issue Dec 7, 2020
@isolver
Copy link
Contributor

isolver commented Jan 5, 2021

I can also now reproduce this on win10. Will fix this week.

isolver added a commit to isolver/psychopy that referenced this issue Jan 5, 2021
peircej added a commit that referenced this issue Jan 12, 2021
@isolver isolver self-assigned this Jan 15, 2021
@isolver isolver added the 🐞 bug Issue describes a bug (crash or error) or undefined behavior. label Jan 15, 2021
@isolver
Copy link
Contributor

isolver commented Jan 15, 2021

This should now be working.

@peircej peircej closed this as completed Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Issue describes a bug (crash or error) or undefined behavior.
Projects
None yet
Development

No branches or pull requests

3 participants