[Tutor] subprocess.Popen()

Alan Gauld alan.gauld at yahoo.co.uk
Mon Dec 3 05:12:30 EST 2018


On 02/12/2018 10:29, Dave Hill wrote:

> Having 'graduated' to Python 3.7, I thought I would explore 
> Traceback (most recent call last):
>    File "/home/pi/Code/TestVideo#4.py", line 31, in <module>
>      player.playVideo(FILE, 'HDMI')
>    File "/home/pi/Code/VideoPlayer.py", line 51, in playVideo
>      out = omxp.communicate()
>    File "/usr/lib/python3.5/subprocess.py", line 801, in communicate
>      stdout, stderr = self._communicate(input, endtime, timeout)

The first thing I notice is that you say you are using
Python 3.7 yet the libs appear to be 3.5.

It could be some kind of path problem?

Or maybe how you start Python. Do you explicitly call python37?

I don't have the time to go through the code in detail just now.
If nobody else picks it up I'll take a closer look later.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list