open-cravat icon indicating copy to clipboard operation
open-cravat copied to clipboard

python 3.12 module imp deprecated

Open Kaddea opened this issue 1 year ago • 1 comments

Just a short info that the module "imp" is deprecated in python 3.12 (ubuntu 24.04 noble).

"import imp" in site-packages/cravat/cravat_web.py (line 10) can be removed (importlib is imorted later anyway)

and in site-packages/cravat/webresult/webresult.py (line 6) it needs to be extendet to "import importlib"

there is still one syntax warning site-packages/cravat/webresult/webresult.py:270: SyntaxWarning: invalid escape sequence '_' q = 'select * from info where colkey not like "_%" escape "\"'

but it's running fine so far :)

Kaddea avatar Feb 28 '24 08:02 Kaddea

Ah, we've been building on 3.11. We'll test it out on 3.12. Thanks for the catch!

kmoad avatar Feb 29 '24 19:02 kmoad