Strange Output after IPython Install #836

Closed
meawoppl opened this Issue Oct 4, 2011 · 2 comments

3 participants

@meawoppl

I pulled down the most recent iPython git. Freshly installed setuptools, and the installer produced the following output after installing the read-line module:

SyntaxError: ('invalid syntax', ('c:\python27\lib\site-packages\ipython-0.12.dev-py2.7.egg\share\doc\ipython\examples\newparallel\multiengine1.py', 19, 1, '%load_ext parallelmagic\n'))

SyntaxError: ('invalid syntax', ('c:\python27\lib\site-packages\ipython-0.12.dev-py2.7.egg\share\doc\ipython\examples\newparallel\rmt\rmt.py', 77, 1, '%timeit -r1 -n1 serial_diffs(serial_nmats, serial_matsize)\n'))

Not at all sure what is going on, and I am very new to windows. Are the python magic functions not being caught here somehow? When invoking ipython at the command line, it seems to hang, and aborting with ^C crashes Cygwin!

Running 'python setup.py install' fixes the problem. Is this some sort of strange packaging edge case?

@takluyver
IPython member

I'm guessing those files should have an .ipy extension, rather than .py. I don't know why the installer is trying to compile them, though.

@fperez
IPython member

Yup, we should fix it by changing those file extensions. Done now, pushed.

@fperez fperez closed this in 651e49e Oct 6, 2011
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
@fperez fperez Rename to have .ipy extension examples that use ipython special syntax.
Closes gh-836.
7556598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment