storm-starter python syntax error

380 views
Skip to first unread message

Jason Bladt

unread,
Apr 19, 2013, 11:34:26 PM4/19/13
to storm...@googlegroups.com
All--
 
I'm trying to get storm-starter running via maven. The first time I ran it, I got a report that python was missing. I installed Python 3.3 and tried again. This time I got the following error:
 
1915 [Thread-25] ERROR backtype.storm.util  - Async loop died!
java.lang.RuntimeException: Pipe to subprocess seems to be broken! No output read.
Shell Process Exception:
Traceback (most recent call last):
  File "splitsentence.py", line 1, in <module>
    import storm
  File "C:\Users\jake\AppData\Local\Temp\8cc2c98b-7c00-4588-89c8-81abde96e27a\supervisor\stormdist\word-count-1-1366427232\resources\storm.py", line 58
    print json_encode(msg)
                    ^
SyntaxError: invalid syntax
 
The environment is Windows 7 SP 1.
 
Should I be using an earlier version of Python?
 
--Jake
 
 

Ranjith Zachariah

unread,
Jun 2, 2013, 7:28:57 PM6/2/13
to storm...@googlegroups.com
Thanks so much, Manos. That solved it!

Ranj


On Sun, Jun 2, 2013 at 3:49 AM, Manos Tsagkias <tsa...@gmail.com> wrote:
In Python 3, the print statement has become a function: print(). So, print json_encode(msg) should be print(json_encode(msg)). Not sure about other potential incompatibilities in the code, but I would  use Python 2.X just to be on the safe side.

--
You received this message because you are subscribed to a topic in the Google Groups "storm-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/storm-user/v-Kbb6JaEaM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to storm-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages