[Django]-Subprocess is not invoking my command(or is doing it wrong)

3👍

Use

p = subprocess.Popen( commands, shell=True, cwd='/home/test', env=os.environ, stdout = subprocess.PIPE, stderr = subprocess.PIPE)

for your Popen command, then

print p.communicate()
p.wait()
print p.communicate()

To see what it prints to stdout and stderr and figure out what you’re doing wrong.

Edit: Xvfb is a fake framebuffer; it doesn’t have hardware acceleration. Try changing your wine settings not to require hardware acceleration / not to use OpenGL / to do software rendering with winecfg.

👤agf

Leave a comment