Closed TheMineTrooperYT closed 5 months ago
As described here the imp module was removed in Python version 3.12, and i3pystatus __init__.py file includes the module on line 9:
imp
__init__.py
... 5. from i3pystatus.core.settings import SettingsBase 6. from i3pystatus.core.util import formatp, get_module 7. 8. import argparse 9. import imp # <---- 10. import logging ...
A very simple solution as proposed in the aforementioned link is to replace it with importlib:
importlib
... 5. from i3pystatus.core.settings import SettingsBase 6. from i3pystatus.core.util import formatp, get_module 7. 8. import argparse 9. import importlib # <----- 10. import logging ...
Done this on my system, rebuilt the package and it all seems to work.
P.s. this is my first time posting an issue on a public github page, so if I missed some guidelines or smth I apologize.
This is fixed by #865
Closing as the referenced PR has been merged.
As described here the
imp
module was removed in Python version 3.12, and i3pystatus__init__.py
file includes the module on line 9:A very simple solution as proposed in the aforementioned link is to replace it with
importlib
:Done this on my system, rebuilt the package and it all seems to work.
P.s. this is my first time posting an issue on a public github page, so if I missed some guidelines or smth I apologize.