Solved Error Contents: No module named sqlite3
#1
Hello,
On my computer with openSUSE Leap 15.1, I installed kodi 18.6 (from packman repository) and then addon catch-up tv more from kodi's repository
but the addon don't work, in kodi.log :
Code:
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named sqlite3
I installed the package sqlite3 and others with sqlite in name but the addon don't work with this error
thank you

kodi.log :
https://paste.kodi.tv/gazukuzicu.kodi
Reply
#2
You need python-sqlite3 or python-sqlite , whatever your distro package name may be, this is better asked on your distro forums.
On Linux Kodi makes use of distro-provided python, thus it's distro problem not Kodi,
Kodi itself does not need python sqlite3 module, a third party addon you installed requires it.

Refer to your distro support forums.
Reply
#3
Ok thank you Smile
Reply
#4
News install today on Leap 15.1
It’s ok now. Kodi and addon works well.
I think I forgot a package. It’s solved Wink
Reply
#5
Thread marked solved.
Reply
#6
(2020-04-22, 23:24)Klojum Wrote: Thread marked solved.

Hi, i have same problem today with latest kodi from git on GNU/Linux gentoo.

Kodi (19.0-ALPHA1 (18.9.701) Git:20200701-9897aa7a1d-dirty). Platform: Linux x86 64-bit
Kodi compiled 2020-07-02 by GCC 9.3.0 for Linux x86 64-bit version 5.4.0 (328704)
Running on Gentoo/Linux 0.0, kernel: Linux x86 64-bit version 5.6.16-gentoo
Code:
emerge --info =dev-lang/python-3.7.7-r2 |grep sqlite
USE="bluetooth gdbm ipv6 ncurses readline sqlite ssl xml -build -examples -hardened -libressl -test -tk -wininst" ABI_X86="(64)"

Code:
2020-07-02 16:14:55.143 T:3895  WARNING <general>: script.module.python.twitch: API version |V5| is deprecated, update to |Helix| by |TBD|
2020-07-02 16:14:55.406 T:3896    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                   - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                  Error Type: <class 'ModuleNotFoundError'>
                                                  Error Contents: No module named 'sqlite3'
                                                  Traceback (most recent call last):
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/startup.py", line 11, in <module>
                                                      from youtube_plugin.kodion import service
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/__init__.py", line 21, in <module>
                                                      from .impl import Context
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/__init__.py", line 12, in <module>
                                                      from .xbmc.xbmc_context import XbmcContext as Context
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_context.py", line 24, in <module>
                                                      from ..abstract_context import AbstractContext
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/abstract_context.py", line 17, in <module>
                                                      from ..utils import *
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/__init__.py", line 14, in <module>
                                                      from .search_history import SearchHistory
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/search_history.py", line 13, in <module>
                                                      from .storage import Storage
                                                    File "/home/moi/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/utils/storage.py", line 18, in <module>
                                                      import sqlite3
                                                  ModuleNotFoundError: No module named 'sqlite3'
                                                  -->End of Python script error report<--


Full log here

sqlite3 work fine on my installed python 3.7. tested with script from: https://docs.python.org/3/library/sqlite3.html

any idea how to solve this issue ?

Thanks.
Reply
#7
Fixed, found on my OS another version of python (python-3.8.2-r2) did not have sqlite support.
there is no information in the Kodi logs to know which python vesrion it uses. (default python on mys OS is 3.7)

Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Error Contents: No module named sqlite30