FS#46868 - [python2-pexpect] fails to load the ptyprocess module

Attached to Project: Community Packages
Opened by Eric Barrat (nowahn) - Sunday, 25 October 2015, 09:52 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 25 October 2015, 13:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading python2-pexpect from 3.3-2 to 4.0.1-1 today, it is broken, because it fails to load the 'ptyprocess' module.

For me it happend with duplicity (using the pexpect backend for ssh), I got this backtrace:
...
File "/usr/lib/python2.7/site-packages/pexpect/__init__.py", line 75, in <module>
from .pty_spawn import spawn, spawnu
File "/usr/lib/python2.7/site-packages/pexpect/pty_spawn.py", line 11, in <module>
import ptyprocess
ImportError: No module named ptyprocess

I found similar issues in the forum with other software:
https://bbs.archlinux.org/viewtopic.php?id=204292
https://bbs.archlinux.org/viewtopic.php?id=204287

fix:
The ptyprocess module is provided by the python2-ptyprocess package.
Installing this package fixes the bug, so python2-pexpect should depend on python2-ptyprocess.

Additional info:
You may want to check the python3 package as well.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Sunday, 25 October 2015, 13:24 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#46864 

Loading...