maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Python problem (https://talk.maemo.org/showthread.php?t=93932)

Estel 2014-09-26 17:07

Python problem
 
On one of my devices (similar setup, both on cssu-thumb), MyPaint works well. Hoever, on another one, I get following error:

Code:

:$ /opt/mypaint/bin/mypaint
external python-simplejson
confpath = /home/user/.mypaint/
Traceback (most recent call last):
  File "/opt/mypaint/bin/mypaint", line 172, in <module>
    main.main(datapath, confpath)
  File "/opt/mypaint/share/mypaint/gui/main.py", line 75, in main
    run()
  File "/opt/mypaint/share/mypaint/gui/main.py", line 42, in run
    app = application.Application(datapath, options.config, args)
  File "/opt/mypaint/share/mypaint/gui/application.py", line 55, in __init__
    self.load_settings()
  File "/opt/mypaint/share/mypaint/gui/application.py", line 199, in load_settings
    user_config = get_json_config()
  File "/opt/mypaint/share/mypaint/gui/application.py", line 143, in get_json_config
    return helpers.json_loads(jsonstr)
  File "/usr/lib/python2.5/site-packages/PIL/__init__.py", line 307, in loads
   
  File "/usr/lib/python2.5/site-packages/simplejson/decoder.py", line 335, in decode
  File "/usr/lib/python2.5/site-packages/simplejson/decoder.py", line 353, in raw_decode
ValueError: No JSON object could be decoded

I suspect that something related to python is wrong - device in question had serious filesystem corruption, before proper patched fsck tools become available. I thought I have fixed all results, but some lacking/messed files may remain. The thing that I'm sure about, is that there are *no* I/O errors - filesystem is fixed, so the only possible thing is some missing files. I tried reinstalling everything python-related I could think of, to no avail.

Does anyone have idea what may be causing this error, and what to reinstall to get rid of it?

Thanks in advance,
/Estel

marmistrz 2014-09-26 17:11

Re: Python problem
 
Try looking into the mypaint config files. Sounds as if some of them was broken.

Estel 2014-09-28 21:16

Re: Python problem
 
*facepalm* doh. You're absolutely right, nuking /home/.mypaint and reinstalling *again* solved it.

I was so focused that it's python-related problem, that I completely skipped such obvious step. Thank you, meantime, I'll find some cartoon box to put on my head, in case I would need to go outside during daylight. Such a shaming situation... :o

/Estel


All times are GMT. The time now is 12:42.

vBulletin® Version 3.8.8