Bug 1905

Summary: Python plugin system problem in 10.1-3.fc15
Product: Fedora Reporter: Ilya Taranov <mozinsur>
Component: kodiAssignee: Alex Lancaster <alexl>
Status: RESOLVED FIXED    
Severity: normal CC: benny+bugzilla
Priority: P5    
Version: 15   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description Ilya Taranov 2011-08-23 16:56:03 CEST
XBMC (Platform: Linux (Fedora release 15 (Lovelock), 2.6.40.3-0.fc15.x86_64 x86_64). Built on Apr 19 2011) has a bug in python plugin wrapper.

It does not let YouTube plugin work properly.

I have described this bug and workaround here:
http://forum.xbmc.org/showthread.php?p=870265

And the related bug report is here:
http://trac.xbmc.org/ticket/11584

And related patch is also here:
https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/mediacenter/xbmc/patches/xbmc-10.1-Dharma-335-Python_parse_had_wrong_native_type-0.1.patch
Comment 2 Ilya Taranov 2011-09-02 08:03:31 CEST
I am not really sure, but as far as I understand, the first patch fixes two similar errors. So It is I suppose preferable.
Comment 3 Benny Lyne Amorsen 2011-12-20 01:19:13 CET
Is there any progress on this? It seems like upstream has decided not to fix this until Eden.
Comment 4 Alex Lancaster 2011-12-20 20:32:37 CET
(In reply to comment #3)
> Is there any progress on this? It seems like upstream has decided not to fix
> this until Eden.

I am doing an update for the Dharma (10.1) package for rawhide/f17 using the second patch (the first is against Eden/11.x, so not appropriate).   Once that goes through I'll look into doing test updates for f16 and f15.

After that I plan to soon do an update in the rawhide/f17 branch to pre-Eden/11.x where, hopefully, these patches will be obsolete.
Comment 5 Alex Lancaster 2011-12-20 20:51:01 CET
rawhide/f17 build in the queue: http://buildsys.rpmfusion.org/build-status/job.psp?uid=11095
Comment 6 Alex Lancaster 2011-12-23 16:35:19 CET
A f16 build should be hitting rpmfusion-free-updates-testing soon, for the impatient you can download the build here:

http://buildsys.rpmfusion.org/plague-results/fedora-16-rpmfusion_free/xbmc/10.1-7.fc16/x86_64/

However, I tested the YouTube add-on, and although it loads OK, when I try to browse any of the categories, I get an add-on error.  Since I don't use the add-on very much, I'm not sure if this is better than before.  I suspect that the patch I added was not sufficient, if so, please point me at a newer patch upstream that is against Dharma 10.x (Eden/11.x patches will not apply because the code has diverged too much, as I noted previously in comment #4).
Comment 7 Alex Lancaster 2011-12-28 23:34:57 CET
A new build of the 11.0 Eden-beta1 release is now in rawhide/f17:

http://buildsys.rpmfusion.org/build-status/job.psp?uid=11179

that might fix this Python issue.  Let me know if it addresses the problem and I'll close this bug.  Once this Eden build has been in testing for a while and when we get closer to Eden, I'll push an Eden version to rpmfusion-free-updates-testing for f15 and f16.
Comment 8 Alex Lancaster 2011-12-29 04:16:33 CET
That build failed, this build finished:

http://buildsys.rpmfusion.org/build-status/job.psp?uid=11181
Comment 9 Benny Lyne Amorsen 2011-12-30 00:23:57 CET
(In reply to comment #5)
> rawhide/f17 build in the queue:
> http://buildsys.rpmfusion.org/build-status/job.psp?uid=11095

This one solves the problem for me. In my case it was the DR NU plugin which broke and you need a Danish IP address to test that one.

I will be testing Eden as soon as I can see it in the Rawhide repository.

Great work, thanks!
Comment 10 Alex Lancaster 2012-01-09 19:24:49 CET
(In reply to comment #9)
> (In reply to comment #5)
> > rawhide/f17 build in the queue:
> > http://buildsys.rpmfusion.org/build-status/job.psp?uid=11095
> 
> This one solves the problem for me. In my case it was the DR NU plugin which
> broke and you need a Danish IP address to test that one.
> 
> I will be testing Eden as soon as I can see it in the Rawhide repository.
> 
> Great work, thanks!

Excellent. Let me know if I can close this bug.  Or close it as soon as you test the Eden beta1 version (should now be in the Rawhide repo by now).
Comment 11 Benny Lyne Amorsen 2012-01-11 00:59:43 CET
> Excellent. Let me know if I can close this bug.  Or close it as soon as you
> test the Eden beta1 version (should now be in the Rawhide repo by now).

Tested with xbmc-11.0-0.5.Eden_beta1.fc17.x86_64

I have tested both DR NU and Youtube. Youtube still has the problem "Error getting plugin://plugin.video.youtube/?path=/root/explore/categories&category=%3Fc%3D23&scraper=categories&login=true&" but I believe that is an entirely different problem. DR NU works perfectly.

Strangely enough this version of xbmc seems to not let me upgrade to beta versions of the Youtube plugin (like 2.8.0) but instead offers me the exact same plugin versions I had in Dharma.