trackma
trackma copied to clipboard
'FileFinder' object has no attribute 'find_module'
The engine fails to initialize with the error AttributeError: 'FileFinder' object has no attribute 'find_module'
. It happens because it was deprecated, see https://docs.python.org/3/library/pkgutil.html#pkgutil.find_loader.
It can be solved easily changing this:
https://github.com/z411/trackma/blob/e56718b3ebcadc1a3ce73d6530d1c342f8ab80ed/trackma/engine.py#L315
For this:
module = loader.find_spec(name).loader.load_module(name)
I think maybe there's a better way to do it(?) but I don't have much time to check it.