Wolfbeta / seppius-xbmc-repo

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

AniDub plugin failes to work on Kodi in appletv_v2 and MacOSX #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. ApplTV_v2, MacOSX
2. Да;
3. Установить Kodi и в нем установить AniDub;
4. Kodi/XBMC v14
5. Нет

Log:
05:14:01 T:148779008   ERROR: Control 550 in window 10025 has been asked to 
focus, but it can't
05:14:02 T:131543040   ERROR: EXCEPTION Thrown (PythonToCppException) : 
-->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named simplejson
                                            Traceback (most recent call last):
                                              File "/var/mobile/Library/Preferences/Kodi/addons/plugin.video.online.anidub.com/default.py", line 25, in <module>
                                                import simplejson as json
                                            ImportError: No module named simplejson
                                            -->End of Python script error report<--

Удалось починить следующим способом: 
plugin.video.online.anidub.com/default.py
Заменить строку 25:

import simplejson as json

на:

try: import simplejson as json
except ImportError: import json

Также в plugin.video.online.anidub.com/addon.xml в секции:
   <requires> 
не хватает 
   <import addon="script.module.simplejson"/>
но я не уверен что это исправит ошибку.

Original issue reported on code.google.com by Marchenk...@gmail.com on 3 Jan 2015 at 1:26