Yelp / pyleus

Pyleus is a Python framework for developing and launching Storm topologies.
Apache License 2.0
404 stars 113 forks source link

Missing parentheses in call to 'print' #115

Closed hadisotudeh closed 9 years ago

hadisotudeh commented 9 years ago

Hi I get the following error, any idea? Error: pyleus local DRC.jar

File "/home/hadi/Storm/apache-storm-0.9.2-incubating/bin/storm", line 71 print "**" ^ SyntaxError: Missing parentheses in call to 'print' pyleus local: error: [StormError] Storm command failed. Run with --verbose for more info.

poros commented 9 years ago

Whatever the error is, you can't print from a topology component with Pyleus. It's written in the docs http://yelp.github.io/pyleus/logging.html?highlight=print

moandcompany commented 9 years ago

Using print statements in your topologies will blow up your application at runtime, as Storm uses STDIN and STDOUT for communication between tasks. Take a look at using Python's logging capabilities to help with debugging.