Pysparkling launch issue with Sparkling water

When trying to import “pysparkling” package with the command below, you will get the following error:

> from pysparkling import *

Here is the error:

Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
File "/tmp/opus/spark/work/spark-5d42934c-6708-41f4-bfeb-a2cfa633ca57/userFiles-f8e81ceb-04b8-47a8-b0a5-140abde65006/h2o_pysparkling_1.6-1.6.5-py2.7.egg/pysparkling/__init__.py", line 11, in <module> 
File "/tmp/opus/spark/work/spark-5d42934c-6708-41f4-bfeb-a2cfa633ca57/userFiles-f8e81ceb-04b8-47a8-b0a5-140abde65006/h2o_pysparkling_1.6-1.6.5-py2.7.egg/pysparkling/context.py", line 5, in <module> 
File "/tmp/opus/spark/work/spark-5d42934c-6708-41f4-bfeb-a2cfa633ca57/userFiles-f8e81ceb-04b8-47a8-b0a5-140abde65006/h2o_pysparkling_1.6-1.6.5-py2.7.egg/h2o/__init__.py", line 7, in <module> 
File "/tmp/opus/spark/work/spark-5d42934c-6708-41f4-bfeb-a2cfa633ca57/userFiles-f8e81ceb-04b8-47a8-b0a5-140abde65006/h2o_pysparkling_1.6-1.6.5-py2.7.egg/h2o/h2o.py", line 217 
p.update({k:v for k,v in locals().items() if k is not "p"})
 ^SyntaxError: invalid syntax>>>

Here is the solution:

After investigation, I found that the Python version used in the machine was 2.6 and we have tested Sparkling Water 1.6.5 with Python 2.7 and above so the best solution is to use Python 2.7.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s