GoogleCodeArchives / xbmc-xstream-plugin

Automatically exported from code.google.com/p/xbmc-xstream-plugin
0 stars 0 forks source link

some issues running on OpenELEC with external python-2.6 #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I am the OpenELEC main developer and i am interested to have your script 
running on OpenELEC (www.openelec.tv). OpenELEC uses an external python 2.6. 
The most xbmc addons are working under OpenELEC, but some needs support for 
python-2.6 and newer. is it possible to add this support, because the next or 
any later XBMC version will have a upgraded python too. here my first part of 
the log with failing script:

16:45:32 T:140535969069184 M:1279324160   DEBUG: CGUIMediaWindow::GetDirectory 
(plugin://plugin.video.xstream/)                                              
16:45:32 T:140535969069184 M:1279324160   DEBUG:   ParentPath = 
[addons://sources/video/]                                                       

16:45:32 T:140535722776320 M:1279324160   DEBUG: StartScript - calling plugin 
xStream('plugin://plugin.video.xstream/','0','')                               
16:45:32 T:140535722776320 M:1279324160    INFO: initializing python engine.    

16:45:32 T:140535722776320 M:1279324160   DEBUG: Loading: 
/usr/lib/xbmc/system/python/python26-x86_64-linux.so                            

16:45:32 T:140535722776320 M:1279324160   DEBUG: Python wrapper library linked 
with system Python library                                                    
16:45:32 T:140535722776320 M:1279324160   DEBUG: new python thread created. 
id=3                                                                            

16:45:32 T:140535722776320 M:1279324160   DEBUG: WaitOnScriptResult - waiting 
on the xStream plugin...                                                       
16:45:32 T:140535775860480 M:1279324160   DEBUG: thread start, auto delete: 0   

16:45:32 T:140535775860480 M:1279324160   DEBUG: Python thread: start 
processing                                                                      

16:45:32 T:140535775860480 M:1279324160  NOTICE: -->Python Interpreter 
Initialized<--                                                                  

16:45:32 T:140535775860480 M:1279324160   DEBUG: Process - The source file to 
load is /storage/.xbmc/addons/plugin.video.xstream/default.py                  
16:45:32 T:140535775860480 M:1279324160   DEBUG: Process - Setting the Python 
path to /storage/.xbmc/addons/plugin.video.xstream:/storage/.xbmc/addons/script
16:45:32 T:140535775860480 M:1279324160   DEBUG: Process - Entering source 
directory /storage/.xbmc/addons/plugin.video.xstream                            

16:45:32 T:140535775860480 M:1279324160    INFO: -->Python script returned the 
following error<--                                                            
16:45:32 T:140535775860480 M:1279324160   ERROR: Error Type: <type 
'exceptions.SyntaxError'>                                                       

16:45:32 T:140535775860480 M:1279324160   ERROR: Error Contents: ("Non-ASCII 
character '\\xc3' in file /storage/.xbmc/addons/plugin.video.xstream/about/about
16:45:32 T:140535775860480 M:1279324160   ERROR: Traceback (most recent call 
last):                                                                          
                                              File "/storage/.xbmc/addons/plugin.video.xstream/default.py", line 18, in <module>                             
                                                import xstream                                                                                               
                                              File "/storage/.xbmc/addons/plugin.video.xstream/xstream.py", line 1, in <module>                              
                                                from about.about import cAboutGui                                                                            
                                            SyntaxError: ("Non-ASCII character '\\xc3' in file /storage/.xbmc/addons/plugin.video.xstream/about/about.py on l
16:45:32 T:140535775860480 M:1279324160    INFO: -->End of Python script error 
report<--                                                                     
16:45:32 T:140535775860480 M:1279324160    INFO: Python script stopped          

16:45:32 T:140535775860480 M:1279324160   DEBUG: Thread 140535775860480 
terminating                                                                     

16:45:32 T:140535722776320 M:1279324160   DEBUG:  WaitOnScriptResult - plugin 
exited prematurely - terminating                                               
16:45:32 T:140535969069184 M:1279324160   ERROR: GetDirectory - Error getting 
plugin://plugin.video.xstream/          
16:45:32 T:140535969069184 M:1279324160   ERROR: 
CGUIMediaWindow::GetDirectory(plugin://plugin.video.xstream/) failed 
16:45:32 T:140535969069184 M:1279324160   DEBUG: CGUIMediaWindow::GetDirectory 
(addons://sources/video/)                                                     
16:45:32 T:140535969069184 M:1279324160   DEBUG:   ParentPath = []              

16:45:32 T:140535759075072 M:1279324160   DEBUG: thread start, auto delete: 0   

16:45:32 T:140535759075072 M:1279324160 WARNING: Create - Unsupported 
protocol(script) in script://                                                   

16:45:32 T:140535759075072 M:1279324160   DEBUG: Thread 140535759075072 
terminating                                                                     

16:45:32 T:140535969069184 M:1279324160   DEBUG: python thread 3 destructed   

greetings

Stephan

Original issue reported on code.google.com by stephan....@gmail.com on 16 Jan 2011 at 3:55

GoogleCodeExporter commented 9 years ago
the problem is a wrong characterset.

i fix it :)

Original comment by ste...@softberg.de on 20 Jan 2011 at 7:52

GoogleCodeExporter commented 9 years ago
commit: r86

pls. test again

Original comment by ste...@softberg.de on 20 Jan 2011 at 7:55

GoogleCodeExporter commented 9 years ago
Hi, this fixes the first part, thanks.

the next one:

893440 M:1412780032   DEBUG: Python thread: start processing                    

893440 M:1412653056  NOTICE: -->Python Interpreter Initialized<--               

893440 M:1412653056   DEBUG: Process - The source file to load is 
/storage/.xbmc/addons/plugin.video.xstream/default.py                           

893440 M:1412653056   DEBUG: Process - Setting the Python path to 
/storage/.xbmc/addons/plugin.video.xstream:/storage/.xbmc/addons/script.module.s
implejson/l
893440 M:1412653056   DEBUG: Process - Entering source directory 
/storage/.xbmc/addons/plugin.video.xstream                                      

893440 M:1412268032    INFO: -->Python script returned the following error<--   

893440 M:1412268032   ERROR: Error Type: <type 'exceptions.SyntaxError'>        

893440 M:1412268032   ERROR: Error Contents: ("Non-ASCII character '\\xca' in 
file /storage/.xbmc/addons/plugin.video.xstream/resources/lib/gui/hoster.py on 
893440 M:1412268032   ERROR: Traceback (most recent call last):                 

                          File "/storage/.xbmc/addons/plugin.video.xstream/default.py", line 18, in <module>                                                 
                            import xstream                                                                                                                   
                          File "/storage/.xbmc/addons/plugin.video.xstream/xstream.py", line 3, in <module>                                                  
                            from resources.lib.gui.hoster import cHosterGui                                                                                  
                        SyntaxError: ("Non-ASCII character '\\xca' in file /storage/.xbmc/addons/plugin.video.xstream/resources/lib/gui/hoster.py on line 41,
893440 M:1412268032    INFO: -->End of Python script error report<--            

893440 M:1412141056    INFO: Python script stopped                         

after fixing this issue manually too, i can see the list with the hosters and 
entrys and the script gives fails with:

22:10:13 T:140611281725184 M:1408016384   DEBUG: Process - The source file to 
load is /storage/.xbmc/addons/plugin.video.xstream/default.py                  
22:10:13 T:140611281725184 M:1408016384   DEBUG: Process - Setting the Python 
path to /storage/.xbmc/addons/plugin.video.xstream:/storage/.xbmc/addons/script
22:10:13 T:140611281725184 M:1408016384   DEBUG: Process - Entering source 
directory /storage/.xbmc/addons/plugin.video.xstream                            

22:10:13 T:140611281725184 M:1408016384  NOTICE:        [PLUGIN] xStream: load 
site kino_to and call function parseMovieEntrySite                            
22:10:14 T:140611476277376 M:1408008192   DEBUG: ------ Window Init 
(DialogBusy.xml) ------                                                         

22:10:15 T:140611273332480 M:1408016384    INFO: Loading skin file: 
DialogProgress.xml                                                              

22:10:15 T:140611273332480 M:1408016384   DEBUG: ------ Window Init 
(DialogProgress.xml) ------                                                     

22:10:15 T:140611476277376 M:1408016384   DEBUG: LIRC: Update - NEW at 
6234865:160 0 KEY_OK_UP devinput (KEY_OK_UP)                                    

22:10:15 T:140611476277376 M:1408016384   DEBUG: ------ Window Deinit 
(DialogKaiToast.xml) ------                                                     

22:10:15 T:140611476277376 M:1408016384   DEBUG: ------ Window Deinit 
(DialogBusy.xml) ------                                                         

22:10:45 T:140611476277376 M:1408032768   DEBUG: SECTION:UnloadDelayed(DLL: 
special://xbmcbin/system/ImageLib-x86_64-linux.so)                              

22:10:45 T:140611476277376 M:1408032768   DEBUG: Unloading: 
ImageLib-x86_64-linux.so                                                        

22:10:53 T:140611281725184 M:1408045056    INFO: -->Python script returned the 
following error<--                                                            
22:10:53 T:140611281725184 M:1408045056   ERROR: Error Type: <class 
'urllib2.URLError'>                                                             

22:10:53 T:140611281725184 M:1408045056   ERROR: Error Contents: <urlopen error 
[Errno 2] temporary failure in name resolution.>                             
22:10:53 T:140611281725184 M:1408045056   ERROR: Traceback (most recent call 
last):                                                                          
                                              File "/storage/.xbmc/addons/plugin.video.xstream/default.py", line 19, in <module>                             
                                                xstream.run()                                                                                                
                                              File "/storage/.xbmc/addons/plugin.video.xstream/xstream.py", line 11, in run                                  
                                                parseUrl()                                                                                                   
                                              File "/storage/.xbmc/addons/plugin.video.xstream/xstream.py", line 37, in parseUrl                             
                                                exec "plugin."+ sFunction +"()"                                                                              
                                              File "<string>", line 1, in <module>                                                                           
                                              File "/storage/.xbmc/addons/plugin.video.xstream/sites/kino_to.py", line 459, in parseMovieEntrySite           
                                                sHtmlContent = oRequest.request()                                                                            
                                              File "/storage/.xbmc/addons/plugin.video.xstream/resources/lib/handler/requestHandler.py", line 44, in request 
                                                return self.__callRequest()                                                                                  
                                              File "/storage/.xbmc/addons/plugin.video.xstream/resources/lib/handler/requestHandler.py", line 81, in __callRe
                                                oResponse = urllib2.urlopen(oRequest)                                                                        
                                              File "./Lib/urllib2.py", line 126, in urlopen                                                                  
                                              File "./Lib/urllib2.py", line 391, in open                                                                     
                                              File "./Lib/urllib2.py", line 409, in _open                                                                    
                                              File "./Lib/urllib2.py", line 369, in _call_chain                                                              
                                              File "./Lib/urllib2.py", line 1170, in http_open                                                               
                                              File "./Lib/urllib2.py", line 1145, in do_open                                                                 
                                            URLError: <urlopen error [Errno 2] temporary failure in name resolution.>                                        
22:10:53 T:140611281725184 M:1408045056    INFO: -->End of Python script error 
report<--  

many thanks

Stephan

Original comment by stephan....@gmail.com on 20 Jan 2011 at 8:14

GoogleCodeExporter commented 9 years ago
ok... some (a few videos are working now), will try a bit and will send you a 
xbmc logfile, if you want. 

Original comment by stephan....@gmail.com on 20 Jan 2011 at 8:38

GoogleCodeExporter commented 9 years ago
the hoster.py bug is fixed with revision: r86

Original comment by ste...@softberg.de on 20 Jan 2011 at 9:08

GoogleCodeExporter commented 9 years ago
many thanks... after i quick test... the most things should work now... can you 
make a release too for your repo the next time.

very nice and powerful plugin! :-)

Original comment by stephan....@gmail.com on 20 Jan 2011 at 9:32

GoogleCodeExporter commented 9 years ago
many thanks... after i quick test... the most things should work now... can you 
make a release too for your repo the next time.

very nice and powerful plugin! :-)

Original comment by stephan....@gmail.com on 20 Jan 2011 at 9:33

GoogleCodeExporter commented 9 years ago
many thanks... after i quick test... the most things should work now... can you 
make a release too for your repo the next time.

very nice and powerful plugin! :-)

Original comment by stephan....@gmail.com on 20 Jan 2011 at 9:35

GoogleCodeExporter commented 9 years ago
hy, the next version is released (1.1.1)

:)

Original comment by ste...@softberg.de on 22 Jan 2011 at 8:19

GoogleCodeExporter commented 9 years ago
thanks much, again: nice plugin!

Original comment by stephan....@gmail.com on 22 Jan 2011 at 9:04