APScheduler problem in pythonista
-
Hello everyone,
I encounter a problem when I am using APScheduler in pythonista.
It returned an error :Documents/site-packages/apscheduler/init.py", line 3, in <genexpr>
version_info = tuple(int(x) if x.isdigit() else x for x in parsed_version.public.split('.'))
TypeError: _trunc _ returned non-Integral (type OmniClass)My code runs perfectly on my PC but gets stuck on pythonista.
Any idea about how to fix it?
Appreciate any suggestion.
-
You might put
print(parsed_version.public)
ABOVE line 3 to see what gets printed.
You might post an issue at https://github.com/agronholm/apscheduler/issues
-
OmniClass
is a stub class defined in StaSh pip. So maybe somehow it was getting in the way. Try restart Pythonista, i.e. swipe up to remove from task list.