libnfs-python icon indicating copy to clipboard operation
libnfs-python copied to clipboard

Problem with working in python 3.12

Open dr-wut opened this issue 11 months ago • 4 comments

Good day In Python 3.12, support for the imp module was removed and replaced with importlib, which is why the library does not work. Please tell me if you have plans to switch to this module, and if so, when?

dr-wut avatar Dec 29 '24 21:12 dr-wut

Can you please send a pull request with the change

sahlberg avatar Dec 30 '24 06:12 sahlberg

Unfortunately, my qualification as a developer is not high enough to fix this myself. Or do you mean something else?

dr-wut avatar Dec 30 '24 08:12 dr-wut

This appears to be a swig issue - I compiled and installed with swig3.0 in python3.12 and that appears to import ok...

CJCShadowsan avatar May 09 '25 13:05 CJCShadowsan

@sahlberg I'm having the same issue as @dr-wut, but running the make with the current version of swig as @CJCShadowsan said worked for me, too. So probably you could trigger a rebuild for PyPI?

micheleIT avatar Jun 03 '25 13:06 micheleIT