pysqlite2 module is deprecated
#1
When I'm using Icefilms, it's slow going from page to page on my ATV2 using the latest official version 10.0-9. Looking at the log it shows an error about a deprecated module pysqlite2. Is there a plan to update this to pysqlite3?

Code:
10:49:53 T:120889344 M: 82583552    INFO: Texture bundle has changed, reloading
10:49:53 T:120889344 M: 82583552   DEBUG: Cleanup - Closed bundle
10:49:54 T:120889344 M: 81743872   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
10:49:58 T:137195520 M: 82116608   ERROR: /private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib/pysqlite2/__init__.py:34: UserWarning: DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.
                                              warnings.warn("DeprecationWarning: the pysqlite2 module is deprecated; please change your script to use sqlite3.")
10:49:58 T:137195520 M: 82116608   ERROR: /var/mobile/Library/Preferences/XBMC/addons/plugin.video.icefilms/default.py:58: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.'
                                              icepath=os.getcwd()
10:49:59 T:137195520 M: 82116608  NOTICE: ==========================PARAMS:
                                            URL: http://www.icefilms.info/tv/series/1/169
                                            NAME: The Office (2005)
                                            MODE: 12
                                            IMDBNUM: None
                                            MYHANDLE: 0
                                            PARAMS: {'url': 'http%3A%2F%2Fwww.icefilms.info%2Ftv%2Fseries%2F1%2F169', 'mode': '12', 'name': 'The+Office+%282005%29'}
10:49:59 T:137195520 M: 82116608  NOTICE: http://www.icefilms.info/tv/series/1/169
10:50:02 T:100913152 M: 82108416   DEBUG: WaitOnScriptResult- plugin returned successfully
10:50:02 T:120889344 M: 82108416   DEBUG: Saving fileitems [plugin://plugin.video.icefilms/?url=http%3A%2F%2Fwww.icefilms.info%2Ftv%2Fseries%2F1%2F169&mode=12&name=The+Office+%282005%29]
Reply
#2
Did you try the new UI updates in nightly post sept 1th

http://forum.xbmc.org/showthread.php?tid=109144
http://forum.xbmc.org/showthread.php?tid=109669

Also some folks have seen response improvements by using skin with less textures/shaders like quartz see http://forum.xbmc.org/showthread.php?tid=110152
Reply
#3
Your correct the update i mentioned above dont effect this issue. I tried the latest nightly and added differing skin to no great effect. I can repro this 4 second delay on the dialogprogress window on even the default youbtube plugin for local directory listing (not internet based). I have logged bug http://trac.xbmc.org/ticket/11980 to track this.
Reply
#4
davilla Wrote:python on atv2 is much slower than on atv1 or windows, not much we can do about it. We see same thing on other CPU limited platforms.

So we are stuck with a slow 4 second extra load time for each addon page on the ATV2? Both the ATV1 and ATV2 have 1GHz processor's. So all 1GHz processor's aren't equal. Is this with just a limitation of ARM processor's?
Reply
#5
BTW: I tried the repro steps on the last offical xbmc release on the ipad1 and it takes 2 sec to load, so it seems to be ATV2 related
Reply
#6
rogerthis Wrote:So we are stuck with a slow 4 second extra load time for each addon page on the ATV2? Both the ATV1 and ATV2 have 1GHz processor's. So all 1GHz processor's aren't equal. Is this with just a limitation of ARM processor's?

The ATV1 processor is much more powerful than the ATV2 processor.
Reply
#7
Can you clarify what part is slow, python start up or interpreter.
If it is start up, could you use a python launcher daemon like http://blogs.gnome.org/johan/2007/01/18/...-launcher/
If it is interpreter, is there guidance of what python libraries we should avoid using in our add-ons due to perf?
Reply

Logout Mark Read Team Forum Stats Members Help
pysqlite2 module is deprecated0