| Reference | Downloads | Github

Moviestim3 : UnicodeDecodeError, (from sound)?

i have a new problem with movieStim 3.
I just installed win7 and psychopy 1.84.2 on an old computer (Nvidia quadro NVS 290 ,Xeon 2Ghz, 2Go RAM)
the code works on my computer does not on this one.

too bad config?

my code :

# -*- coding: utf-8 -*- 
from psychopy import visual, core, event
import time

import sys

win = visual.Window(size=(800,600))
mov = visual.MovieStim3(win, 'a')
#all instructions after this line are commented

and the error message

Traceback (most recent call last):
  File "C:\Users\acdc\Desktop\Jenny\tests_videos\", line 7, in <module>
    mov = visual.MovieStim3(win, 'a.avi')
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\contrib\", line 119, in __call__
    obj = object.__getattribute__(self, '_resolve')()
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\contrib\", line 88, in _resolve
    obj = factory(self, scope, name)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\contrib\", line 203, in _import
    module = __import__(module_python_path, scope, scope, [member], level=0)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\visual\", line 34, in <module>
    from psychopy import sound
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\", line 76, in <module>
    logging.warning(msg % (thisLibName, sys.exc_info()[1]))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 29: ordinal not in range(128)

i renamed the video with ‘a’ so there is no special character.
the path to a is without space or special character. C:\Users\acdc\Desktop\Jenny\tests_videos\a.avi
a.avi is a 800x600 movie without sound . it seems not to depend of the window’s size but maybe sound ? in the message error -->

File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.2-py2.7.egg\psychopy\", line 76, in <module>

If someone has an idea?..

Could you copy and paste the audio lib setting in the psychopy preferences? I have a feeling you’re trying to load an audio library with an invalid name.