cytech / weather.wundergroundpws

A Kodi weather addon for Weather Underground personal weather station users
GNU General Public License v2.0
4 stars 0 forks source link

No module named lib2to3.pgen2.parse #3

Open ruckusdc opened 5 years ago

ruckusdc commented 5 years ago

Hi,

Thank you so much for doing this for us PWS owners, I really want to use this addon. However I get the following error in my log file... Error Type: <type 'exceptions.ImportError'> Error Contents: No module named lib2to3.pgen2.parse Traceback (most recent call last): File "/storage/.kodi/addons/weather.wundergroundpws/default.py", line 43, in from past.utils import old_div File "/storage/.kodi/addons/script.module.future/libs/past/init.py", line 88, in from past.translation import install_hooks as autotranslate File "/storage/.kodi/addons/script.module.future/libs/past/translation/init.py", line 41, in from lib2to3.pgen2.parse import ParseError ImportError: No module named lib2to3.pgen2.parse -->End of Python script error report<--

cytech commented 5 years ago

What version of Kodi ? Did you install the addon thru Kodi - System - Addons - Install from Zip File ?

ruckusdc commented 5 years ago

Libreelec leia 18.1 and yeah i downloaded the zip and installed it like that

cytech commented 5 years ago

can you check your .kodi/addons directory and see if there is an addon named "script.module.future". If not it needs to be installed from "https://mirrors.kodi.tv/addons/leia/script.module.future/script.module.future-0.16.0.4.zip" the dependency should have been installed when you installed the weather.wundergroundpws addon.

ruckusdc commented 5 years ago

Hi.

Again thanks for your support and help. "script.module.future" was installed but I reinstalled it from the link you provided to see if it was missing something or out of date.

Sorry, same exact error message and I did reboot the box too.

cytech commented 5 years ago

it looks like libelec does not include the python lib2to3 module https://forum.libreelec.tv/thread/14994-problem-with-python-lib2to3-missing-google-music-exp/

ruckusdc commented 5 years ago

ok well that sucks. thanks for your efforts.

Megachip commented 5 years ago

can you check your .kodi/addons directory and see if there is an addon named "script.module.future". If not it needs to be installed from "https://mirrors.kodi.tv/addons/leia/script.module.future/script.module.future-0.16.0.4.zip" the dependency should have been installed when you installed the weather.wundergroundpws addon. Can you fix the depency? running into the same problem:

2019-05-27 17:59:28.645 T:959656816   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 lib2to3.pgen2.parse
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/weather.wundergroundpws/default.py", line 43, in <module>
                                                from past.utils import old_div
                                              File "/storage/.kodi/addons/script.module.future/libs/past/__init__.py", line 88, in <module>
                                                from past.translation import install_hooks as autotranslate
                                              File "/storage/.kodi/addons/script.module.future/libs/past/translation/__init__.py", line 41, in <module>
                                                from lib2to3.pgen2.parse import ParseError
                                            ImportError: No module named lib2to3.pgen2.parse
                                            -->End of Python script error report<--

version="0.16.0.4" is installed :/

Megachip commented 5 years ago

https://forum.kodi.tv/showthread.php?tid=200640&pid=2842804#pid2842804 describes a workaround