Jython subProcess.Popen usage: how to propagate environment
Hello Sikuli community!
I have a need to capture audio using pyaudio during a test that runs via a sikuli script. I am running on windows 10.
The issue I am stuck on is when this line in my sikuli script runs:
subprocess.
I get this error:
could not import the PyAudio C module '_portaudio'.
[error] script [ Desktop ] stopped with error in line 8
[error] ImportError ( No module named _portaudio )
[error] --- Traceback --- error source first line: module ( function ) statement 116: pyaudio ( <module> ) import _portaudio as pa
1: audio_recorder_
11: test_telephony_
[error] --- Traceback --- end --------------
I have tried variations of the Popen but seem to hit the same issue.
If I open a command prompt and run the same python script it works as expected:
C:\
recording...
finished recording
I have copied the entire contents of C:\Python27\
I can’t figure out where the PyAudio C module '_portaudio' resides on my system and how to work around this.
I’m hoping there is a way to run the script entirely independent of Sikuli but I’m not sure how to do that. I was thinking subprocess.Popen would be the solution.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Brad Hagen
- Solved:
- Last query:
- Last reply: