Closed RomainEndelin closed 11 years ago
Hi @RomainEndelin : so looking at the path, you're grabbing a Python3 version of IPython - but vim is typically built against Python2 on most distros. At a first glance, that would explain why the print()
syntax is considered invalid, since it's only available in Python 3, or if you run from __future__ import print_function
in Python2.
You can verify which version of python vim is linked against by running this command: :python import os; print(os.__file__)
vim-ipython right now is only python2.x compatible.
see #39 to keep track of the python3 port feature request
Thanks, I switched back to IPython2 and it solved this problem. Since you told me, it looks obvious, but I am still new to Python world, and not yet used to this python2/python3 thing...
Now I am stuggling with same problem as described in #34, but it shouldn't take too long.
Problem solved, now it works like a charm !
Problem solved, now it works like a charm !
Awesome, glad to hear it!
Paul Ivanov 314 address only used for lists, off-list direct email at: http://pirsquared.org | GPG/PGP key id: 0x0F3E28F7
Hello,
When I launch ":IPython", or ":IPython --existing kernel xxxxxx.json", I obtain this message : Traceback (most recent call last): File "", line 1, in
File "", line 44, in km_from_string
File "/usr/lib/python3.3/site-packages/IPython/init.py", line 43, in
from .config.loader import Config
File "/usr/lib/python3.3/site-packages/IPython/config/init.py", line 16, in
from .application import
File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 29, in
from IPython.external.decorator import decorator
File "/usr/lib/python3.3/site-packages/IPython/external/decorator/init.py", line 4, in
from ._decorator import
File "/usr/lib/python3.3/site-packages/IPython/external/decorator/_decorator.py", line 165
print('Error in generated code:', file=sys.stderr)
^
SyntaxError: invalid syntax
That seems to be located in IPython itself... My current version is 0.13.2, and I am running an ArchLinux.