Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
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. |
nagappan
commented
May 29, 2015
|
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. |
takluyver
closed this
May 29, 2015
nagappan
commented
May 29, 2015
|
Thanks |
didrocks
commented
Oct 20, 2015
|
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). |
sagarpanchal
commented
Oct 21, 2015
|
@nagappan I got solution! |
|
@sagarpanchal @didrocks you may also patch
|
nagappan commentedMay 29, 2015
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