NixOS/nixpkgs — pull request #1359 by chongli (2013-12-11 20:18:01+00:00)
Title: Fixed wrapper to include a path to sqlite3 python bindings.

This fixes a problem with runtime errors when calling plugins that make use of the sqlite plugin bindings. Here is an example of one such error:

09:34:15 T:139913009895168 DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/plugin.video.canada.on.demand
09:34:15 T:139913009895168 DEBUG: Instantiating addon using automatically obtained id of "plugin.video.canada.on.demand" dependent on version 2.0 of the xbmc.python api
09:34:15 T:139913009895168 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type:
Error Contents: You cannot use pysqlite2 while depending on version 2.0 of the xbmc.python api. Please use sqlite3 instead.
Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/plugin.video.canada.on.demand/default.py", line 11, in
from channels import *
File "/home/xbmc/.xbmc/addons/plugin.video.canada.on.demand/channels/ctv.py", line 14, in
from pysqlite2 import dbapi2 as sqlite
File "/nix/store/c8vpwbcwg06aa5p0xw6j2plnbrfjhrhw-xbmc-12.2/share/xbmc/addons/script.module.pysqlite/lib/pysqlite2/__init__.py", line 36, in
raise DeprecationWarning("You cannot use pysqlite2 while depending on version " + str(xbmcapiversion) + " of the xbmc.python api. Please use sqlite3 instead.")
DeprecationWarning: You cannot use pysqlite2 while depending on version 2.0 of the xbmc.python api. Please use sqlite3 instead.
-->End of Python script error report<--
09:34:15 T:139913009895168 INFO: Python script stopped