You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solved runtime error
I am experiencing runtime errors for serveral plugins because of line 40 in fritzbox_file_session.py: def load(self) -> None | str:
Might be related to a Python version below 3.10 (3.9.2 is current on Raspberry Pi OS) and can be solved by adding "": def load(self) -> "None | str":
All plugins run smoothly after this change.
[I included this in my pull request]
The text was updated successfully, but these errors were encountered:
ma4nn
changed the title
Runtime Error in fritzbox_file_session.py [Solution included]
Runtime Error in fritzbox_file_session.py (Python 3.9.x)
Dec 12, 2023
Yes you're right, this is because of the (old) Python version from 2021-02. As mentioned in the README the minimum required version currently is 3.10. But if 3.9.2 is the default on PiOS and it is supported until 2025-10, perhaps it makes sense to downgrade the requirement to >= 3.9.2 then.
Thanks @ma4nn,
it seems like this is actually the only line of code that would require 3.10. Running on 3.9.2 perfectly now with the changes suggested.
Installing a newer Python version on a P4 with SSD takes about 1 hour, so downgrading requirements would be quite an option.
Solved runtime error
I am experiencing runtime errors for serveral plugins because of line 40 in fritzbox_file_session.py:
def load(self) -> None | str:
Might be related to a Python version below 3.10 (3.9.2 is current on Raspberry Pi OS) and can be solved by adding "":
def load(self) -> "None | str":
All plugins run smoothly after this change.
[I included this in my pull request]
The text was updated successfully, but these errors were encountered: