Author orsenthil
Recipients orsenthil, swaroopch
Date 2008-09-03.16:55:35
SpamBayes Score 7.1369e-06
Marked as misclassified No
Message-id <>
On the code against the trunk, I am getting the following error:

Traceback (most recent call last):
  File "", line 38, in <module>
    for result in search(query)['Result']:
  File "", line 31, in search
    result = json.load(obj)
  File "/usr/local/lib/python3.0/json/", line 267, in load
    parse_constant=parse_constant, **kw)
  File "/usr/local/lib/python3.0/json/", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.0/json/", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
TypeError: can't use a string pattern on a bytes-like object

Swaroop: What encoding would be the JSON File content? You can try by
passing the encoding argument to the load method. I tried latin1 and
ascii, did not help.

Few more things to note:
- The above TypeError was introduced by the fix of Issue2834.
- There are also bugs open in other modules (shutil, imaplib) where
problems with str<->bytes conversions are observed.
Date User Action Args
2008-09-03 16:55:37orsenthilsetrecipients: + orsenthil, swaroopch
2008-09-03 16:55:37orsenthilsetmessageid: <>
2008-09-03 16:55:36orsenthillinkissue3763 messages
2008-09-03 16:55:35orsenthilcreate