I am Using PyUpdater
to Auto Update my kivy
app. I am stuck at a situation where my app get crashed (after so many warnings in terminal window) when I import pyupdater
's Client class (in my app).
What I know from different sources that (May be I am wrong), it happens due to clash between pyupdater
and kivy
to get logger (as pyupdater
try to get root logger). How can I resolve this issue ? Any help would be highly appreciable.
Note: The app works Ok, if I import pyupdater
before kivy
. But I want to import pyupdater
in another file.
Kivy does (sadly) also take/set the root logger, we hope to change that, but we have to evaluate if that would cause issues.
If you can still import PyUpdater as long as you import it before Kivy, then you can decide to import it in your main module (before kivy), even if you don't use it there, as python modules are singletons (importing them in another place of the same running program gives you access to the same namespace, that is global to the application), that would allow you to import it safely later in another module.
import pyupdater # noqa
import kivy
...
in another module
import pyupdater
should now work.