python 2.6

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #1
is this going to be merged anytime soon?

the reason i ask, is it includes pysqlite and some other modules not in 2.4.

it would save having to include these packages for each script.

if not could xbmc include a few popular packages? keeping a copy for each platform is difficult.

PIL,
pyqlite (in 2.6)
pysvn,
elementtree (in 2.6)

there is also an issue putting packages under system/python/Lib

some pakages like pysqlite do not work with the special:// paths that are in the path environment. so if you want packages to work there you need to _P() them.

also a userdata/system/python/Lib folder and addition to path would be useful. needs to be _P() though.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
queeup Offline
Posting Freak
Posts: 762
Joined: Feb 2009
Reputation: 16
Post: #2
I agree with you on userdata folder.. http://trac.xbmc.org/ticket/7246

I really want to see lxml also... lxml module is very difficult for each platform.
find quote
s7mx1 Offline
Senior Member
Posts: 264
Joined: Dec 2007
Reputation: 4
Post: #3
I submitted a python2.6 path long time ago for linux. I think malloc64 is working on a separate branch here:

http://trac.xbmc.org/browser/branches/python26

Though the latest change was made more than 3 month ago.
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,478
Joined: Feb 2008
Reputation: 64
Post: #4
Last thing I remember was something about python2.6 not being able to be unloaded as python2.5/python2.4 are.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #5
The question is, what do we gain my unloading python all the damn time?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
davilla Offline
Retired-Team-XBMC Developer
Posts: 11,478
Joined: Feb 2008
Reputation: 64
Post: #6
elupus Wrote:The question is, what do we gain my unloading python all the damn time?

memory footprint on resource limited platforms that don't have swap.


MediaInfo : http://mediainfo.sourceforge.net/
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #7
Right.. Well one issue i ran into is that we are not refcounting dlopen of sub dll's properly.

Python wasn't unloading at all after some scripts. Due to some module dll not getting unloaded. I'll see if i can get that working. I have a hack for this on windows, but i think a complete fix might be needed.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote
elupus Offline
Team-XBMC Developer
Posts: 3,799
Joined: Mar 2004
Reputation: 3
Post: #8
Oh and ssl i fucked with this unloading. Both libcurl and python register global callback functions which reside in their respective dll's. When one of them get's unloaded, the other segfaults :/

Maybe we could register our own global functions and intercept all calls to the real ones.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]
find quote