mcm

unable to start the program

Asked by debianite

When a I try to start mcm, I get this error:

Traceback (most recent call last):
  File "/usr/share/apps/mcm/terminal/mcm-terminal.py", line 32, in <module>
    from mcm.common.utils import *
  File "/usr/share/apps/mcm/common/utils.py", line 207, in <module>
    class TipsEncoder(json.JSONEncoder):
AttributeError: 'module' object has no attribute 'JSONEncoder'

Am i missing any package? I have been looking for a program like this in Linux for ages, I would really like get it running.
I'm running Debian testing amd64.
Thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
mcm Edit question
Assignee:
No assignee Edit question
Solved by:
ubersoldat
Solved:
Last query:
Last reply:
Revision history for this message
Best ubersoldat (alejandroayuso-gmail) said :
#1

Problem: Debian and older Linux distros come with Python 2.5 and the json module was added on Python 2.6

Solution:

On Debian, install Python 2.6 and edit the startup bash script for MCM (/usr/bin/mcm). Find the lines where the python interpreter is called and change it for /usr/bin/python2.6 or something like that.

"I can't install Python 2.6" then try installing the package python-json which I think (need confirmation) provides it.

Thanks to debianite for helping me find out this problem.

Revision history for this message
debianite (jose74santos) said :
#2

Thank you.
Now mcm works as expected.
Regarding python-json, I don't think it works, I installed it and also python-simplejson but the result was the same, it refused to start.
Seeing that mcm depends on python 2.6, may I suggest a Debian specific package instead of an all.deb?

Revision history for this message
debianite (jose74santos) said :
#3

Thanks ubersoldat, that solved my question.