Hi @lingyi
I’ve created a new SD card and tried reinstalling Kolibri.
I have the following problem now:
pip install kolibri==0.7.1.
Collecting kolibri==0.7.1.
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 353, in run
wb.build(autobuilding=True)
File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 749, in build
self.requirement_set.prepare_files(self.finder)
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 620, in _prepare_file
session=self.session, hashes=hashes)
File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 821, in unpack_url
hashes=hashes
File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 659, in unpack_http_url
hashes)
File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 853, in _download_http_url
stream=True,
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 501, in get
return self.request(‘GET’, url, **kwargs)
File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 386, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 488, in request
resp = self.send(prep, **send_kwargs)
File “/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py”, line 609, in send
r = adapter.send(request, **kwargs)
File “/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py”, line 37, in send
cached_response = self.controller.cached_request(request)
File “/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/controller.py”, line 111, in cached_request
resp = self.serializer.loads(request, cache_data)
File “/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/serialize.py”, line 114, in loads
return getattr(self, “_loads_v{0}”.format(ver))(request, data)
File “/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/serialize.py”, line 176, in _loads_v2
cached = json.loads(zlib.decompress(data).decode(“utf8”))
File “/usr/lib/python2.7/json/init.py”, line 339, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python2.7/json/decoder.py”, line 380, in raw_decode
obj, end = self.scan_once(s, idx)
MemoryError
When I use
pip3 install Kolibri
The installation is successful but then I get the following error when I try to start Kolibri:
kolibri start
Traceback (most recent call last):
File “.local/bin/kolibri”, line 7, in
from kolibri.utils.cli import main
File “/home/pi/.local/lib/python3.5/site-packages/kolibri/utils/cli.py”, line 22, in
from . import server # noqa
File “/home/pi/.local/lib/python3.5/site-packages/kolibri/utils/server.py”, line 6, in
import cherrypy
File “/home/pi/.local/lib/python3.5/site-packages/kolibri/dist/cherrypy/init.py”, line 64, in
from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect
File “/home/pi/.local/lib/python3.5/site-packages/kolibri/dist/cherrypy/_cperror.py”, line 118, in
from cgi import escape as _escape
File “/usr/lib/python3.5/cgi.py”, line 42, in
import html
File “/home/pi/.local/lib/python3.5/site-packages/kolibri/dist/html/init.py”, line 7, in
raise ImportError('This package should not be accessible on Python 3. ’
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.