Creating 4 consumers
Parsing Vbook file, 21673 unique cin's found.
18 have no images.
sample = 0162299
Creating 4 consumers
19 in the queue
Process Consumer-5:
Traceback (most recent call last):
File "C:\Python26\lib\multiprocessing\process.py", line 232, in
_bootstrap
self.run()
File
"C:\Users\sromanow\Documents\projects\xpo\modules\validation\validate.py",
line 28, in run
answer = next_task()
File
"C:\Users\sromanow\Documents\projects\xpo\modules\validation\validate.py",
line 45, in __call__
return ss_xpaths(self.tree,self.cin)
File
"C:\Users\sromanow\Documents\projects\xpo\modules\validation\validate.py",
line 58, in ss_xpaths
result = tree.xpath(item_descr_expr, cin = cin)
File "lxml.etree.pyx", line 1829, in lxml.etree._ElementTree.xpath
(src/lxml/lxml.etree.c:41641)
File "lxml.etree.pyx", line 1550, in
lxml.etree._ElementTree._assertHasRoot (src/lxml/lxml.etree.c:39095)
AssertionError: ElementTree not initialized, missing root
I ended up modifying my xpath to work on the parent node of my search
results and the speed increase made it where mulitprocessing was not
necessary.