-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kodi 20 and autosubs - kodi crash #50
Comments
i have the same problem due to the attribute error, but i don't know how to fix it. |
A temporary method to start kodi is to delete the plugin directory, in my case: /home/astr/.kodi/addons/service.autosubs |
@Wolvverine @chris2677
Add line
This should fix the error. |
It worked perfectly. I had to change all 3 paths so it looks like this.
__cwd__ = xbmcvfs.translatePath(__addon__.getAddonInfo('path'))
__profile__ = xbmcvfs.translatePath(__addon__.getAddonInfo('profile'))
__resource__ = xbmcvfs.translatePath(os.path.join(__cwd__, 'resources'))
Thanks for your help it's working perfectly now
T
…On Tue, Feb 7, 2023 at 9:48 AM ghostxwheel ***@***.***> wrote:
@Wolvverine <https://github.com/Wolvverine> @chris2677
<https://github.com/chris2677>
I have published #51 <#51>
that should fix this issue. The problem is that I don't really know if this
repository is in active maintenance.
You can try fixing the issue by yourself - by doing these steps:
1. Open file
/home/astr/.kodi/addons/service.autosubs/resources/lib/autosubs.py in
notepad (I am on Windows, for Linux use nano or vi)
2. Change following code in the beginning of the file:
#!/usr/bin/python
import os
import xbmc
import xbmcaddon
Add line import xbmcvfs as new line after import xbmc - the beginning of
your file should look like this:
#!/usr/bin/python
import os
import xbmc
import xbmcvfs
import xbmcaddon
1. Replace the text xbmc.translatePath with xbmcvfs.translatePath -
example:
line that looks like this
__cwd__ = xbmc.translatePath(__addon__.getAddonInfo('path'))
should be now
__cwd__ = xbmcvfs.translatePath(__addon__.getAddonInfo('path'))
This should fix the error.
—
Reply to this email directly, view it on GitHub
<#50 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APDORD4TVDJLROFJ34JB2PTWWKDITANCNFSM6AAAAAAUE5IQBI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ghostxwheel @chris2677 |
I have pulled in the changes, if someone can submit it to Kodi for review @schumi2004 ? |
Sorry for my late response. Let me test and submit it. |
I actually just uninstalled the plugin for the same error and reinstalled today (4/22/2023). The official kodi repo has the plugin at version 1.1.1 as of today. However, my system was still crashing, specifically when I would navigate in my skin to the MOVIES category AND have the "watched" movies flag turned on, it would crash nearly immediately. (If I had the view set to unwatched it did not crash). I could move the "watched" movies so they weren't in the path; it wouldn't crash. Sadly I deleted those subs completely so I cant submit them for review. With debug logging on, and component logging on, the error above was one of them and with the offending sub file removed, everything is ok again. |
I have same error when I install autosubs on android tv |
`2023-01-24 11:10:38.916 T:1118 info : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadChannelEpgs - Loaded '823' EPG channels.
2023-01-24 11:10:48.264 T:1118 info : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadEpgEntries - Loaded '82388' EPG entries.
2023-01-24 11:10:49.359 T:1118 info : AddOnLog: pvr.iptvsimple: pvr.iptvsimple - LoadEPG - EPG Loaded - 17091 (ms)
2023-01-24 11:10:49.406 T:1118 info : AddOnLog: pvr.iptvsimple: Create Starting separate client update thread...
2023-01-24 11:10:49.407 T:1118 info : PVR Manager: Starting
2023-01-24 11:10:55.161 T:1146 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: module 'xbmc' has no attribute 'translatePath'
Traceback (most recent call last):
File "/home/astr/.kodi/addons/service.autosubs/default.py", line 3, in
from resources.lib.autosubs import *
File "/home/astr/.kodi/addons/service.autosubs/resources/lib/autosubs.py", line 14, in
cwd = xbmc.translatePath(addon.getAddonInfo('path'))
AttributeError: module 'xbmc' has no attribute 'translatePath'
-->End of Python script error report<--
2023-01-24 11:11:01.204 T:1144 info : ### Unpause Jumpback 3.0.3 - Starting...
2023-01-24 11:11:01.204 T:1144 info : ### Unpause Jumpback 3.0.3 - Kodi Version: 20.0 (20.0.0) Git:20230115-389e701cb9
2023-01-24 11:11:01.204 T:1144 info : ### Unpause Jumpback 3.0.3 - Addon arguments: ['']
2023-01-24 11:11:01.366 T:1165 info : PVR Manager: Started
`
The text was updated successfully, but these errors were encountered: