KenT2 / pipresents-gapless

A retired version of Pi Presents. Please use Pi Presents KMS which works on legacy RPi OS Bullseye or Pi Presents GTK which works on RPi OS Bookworm and RPi Model 5
https://pipresents.wordpress.com
Other
210 stars 43 forks source link

'import ptyprocess' error with Raspbian Stretch #56

Closed magno23 closed 7 years ago

magno23 commented 7 years ago

Traceback (most recent call last): File "pipresents.py", line 40, in from pp_showmanager import ShowManager File "/home/pi/pipresents/pp_showmanager.py", line 323, in from pp_menushow import MenuShow File "/home/pi/pipresents/pp_menushow.py", line 4, in from pp_show import Show File "/home/pi/pipresents/pp_show.py", line 12, in from pp_audioplayer import AudioPlayer File "/home/pi/pipresents/pp_audioplayer.py", line 2, in from pp_mplayerdriver import MplayerDriver File "/home/pi/pipresents/pp_mplayerdriver.py", line 1, in import pexpect File "/usr/local/lib/python2.7/dist-packages/pexpect/init.py", line 75, in from .pty_spawn import spawn, spawnu File "/usr/local/lib/python2.7/dist-packages/pexpect/pty_spawn.py", line 10, in import ptyprocess ImportError: No module named ptyprocess

magno23 commented 7 years ago

just so you know, yes i have pexpect installed Requirement already satisfied: pexpect in /usr/local/lib/python2.7/dist-packages

KenT2 commented 7 years ago

It looks like pexpect is missing one of its dependencies. Are you using Jessie of the new Stretch, it may be Stretch has ptyprocess missing.I've not tried Stretch yet.

magno23 commented 7 years ago

i'm using Stretch

KenT2 commented 7 years ago

Stretch does not contain the pty module. For Stretch install pexpect by:

sudo apt-get install python-pexpect

instead of downloading it.

Should work for Jessie. Readme.md has been updated.