brysonreece / Stream

Torrent streaming for XBMC
GNU General Public License v3.0
79 stars 17 forks source link

Ouya SOCKS5 problem still? #20

Closed gazugafan closed 10 years ago

gazugafan commented 10 years ago

Thanks for all your hard work to get this working. It looks like there might still be a problem with SOCKS5 on the Ouya, though. With SOCKS5 disabled, everything seems to work fine. After enabling SOCKS5, I get a script failure when trying to play a movie. Here's the relevant log...

23:16:54 T:1827206848   DEBUG: [xbmcswift2] Handling incoming request for /play/magnet%3A%3Fxt%3Durn%3Abtih%3Aa74fc04f85eb8a697be82feb0687edf83e88802d%26dn%3DCloudy%2Bwith%2Ba%2BChance%2Bof%2BMeatballs%2B2%26tr%3Dhttp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce%26tr%3Dudp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce%26tr%3Dudp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.yify-torrents.com%2Fannounce
23:16:54 T:1827206848  NOTICE: [xbmcswift2] Request for "/play/magnet%3A%3Fxt%3Durn%3Abtih%3Aa74fc04f85eb8a697be82feb0687edf83e88802d%26dn%3DCloudy%2Bwith%2Ba%2BChance%2Bof%2BMeatballs%2B2%26tr%3Dhttp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce%26tr%3Dudp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce%26tr%3Dudp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.yify-torrents.com%2Fannounce" matches rule for function "play"
23:16:54 T:1827206848 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
23:16:54 T:1827206848  NOTICE: [plugin.video.stream] Enabled magnet booster
23:16:54 T:1827206848 WARNING: [xbmcswift2] No converter provided, unicode should be used, but returning str value
23:16:54 T:1827206848 WARNING: Previous line repeats 2 times.
23:16:54 T:1827206848  NOTICE: [plugin.video.stream] Download path filesytem is fuse
23:16:54 T:1827206848  NOTICE: [plugin.video.stream] Starting torrent2http...
23:16:54 T:1827206848  NOTICE: Traceback (most recent call last):
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/addon.py", line 7, in <module>
23:16:54 T:1827206848  NOTICE:     plugin.run()
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/xbmcswift2/plugin.py", line 334, in run
23:16:54 T:1827206848  NOTICE:     items = self._dispatch(self.request.path)
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/xbmcswift2/plugin.py", line 306, in _dispatch
23:16:54 T:1827206848  NOTICE:     listitems = view_func(**items)
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/magnet.py", line 57, in play
23:16:54 T:1827206848  NOTICE:     TorrentPlayer().init(uri).loop()
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/player.py", line 189, in loop
23:16:54 T:1827206848  NOTICE:     with closing(torrent2http.start(**self.torrent2http_options)) as t2h_instance:
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/torrent2http.py", line 74, in start
23:16:54 T:1827206848  NOTICE:     bind_port = find_free_port()
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/torrent2http.py", line 64, in find_free_port
23:16:54 T:1827206848  NOTICE:     s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
23:16:54 T:1827206848  NOTICE:   File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/socks.py", line 212, in __init__
23:16:54 T:1827206848  NOTICE:     if type not in socket.SOCK_STREAM or socket.SOCK_DGRAM:
23:16:54 T:1827206848  NOTICE: TypeError: argument of type 'int' is not iterable
23:16:54 T:1827206848   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: argument of type 'int' is not iterable
                                            Traceback (most recent call last):
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/addon.py", line 7, in <module>
                                                plugin.run()
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/xbmcswift2/plugin.py", line 334, in run
                                                items = self._dispatch(self.request.path)
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/xbmcswift2/plugin.py", line 306, in _dispatch
                                                listitems = view_func(**items)
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/magnet.py", line 57, in play
                                                TorrentPlayer().init(uri).loop()
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/player.py", line 189, in loop
                                                with closing(torrent2http.start(**self.torrent2http_options)) as t2h_instance:
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/torrent2http.py", line 74, in start
                                                bind_port = find_free_port()
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/torrent2http.py", line 64, in find_free_port
                                                s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
                                              File "/storage/sdcard0/Android/data/org.xbmc.xbmc/files/.xbmc/addons/Stream-master/resources/site-packages/stream/socks.py", line 212, in __init__
                                                if type not in socket.SOCK_STREAM or socket.SOCK_DGRAM:
                                            TypeError: argument of type 'int' is not iterable
                                            -->End of Python script error report<--
23:16:54 T:1637671408   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
23:16:54 T:1637671408   DEBUG: Window DialogKaiToast.xml was already loaded
23:16:54 T:1637671408   DEBUG: Alloc resources: 0.02m
23:16:54 T:1827206848    INFO: Python script stopped
23:16:54 T:1827206848   DEBUG: Thread LanguageInvoker 1827206848 terminating
23:16:54 T:1637671408   DEBUG:  bool XFILE::CPluginDirectory::WaitOnScriptResult(const CStdString&, int, const CStdString&, bool) - plugin exited prematurely - terminating
23:16:54 T:1637671408   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.stream/play/magnet%3A%3Fxt%3Durn%3Abtih%3Aa74fc04f85eb8a697be82feb0687edf83e88802d%26dn%3DCloudy%2Bwith%2Ba%2BChance%2Bof%2BMeatballs%2B2%26tr%3Dhttp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce%26tr%3Dudp%3A%2F%2Fopen.demonii.com%3A1337%2Fannounce%26tr%3Dudp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce%26tr%3Dudp%3A%2F%2Ftracker.yify-torrents.com%2Fannounce]
23:16:54 T:1637671408   DEBUG: Playlist Player: no more playable items... aborting playback

I'm on an Ouya, XBMC 13.1, and downloaded Stream from source today. Thanks for taking a look!

brysonreece commented 10 years ago

Should be fixed now. Thanks!