In the windows sound control panel you can see that sound is played from youtube but you can’t hear it anymore. More precisely: If I open a browser and play a music video on youtube and then start my psypy experiment, the moment the first sound in the experiment should be played, all sound from the computer shuts off and nothing can be heard anymore. On the lab-pc, as soon the first sound file should be played during the experiment, the sound of the whole computer brakes down and no sound can be heard anymore. On my working-pc everything still works perfectly. Everything went well until we tried to play the sound via bluetooth speakers, at least on the pc in the lab. Additionally I play a sound every 3.33 secs which is independant from the trials and realized with a python code component. Each trial an audio warning is given and a visual stimulus is displayed. Short story: My experiment includes audio and visual stimuli. Note that pygame works fine for me, I just would like to use the Microphone class.This is my first post here but the problem is bit complex but I try to be as short as possible: Maybe those are in the wrong place and not being found by python? pyd files are the same as dlls, right? There is a _pyo.pyd and also a _pyo64.pyd in Lib\site-packages\. There is a DLLs folder in the PsychoPy2 directory, but nothing related to pyo is in there, it is full of mostly. ImportError: DLL load failed: The specified module could not be found. Here is the output from trying to import pyo from the PsychoPy shell: > import pyoįile "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyo.py", line 21, in įile "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyolib\analysis.py", line 30, in įile "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyolib\_core.py", line 32, in This created a few folders in PsychoPy2\Lib\site-packages\. I installed pyo and chose C:\Program Files (x86)\PsychoPy2 as the installation directory. Using standalone psychopy (1.84.2) on Windows 10. Hopefully this is making sense or will make sense soon. My suspicion is that one or both of the first two will work, and the third will fail, which would mean you need to install pyo again using the third command to specify the right interpreter. You can try to type any of these three commands (which will bring you to the python prompt), and type import pyo To do that you have to specify the path to psychopy’s python interpreter, which would be something like this (don’t quote me): "C:\Program Files\PsychoPy2\python.exe" … you’ve probably installed pyo in your system python, not in psychopy’s python. … or by simply typing ‘python’ (meaning python was added to your system’s path when you installed it): python So let us know how you installed pyo, and we can start to narrow down the issue.īut in short, if you are running things like this in the command prompt: C:\Python27\python.exe If you want to install other python packages, and are using the standalone, you need to make sure you install them using Psychopy’s interpreter. How did you install pyo? One potential issue is that the standalone version of psychopy (which you are running) includes its own separate python, to guarantee it has everything it needs when installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |