Picroft enclosure platform version: 0.9.11 on a raspberry pi 3B
After I installed another python project (https://github.com/adafruit/Adafruit_Python_DHT) I can not start
mycroft-cli-client (or any other of the command line programs)
I see a traceback:
Traceback (most recent call last):
File "/usr/local/bin/mycroft-cli-client", line 14, in <module>
load_entry_point('mycroft-core==0.9.14', 'console_scripts', 'mycroft-cli-client')()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 572, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2755, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2408, in load
return self.resolve()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2414, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/__init__.py", line 17, in <module>
from mycroft.api import Api
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/api/__init__.py", line 20, in <module>
from mycroft.configuration import Configuration
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/configuration/__init__.py", line 15, in <module>
from .config import Configuration, LocalConf, RemoteConf, \
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/configuration/config.py", line 23, in <module>
from mycroft.util.json_helper import load_commented_json
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/util/__init__.py", line 22, in <module>
import mycroft.audio
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/audio/__init__.py", line 17, in <module>
from mycroft.util.signal import check_for_signal, create_signal
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/util/signal.py", line 22, in <module>
from mycroft.util.log import LOG
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/util/log.py", line 110, in <module>
LOG.init()
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/util/log.py", line 65, in init
config = load_commented_json(sys_config) if isfile(sys_config) else {}
File "/usr/local/lib/python2.7/site-packages/mycroft_core-0.9.14-py2.7.egg/mycroft/util/json_helper.py", line 38, in load_commented_json
return json.loads(uncomment_json(contents))
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 1 column 390 (char 389)
The picture is very similar with say_to_mycroft and test_microphone, again ending with an unrecognised delimiter error in /usr/lib/python2.7/json/decoder.py
I assume that the way in which the Adafruit package installed itself has broken the mycroft install. Unfortunately I have not enough knowledge about python installers to analyze or fix this situation on my own.
Now, I could always reburn the image and start from zero again. But chances are the problem will occurr again when I install the other project (which I need on that box).
Are there known and documented best practices for avoiding this sort of problems? I notice now that there is a separate python installed under /usr/bin/python while which python returns /usr/local/bin/python.
Thanks in advance for any pointers or detailing questions