bite-your-idols/Gamestarter

LE9.8 testbuilds

ezar opened this issue · 7 comments

ezar commented

Actual python script doesn't works using LE9.8 because system uses python 3.x
Regards.

2019-11-10 21:05:57.420 T:2991 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TabError'>
Error Contents: inconsistent use of tabs and spaces in indentation (addon.py, line 100)
File "/storage/.kodi/addons/game.retroarch/addon.py", line 100
os.system("PROJECTPI=$(head -c 4 /etc/release) && if [[ $PROJECTPI == 'RPi4' ]] ; then mv -n /storage/.kodi/addons/game.retroarch/game.retroarch-RPi /storage/.kodi/addons/game.retroarch/game.retroarch-RPi2 && mv -n /storage/.kodi/addons/game.retroarch/game.retroarch-RPi4 /storage/.kodi/addons/game.retroarch/game.retroarch-RPi ; fi")
^
TabError: inconsistent use of tabs and spaces in indentation
-->End of Python script error report<--

try:
import urlparse
except ImportError:
import urllib.parse as urlparse

And fix some identations. Before that works using LE9.8 :)

Originally posted by @ezar in #135 (comment)

I need to get some free time to take a look to this

It says problem is in tab indentation at line 100

can you please try editing addon.py file and removing both lines 99 and 100.
if you use RPi4 you have to rename manually "game.retroarch-RPi4" to "game.retroarch-RPi"

ezar commented

Here is the corrected file -->
addon.py.zip

thanks! is this file working ok both in LE testbuilds and LE 9.2 official?

ezar commented

yes

thanks a lot for your collaboration!
41703b1