Closed quezak closed 8 years ago
Additional info: I also get an error using ijson.backends.yajl2
:
Traceback (most recent call last):
File "./test.py", line 7, in <module>
for prefix, event, value in parser:
File "/usr/lib64/python3.4/site-packages/ijson/common.py", line 65, in parse
for event, value in basic_events:
File "/usr/lib64/python3.4/site-packages/ijson/backends/yajl2.py", line 94, in basic_parse
raise exception(error.decode('utf-8'))
ijson.common.IncompleteJSONError: lexical error: invalid char in json text.
{ (right here) ------^
Trying to use ijson.backends.yajl
results in ijson.backends.YAJLImportError: YAJL version 1.x required, found 2.1.0
, but that's expected.
Using ijson.backends.python
works fine.
By the way: seeing the above results, do I guess correctly that python is the backend used by default?
Sorry, I forgot to check closed issues before. This is a duplicate of #54
When trying to use the CFFI backend as instructed in the readme, I get the following error:
It seems to happen in all cases, a trivial example:
The same code, when the import is changed to just
import ijson
, works just fine:OS: Gentoo Linux ijson version: 2.3 yajl version: 2.1.0 cffi version: 1.8.3 python version: 3.4.3