psychopy.org | Reference | Downloads | Github

Potential backend sound issue in 1.85?

Hello,

I tried upgrading to version 1.85, in hope I’ll be able to present a sound together with a movie, and have encountered the following error when trying to create a sound:

C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\visual\movie2.py:352: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  dtype=numpy.uint8)
Traceback (most recent call last):
  File "U:\Documents\PsychoPy\segment_mov.py", line 90, in <module>
    sound_1 = sound.Sound(u'A', secs=0.2)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py", line 276, in __init__
    init(rate=sampleRate)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py", line 125, in init
    audioDriver, outputID = _bestDriver(devNames, devIDs)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\sound\backend_pyo.py", line 28, in _bestDriver
    osEncoding = sys.getfilesystemencoding()

I updated my local version of backend_pyo.py to import sys and it works