xbmc can't load subtitles

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
gasve59 Offline
Junior Member
Posts: 1
Joined: Jul 2009
Reputation: 0
Post: #1
Now with Eden I am not able to download subtitles, I have tried with subtitles from Opensubtitles and SubDivx, but every time I got the next sequence of messages from xbmc.log

18:02:24 T:2943953776 NOTICE: -->Python Interpreter Initialized<--
18:02:35 T:2943953776 ERROR: Exception in python script callback execution
18:02:35 T:2943953776 ERROR: Traceback (most recent call last):
18:02:35 T:2943953776 ERROR: File "/home/xxxxxx/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 489, in onClick
18:02:35 T:2943953776 ERROR: self.Download_Subtitles( self.getControl( SUBTITLES_LIST ).getSelectedPosition() )
18:02:35 T:2943953776 ERROR: File "/home/gvelez/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 302, in Download_Subtitles
18:02:35 T:2943953776 ERROR: self.Extract_Subtitles(zip_subs,sub_lang, gui)
18:02:35 T:2943953776 ERROR: File "/home/xxxxxx/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 370, in Extract_Subtitles
18:02:35 T:2943953776 ERROR: subtitle_file, file_path = self.create_name(zip_entry,sub_filename,subtitle_lang)
18:02:35 T:2943953776 ERROR: File "/home/xxxxxx/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 425, in create_name
18:02:35 T:2943953776 ERROR: return os.path.join(self.tmp_sub_dir, zip_entry), os.path.join(self.sub_folder, file_name)
18:02:35 T:2943953776 ERROR: File "/usr/lib/python2.7/posixpath.py", line 71, in join
18:02:35 T:2943953776 ERROR: path += '/' + b
18:02:35 T:2943953776 ERROR: UnicodeDecodeError
18:02:35 T:2943953776 ERROR: :
18:02:35 T:2943953776 ERROR: 'ascii' codec can't decode byte 0xa4 in position 15: ordinal not in range(128)

I am puzzled about this issue because on Dharma was working pretty good, any help will be welcome

Cheers

Gaston
find quote
ersiko Offline
Junior Member
Posts: 1
Joined: Apr 2012
Reputation: 0
Post: #2
Hi

I have the same problem. It was working for some weeks, but all of the sudden it stopped and now it doesn't work anymore. I didn't change any config, but I tried to fix it reinstalling subtitles plugin, but still got the same.

Subtitles plugin version 3.0.1

Any hint?

11:46:28 T:2834250608 NOTICE: -->Python Interpreter Initialized<--
11:46:31 T:2834250608 ERROR: Error Type: <type 'exceptions.UnicodeDecodeError'>
11:46:31 T:2834250608 ERROR: Error Contents: 'ascii' codec can't decode byte 0xa4 in position 24: ordinal not in range(128)
11:46:31 T:2834250608 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/addons/script.xbmc.subtitles/default.py", line 34, in <module>
if not ui.Search_Subtitles(False):
File "/home/xbmc/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 269, in Search_Subtitles
self.Download_Subtitles(itemCount, True, gui)
File "/home/xbmc/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 302, in Download_Subtitles
self.Extract_Subtitles(zip_subs,sub_lang, gui)
File "/home/xbmc/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 370, in Extract_Subtitles
subtitle_file, file_path = self.create_name(zip_entry,sub_filename,subtitle_lang)
File "/home/xbmc/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 425, in create_name
return os.path.join(self.tmp_sub_dir, zip_entry), os.path.join(self.sub_folder, file_name)
File "/usr/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 24: ordinal not in range(128)
11:46:31 T:8058304 ERROR: ClearBlock: Trying to clear non existent block /home/xbmc/.xbmc/addons/script.xbmc.subtitles
(This post was last modified: 2012-04-14 11:58 by ersiko.)
find quote
generaliroh Offline
Junior Member
Posts: 1
Joined: Apr 2012
Reputation: 0
Post: #3
Hi,

I'm having the same issue here, which started with Eden. Here are the contents of xbmc.log:

Code:
17:51:48 T:2667576128   ERROR: Exception in python script callback execution
17:51:48 T:2667576128   ERROR: Traceback (most recent call last):
17:51:48 T:2667576128   ERROR:   File "/home/diego/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 484, in onClick
17:51:48 T:2667576128   ERROR: self.Download_Subtitles( self.getControl( SUBTITLES_LIST ).getSelectedPosition() )
17:51:48 T:2667576128   ERROR:   File "/home/diego/.xbmc/addons/script.xbmc.subtitles/resources/lib/gui.py", line 314, in Download_Subtitles
17:51:48 T:2667576128   ERROR: self.session_id
17:51:48 T:2667576128   ERROR:   File "/home/diego/.xbmc/addons/script.xbmc.subtitles/resources/lib/services/Subdivx/service.py", line 157, in download_subtitles
17:51:48 T:2667576128   ERROR: mtime = os.stat(os.path.join(tmp_sub_dir, file)).st_mtime
17:51:48 T:2667576128   ERROR:   File "/usr/lib/python2.7/posixpath.py", line 71, in join
17:51:48 T:2667576128   ERROR: path += '/' + b
17:51:48 T:2667576128   ERROR: UnicodeDecodeError
17:51:48 T:2667576128   ERROR: :
17:51:48 T:2667576128   ERROR: 'ascii' codec can't decode byte 0xa2 in position 34: ordinal not in range(128)

Thanks!
find quote
shpanky Offline
Junior Member
Posts: 3
Joined: May 2012
Reputation: 0
Post: #4
Did anyone ever figure this out? I'm having the same problem :-(
find quote
Anger Offline
Junior Member
Posts: 6
Joined: May 2010
Reputation: 0
Post: #5
Hi,
I fix the problem deleting the content of .xbmc/userdata/addon_data/script.xbmc.subtitles/sub_tmp directory.

Cheears

Martin
find quote