pandaproject/panda — Issue #75: Track down issue with Brian's test dataset
Author: onyxfish
Created: 2011-10-28 19:17:30+00:00
State: open
Labels: bug

2011-10-28 13:08:37,430 [ERROR] celery: Task redd.tasks.DatasetImportTask[acc20407-ca08-4160-bff6-468d7c4fe6e7] raised exception: ValueError(u'All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters',)
Traceback (most recent call last):
File "/home/ubuntu/.virtualenvs/panda/lib/python2.7/site-packages/celery/execute/trace.py", line 36, in trace
return cls(states.SUCCESS, retval=fun(*args, **kwargs))
File "/home/ubuntu/src/panda/redd/tasks.py", line 36, in __call__
return self.run(dataset_id, *args, **kwargs)
File "/home/ubuntu/src/panda/redd/tasks.py", line 92, in run
solr.add(add_buffer)
File "/home/ubuntu/.virtualenvs/panda/src/sunburnt/sunburnt/sunburnt.py", line 149, in add
update_message = self.schema.make_update(doc_chunk)
File "/home/ubuntu/.virtualenvs/panda/src/sunburnt/sunburnt/schema.py", line 488, in make_update
return SolrUpdate(self, docs)
File "/home/ubuntu/.virtualenvs/panda/src/sunburnt/sunburnt/schema.py", line 519, in __init__
self.xml = self.add(docs)
File "/home/ubuntu/.virtualenvs/panda/src/sunburnt/sunburnt/schema.py", line 548, in add
return self.ADD(*[self.doc(doc) for doc in docs])
File "/home/ubuntu/.virtualenvs/panda/src/sunburnt/sunburnt/schema.py", line 539, in doc
for name, values in doc.items()]))
File "/home/ubuntu/.virtualenvs/panda/src/sunburnt/sunburnt/schema.py", line 527, in fields
for field_value in field_values]
File "/home/ubuntu/.virtualenvs/panda/lib/python2.7/site-packages/lxml/builder.py", line 222, in __call__
v = t(elem, item)
File "/home/ubuntu/.virtualenvs/panda/lib/python2.7/site-packages/lxml/builder.py", line 185, in add_text
elem.text = (elem.text or "") + item
File "lxml.etree.pyx", line 904, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:37110)
File "apihelpers.pxi", line 721, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:16855)
File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22060)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
None