I’ve reinstalled libpython2.7-minimal package and everything goes well (I can get the http interface for kodi)
(sudo apt install --reinstall libpython2.7-minimal)
Although, the kodi log shows a lot of python errors on almost every plugin… but the service mediacenter is up
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-
-
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: invalid syntax (rfc822.py, line 194)
Traceback (most recent call last):
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/service.py", line 33, in
<module>
import update_service
File "/usr/share/kodi/addons/script.module.osmcsetting.updates/resources/lib/update_ser
vice.py", line 2, in <module>
import apt
File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 26, in <module>
from apt.package import Package
File "/usr/lib/python2.7/dist-packages/apt/package.py", line 36, in <module>
from httplib import BadStatusLine
File "/usr/lib/python2.7/httplib.py", line 80, in <module>
import mimetools
File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
import rfc822
File "/usr/lib/python2.7/rfc822.py", line 194
$ self.status = self.status + '; bad seek'
^
SyntaxError: invalid syntax
-->End of Python script error report<--
10:18:48.349 T:1746924528 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-
-
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: invalid syntax (rfc822.py, line 194)
Traceback (most recent call last):
File "/usr/share/kodi/addons/service.osmc.settings/service.py", line 26, in <module>
import resources.lib.osmc_main as m
File "/usr/share/kodi/addons/service.osmc.settings/resources/lib/osmc_main.py", line 52
, in <module>
import osmc_walkthru
File "/usr/share/kodi/addons/service.osmc.settings/resources/lib/osmc_walkthru.py", lin
e 11, in <module>
import requests
File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 55, in <module>
import urllib3
File "/usr/lib/python2.7/dist-packages/urllib3/__init__.py", line 10, in <module>
from .connectionpool import (
File "/usr/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 31, in <module>
from .connection import (
File "/usr/lib/python2.7/dist-packages/urllib3/connection.py", line 11, in <module>
from httplib import HTTPConnection as _HTTPConnection, HTTPException
File "/usr/lib/python2.7/httplib.py", line 80, in <module>
import mimetools
File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
import rfc822
File "/usr/lib/python2.7/rfc822.py", line 194
$ self.status = self.status + '; bad seek'
^
SyntaxError: invalid syntax
-->End of Python script error report<--
10:18:50.803 T:1728836592 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-
-
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: invalid syntax (rfc822.py, line 194)
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/plugin.video.youtube/startup.py", line 3, in <module>
from resources.lib.kodion.impl import Context
File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/kodion/__init__.py", l
ine 17, in <module>
from requests import api as client
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/__init__.py", line 52
, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/__init__.py"
, line 27, in <module>
from . import urllib3
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/__in
it__.py", line 8, in <module>
from .connectionpool import (
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/conn
ectionpool.py", line 11, in <module>
from .exceptions import (
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/exce
ptions.py", line 2, in <module>
from .packages.six.moves.http_client import (
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/pack
ages/six.py", line 203, in load_module
mod = mod._resolve()
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/pack
ages/six.py", line 115, in _resolve
return _import_module(self.mod)
File "/home/osmc/.kodi/addons/script.module.requests/lib/requests/packages/urllib3/pack
ages/six.py", line 82, in _import_module
__import__(name)
File "/usr/lib/python2.7/httplib.py", line 80, in <module>
import mimetools
File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
import rfc822
File "/usr/lib/python2.7/rfc822.py", line 194
$ self.status = self.status + '; bad seek'
^
SyntaxError: invalid syntax
-->End of Python script error report<--
10:18:50.819 T:1542976496 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-
-
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: invalid syntax (rfc822.py, line 194)
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/weather.yahoo/default.py", line 1, in <module>
import os, sys, socket, urllib2, time
File "/usr/lib/python2.7/urllib2.py", line 94, in <module>
import httplib
File "/usr/lib/python2.7/httplib.py", line 80, in <module>
import mimetools
File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
import rfc822
File "/usr/lib/python2.7/rfc822.py", line 194
$ self.status = self.status + '; bad seek'
^
SyntaxError: invalid syntax
-->End of Python script error report<--
10:18:50.831 T:1763701744 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-
-
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SyntaxError'>
Error Contents: invalid syntax (rfc822.py, line 194)
Traceback (most recent call last):
File "/home/osmc/.kodi/addons/script.cu.lrclyrics/default.py", line 18, in <module>
from scrapertest import *
File "/home/osmc/.kodi/addons/script.cu.lrclyrics/resources/lib/scrapertest.py", line 4
, in <module>
from culrcscrapers.alsong import lyricsScraper as lyricsScraper_alsong
File "/home/osmc/.kodi/addons/script.cu.lrclyrics/resources/lib/culrcscrapers/alsong/ly
ricsScraper.py", line 9, in <module>
import urllib2
File "/usr/lib/python2.7/urllib2.py", line 94, in <module>
import httplib
File "/usr/lib/python2.7/httplib.py", line 80, in <module>
import mimetools
File "/usr/lib/python2.7/mimetools.py", line 11, in <module>
import rfc822
File "/usr/lib/python2.7/rfc822.py", line 194
$ self.status = self.status + '; bad seek'
^
SyntaxError: invalid syntax
-->End of Python script error report<--