Called as line magic - invalid syntax

229 views
Skip to first unread message

Travis Ayres

unread,
Oct 18, 2013, 6:11:18 PM10/18/13
to light...@googlegroups.com
Hi everyone I just installed light table and ipython, tried to execute any command and I get the following error:

Traceback (most recent call last):
File "C:\Users\tayers\Downloads\LightTable\plugins\python\ltmain.py", line 176, in handleEval
module = toModule(data[2]["path"])
File "C:\Users\tayers\Downloads\LightTable\plugins\python\ltmain.py", line 93, in toModule
__import__(mname)
File "C:\Users\tayers\Downloads\test_ipy.py", line 18
print "Called as line magic"
^
SyntaxError: invalid syntax

I have python 3.3, so print "Called as line magic" really is invalid, but I had some difficulty tracking it down, as line 93 in ltmain.py is:
for idx in range(len(parts)):
mname = ".".join(parts[:idx+1])
__import__(mname)

Has anyone seen this before?

Thanks,
-Travis

Chris Granger

unread,
Oct 18, 2013, 6:55:51 PM10/18/13
to light...@googlegroups.com
Upon trying to import your file it hit that syntax error. Is there something else you would expect to see? We could try to clear out the top two entries of the trace, but otherwise it seems like it did the right thing to me, but I'm not a big python user.

Cheers,
Chris.



--
You received this message because you are subscribed to the Google Groups "Light Table" group.
To unsubscribe from this group and stop receiving emails from it, send an email to light-table...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Michael Latta

unread,
Oct 18, 2013, 11:28:09 PM10/18/13
to light...@googlegroups.com
It looks correct to me. The import on line 93 called the file test_ipy.py which had the error. on line 18. Is that not where that print statement is?

Michael
Reply all
Reply to author
Forward
0 new messages