All pastes #612145 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-10 06:35 UTC
rendered paste body
danoz@neutrino ~/net.danoz.xdi.frontend.crawler $ ./crawler.py --debug
 1/QueryOne:  SELECT COUNT(*) FROM datum WHERE ((datum.location) = ('/data/more/broke/¸HP¸.BBS'))
Traceback (most recent call last):
  File "./crawler.py", line 363, in <module>
    c.crawl()
  File "./crawler.py", line 241, in crawl
    addFile(path)
  File "./crawler.py", line 169, in addFile
    data.Datum.select(data.Datum.q.location == bytePath).count()
  File "/usr/lib/python2.5/site-packages/sqlobject/sresults.py", line 199, in count
    count = self.accumulate('COUNT(*)')
  File "/usr/lib/python2.5/site-packages/sqlobject/sresults.py", line 182, in accumulate
    return conn.accumulateSelect(self, *expressions)
  File "/usr/lib/python2.5/site-packages/sqlobject/dbconnection.py", line 418, in accumulateSelect
    val = self.queryOne(q)
  File "/usr/lib/python2.5/site-packages/sqlobject/dbconnection.py", line 385, in queryOne
    return self._runWithConnection(self._queryOne, s)
  File "/usr/lib/python2.5/site-packages/sqlobject/dbconnection.py", line 255, in _runWithConnection
    val = meth(conn, *args)
  File "/usr/lib/python2.5/site-packages/sqlobject/dbconnection.py", line 378, in _queryOne
    self._executeRetry(conn, c, s)
  File "/usr/lib/python2.5/site-packages/sqlobject/mysql/mysqlconnection.py", line 113, in _executeRetry
    query = unicode(query, self.encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 72: ordinal not in range(128)