douban / dpark

Python clone of Spark, a MapReduce alike framework in Python
BSD 3-Clause "New" or "Revised" License
2.69k stars 534 forks source link

from dpark import DparkContext ERROR #65

Closed karottc closed 7 years ago

karottc commented 7 years ago

results is below:

raceback (most recent call last): File "test_dpark.py", line 20, in from dpark import DparkContext File "/usr/lib64/python2.6/site-packages/DPark-0.3.5-py2.6-linux-x86_64.egg/dpark/init.py", line 1, in from context import DparkContext, parser as optParser File "/usr/lib64/python2.6/site-packages/DPark-0.3.5-py2.6-linux-x86_64.egg/dpark/context.py", line 10, in from dpark.schedule import LocalScheduler, MultiProcessScheduler, MesosScheduler File "/usr/lib64/python2.6/site-packages/DPark-0.3.5-py2.6-linux-x86_64.egg/dpark/schedule.py", line 15, in import pymesos as mesos File "/usr/lib64/python2.6/site-packages/pymesos-0.1.6-py2.6.egg/pymesos/init.py", line 1, in from .scheduler import MesosSchedulerDriver File "/usr/lib64/python2.6/site-packages/pymesos-0.1.6-py2.6.egg/pymesos/scheduler.py", line 18, in from .process import UPID, Process, async File "/usr/lib64/python2.6/site-packages/pymesos-0.1.6-py2.6.egg/pymesos/process.py", line 141 args = {f.name: getattr(msg, f.name) for f in msg.DESCRIPTOR.fields} ^ SyntaxError: invalid syntax

windreamer commented 7 years ago

hi karottc, please use python 2.7, 2.6 is no longer supported by DPark

karottc commented 7 years ago

@windreamer thx