New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transport, pw = yield from asyncio.get_event_loop() - SyntaxError: invalid syntax #220
Comments
It should install fine anyway. That module is only relevant on python 3, but the rest of pexpect will work without it. |
git clone git://github.com/pexpect/pexpect.git
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/FSM.py to FSM.pyc |
Just ignore the error and use it anyway. That part of the code is not for Python 2, so it doesn't matter. |
Thanks |
Hey, however, this is an issue for distributions like ubuntu which pre-compiles the .py in .pyc at install time (once for python2, once for python3). |
@nagappan I got solution! |
@sagarpanchal @didrocks you may also patch
|
This should fix the missing pyconfig.h error. According to [1] the SyntaxError shouldn't be an issue as it's a python3 only feature of pexpect. Issue: RI-482 [1]: pexpect/pexpect#220
This should fix the missing pyconfig.h error. According to [1] the SyntaxError shouldn't be an issue as it's a python3 only feature of pexpect. Issue: RI-482 [1]: pexpect/pexpect#220
This should fix the missing pyconfig.h error. According to [1] the SyntaxError shouldn't be an issue as it's a python3 only feature of pexpect. Issue: RI-482 [1]: pexpect/pexpect#220
In Ubuntu 14.04, any suggestions to fix ?
/usr/bin/python setup.py install
running install
running build
running build_py
running install_lib
creating /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/screen.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/init.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/replwrap.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/expect.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/async.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/FSM.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/pxssh.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/fdpexpect.py -> /usr/local/lib/python2.7/dist-packages/pexpect
copying build/lib.linux-x86_64-2.7/pexpect/ANSI.py -> /usr/local/lib/python2.7/dist-packages/pexpect
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/screen.py to screen.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/init.py to init.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/replwrap.py to replwrap.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/expect.py to expect.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/async.py to async.pyc
File "/usr/local/lib/python2.7/dist-packages/pexpect/async.py", line 15
transport, pw = yield from asyncio.get_event_loop()
^
SyntaxError: invalid syntax
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/FSM.py to FSM.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/pxssh.py to pxssh.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/fdpexpect.py to fdpexpect.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pexpect/ANSI.py to ANSI.pyc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/pexpect-3.3.egg-info
The text was updated successfully, but these errors were encountered: