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
[Bug]: launch failure #5966
Comments
What is the output of |
Here's the log |
Many thanks. That gives us something to work with. |
Well, there is an internal mic. I'm running Ubuntu 22.04 on a Dell XPS-9320 laptop.
Output from arecord -l command:
**** List of CAPTURE Hardware Devices ****
card 0: sofsoundwire [sof-soundwire], device 4: Microphone (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
|
Any progress on this? |
Is this still being worked on? |
Any progress on this? |
This seems to be an old problem still unresolved: https://discourse.psychopy.org/t/ptb-error-portaudio-cant-detect-any-supported-sound-device-on-this-system/25670 - The last_app_load.log points to the audio python files (e.g., python3.8/site-packages/psychtoolbox/audio.py) line 70:
Could be a psychtoolbox issue with getting sound device info - http://psychtoolbox.org/docs/PsychPortAudio-GetDevices Is there any way of setting the sound device manually - All psychopy sound preferences seem to be set through the gui |
More info from psychtoolbox forum - https://psychtoolbox.discourse.group/t/ubuntu-22-04-issue-with-audio-device-in-basicsoundoutputdemo/4968 |
Well, if your mic can't be used/detected by PTB (or by portaudio, which PTB uses) then it's very unlikely you'll be able to use that mic in psychopy. BUT we'll try and make sure in the upcoming 2024.1.0 release that a failure to load a mic doesn't prevent the app from starting! 😬 |
I don't think this is just a mic problem, seems to be a problem in detecting any sound device. However, strangely enough, I did run psychtoolbox with Octave and had no problem with sound. So, the problem doesn't seem to be with psychtoobox per se but rather with the file Environments/psychopy-py38/lib/python3.8/site-packages/psychtoolbox/audio.py" (line 70 ) which is created when psychopy is created using pip install in a virtenv. This audio.py file was written in 2018 and starts with:
I've tried manually commenting out references to autio input devices in the file, but that has ramifications for other scripts (e.g., the systemtools.py. So, is there any way to circumvent callling audio.py or manually setting device info? |
From PTB running under Octave
1x7 struct array containing the fields:
|
PsychoPy Version
2023.2.3
What OS are your PsychoPy running on?
Linux-based systems
Bug Description
Using Ubuntu 22.04, I created a venv, activated it, installed psychopy 2023.2.3 with pip3 and encountered no errors with the install and directories seem intact
bin/psychopy file:
import re
import sys
from psychopy.app.psychopyApp import main
if name == 'main':
sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0])
sys.exit(main())
bin/psychopy (END)
pyenv.cfg file:
home = /usr/bin
include-system-site-packages = false
version = 3.10.12
pyvenv.cfg (END)
Command "psychopy" does not launch psychopy, No splash, no error message.
Expected Behaviour
Expected psychopy to launch
Steps to Reproduce
...
Additional context
No response
The text was updated successfully, but these errors were encountered: