unable to get parallel python (pp) running on python 2.7 -
i working on windows box 8 processors. have run python script mass data processing. when run such, script uses 1 processor. learnt that, harness power of multiple processors, can use parallel python (pp) library.
i installed library on machine , followed instructions available @ http://www.parallelpython.com/content/view/15/30/#quicksmp
however, code configure pp fails on machine:
python 2.7.1 (r271:86832, nov 27 2010, 17:19:03) [msc v.1500 64 bit (amd64)] on win32 type "copyright", "credits" or "license()" more information. >>> import pp >>> job_server = pp.server() traceback (most recent call last): file "<pyshell#1>", line 1, in <module> job_server = pp.server() file "c:\python27\lib\site-packages\pp.py", line 343, in __init__ self.set_ncpus(ncpus) file "c:\python27\lib\site-packages\pp.py", line 503, in set_ncpus range(ncpus - len(self.__workers))]) file "c:\python27\lib\site-packages\pp.py", line 148, in __init__ self.start() file "c:\python27\lib\site-packages\pp.py", line 161, in start self.pid = int(self.t.receive()) file "c:\python27\lib\site-packages\pptransport.py", line 134, in receive msg_len = struct.unpack("!q", size_packed)[0] error: unpack requires string argument of length 8 >>>
can please tell me how resolved? have installed pp version 1.6.0
Comments
Post a Comment