fexpect
fexpect copied to clipboard
fexpect needs pexpect to be installed on remote system
I was referred from StackOverflow to here. http://stackoverflow.com/questions/22669686/importerror-no-module-named-pexpect/22670194
fexpect needs pexpect to be installed on remote system, is this a wanted behavior? I'm using Ubuntu 12.04 as a remote machine.
The current workaround is to create a script, that sets up pip and pexpect one the remote machine first, before fexpect can be used.
Could you post
ls /tmp
here? That would tell us if the pexpect module got send along with the script, as it should have.
Hello! This seems to be similar to the issue outlined in this pull request:
https://github.com/ilogue/fexpect/pull/19
I have encountered the same error. From my understanding, pexpect should not need to be installed on the remote system, since it gets sent along with your script. However, this does not seem to be happening as anticipated. Here is the output of my fexpect run:
put: /usr/local/lib/python2.7/site-packages/pexpect/init.py -> /tmp/init.py
put:
I hope this helps, and I will be looking forward to the resolution!
Yes, this helps! It is sending over pexpect/init.py instead of pexpect.py
This is probably because of how different versions of pexpect are packaged. Can you find out which version of pexpect you have? E.g. with pip freeze
?
Thanks for the quick response!
pexpect==3.1 fexpect==0.2.post17
Same situation here, I'm using a python virtualenv created with pyenv. Is there any workaround for this?
pip freeze:
Fabric==1.8.3 fexpect==0.2.post17 pexpect==3.2
Fabric output:
[host] put: /home/user/.pyenv/versions/myenviroment/lib/python2.7/site-packages/pexpect/init.py -> /tmp/init.py
[host] put:
As ilogue commented, copying manually the pexpect folder to /tmp on remote host can be used as a workaround.