Hi all,

I ran a python 2 script which works fine for Fedora 23 and earlier,
with python-2.7. It stopped
to work on Fedoera 24 ; following are details:

python
Python 2.7.10 (default, Sep  8 2015, 17:20:17)
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pexpect
>>> import pxssh
>>>
....
...
rpm -q python-pexpect
python-pexpect-3.1-4.fc23.noarch

In fedora 24, I don't have python-pexpect, it seems that
python2-pexpect replaced it.
But python2-pexpect does include pexpect.py and pxssh.py
rpm -ql  python2-pexpect | grep pexpect.py
/usr/lib/python2.7/site-packages/pexpect/fdpexpect.py
...
cghost:~$rpm -ql  python2-pexpect | grep pxssh.py
/usr/lib/python2.7/site-packages/pexpect/pxssh.py

However, I get ImportError: No module named pxssh when running the same script:
The error is about pxssh; please not that  import pexpect succeeded.

$> python
Python 2.7.11 (default, Jun 21 2016, 09:15:12)
[GCC 6.1.1 20160510 (Red Hat 6.1.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pexpect
>>> import pxssh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pxssh
>>>


Any ideas ?

Regards,
Kevin
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@lists.fedoraproject.org
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to