Zim

0.42 JSON requirements

Asked by Nicholas Wastell

Hello,

Testing zim.py 0.42 in a current Debian Squeeze 2.6.30-2-686, without installation (running ./zim.py from a subdir. of home).

I can't get ./zim.py to run. Either errors to do with json or hanging, depending which python json packages are installed. I don't want to file a bug until I'm sure what _should_ be installed. Choices are:

python-json
python-jsonpickle
python-simplejson
python-turbojson

What is Zim's requirement for 'must be' and 'must not be' installed, please? Simplejson seems to be necessary; json+simplejason (what I started with) produces test.py errors.

Question information

Language:
English Edit question
Status:
Solved
For:
Zim Edit question
Assignee:
No assignee Edit question
Solved by:
Nicholas Wastell
Solved:
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

It depends on the python version you have installed. With python 2.6
there is a standard module called "json", this is the same module that
is available under the name "simplejson" for python 2.5.

If you have python 2.5 you need to install simlejson, for python 2.6
no additional modules are needed.

Zim first tries to import "json", if that fails it tries to import
"simplejson". If you have a different module installed that is called
"json" this could fail. Maybe we should explicitly check the python
version to decide on the right import.

Revision history for this message
Nicholas Wastell (nickwastell) said :
#2

Thanks for your response.

Sorry, I should have mentioned that python 2.5.4 is the current Squeeze version. The python-json package must have been called as a dependency for something in the past -- now removed. (It is listed as a dep. for some other python stuff, so a check would probably be useful.)