Import pxssh failed in Fedora 24 (worked in Fedora 23 and earlier vresions)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux