-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
When I tried to run the following simple script by python xxx.py for sanity check
from pyspark import SparkContext
from drudge import PartHoleDrudge
ctx = SparkContext()
dr = PartHoleDrudge(ctx)which is taken from the conf_ph.py from the tutorial. I got error msg:
Traceback (most recent call last):
File "test.py", line 5, in <module>
dr = PartHoleDrudge(ctx)
File "/Users/hzye/local/opt/miniconda/envs/frank/lib/python3.6/site-packages/drudge-0.10.0.dev0-py3.6-macosx-10.7-x86_64.egg/drudge/fock.py", line 816, in __init__
**kwargs)
File "/Users/hzye/local/opt/miniconda/envs/frank/lib/python3.6/site-packages/drudge-0.10.0.dev0-py3.6-macosx-10.7-x86_64.egg/drudge/fock.py", line 750, in __init__
orig_ham = (one_body_ham + two_body_ham).reset_dumms()
File "/Users/hzye/local/opt/miniconda/envs/frank/lib/python3.6/site-packages/drudge-0.10.0.dev0-py3.6-macosx-10.7-x86_64.egg/drudge/drudge.py", line 417, in reset_dumms
free_vars = self.free_vars
File "/Users/hzye/local/opt/miniconda/envs/frank/lib/python3.6/site-packages/drudge-0.10.0.dev0-py3.6-macosx-10.7-x86_64.egg/drudge/drudge.py", line 211, in free_vars
self._free_vars = self._get_free_vars(self._terms)
File "/Users/hzye/local/opt/miniconda/envs/frank/lib/python3.6/site-packages/drudge-0.10.0.dev0-py3.6-macosx-10.7-x86_64.egg/drudge/drudge.py", line 224, in _get_free_vars
).aggregate(set(), _union, _union)
File "/Users/hzye/local/opt/miniconda/envs/frank/lib/python3.6/site-packages/dummy_spark/rdd.py", line 304, in aggregate
raise NotImplementedError
NotImplementedError
I checked the source code rdd.py from dummy_spark, and it seems that the function aggregate is indeed not implemented therein but being called by drudge.py. Does anyone know how this could be resolved?
Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels