Skip to content
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

LE9.8 testbuilds #141

Closed
ezar opened this issue Dec 7, 2019 · 7 comments
Closed

LE9.8 testbuilds #141

ezar opened this issue Dec 7, 2019 · 7 comments

Comments

@ezar
Copy link

ezar commented Dec 7, 2019

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

@bite-your-idols
Copy link
Owner

bite-your-idols commented Dec 7, 2019

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)

@bite-your-idols
Copy link
Owner

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

@bite-your-idols
Copy link
Owner

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
Copy link
Author

ezar commented Dec 7, 2019

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

@bite-your-idols
Copy link
Owner

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

@ezar
Copy link
Author

ezar commented Dec 7, 2019

yes

@bite-your-idols
Copy link
Owner

thanks a lot for your collaboration!
41703b1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants