io_pdx_mesh
io_pdx_mesh copied to clipboard
No module named 'imp' (Blender)
Describe the bug Clicking on the checkbox to enable the plugin brings up a message to state that no module named 'imp' is available.
To Reproduce
- Download recent release blender-io_pdx_mesh.zip (release 0.91)
- Do usual 'install from disk' from Blender preferences
- IO PDX Mesh will be greyed out. When clicking on checkbox, it will show the error message.
Software (please complete the following information): Arch Linux, Blender 4.2.1 LTS
Additional context N/A
Screenshots
Officially Blender 4.2.1 runs with Python 3.11, except on Linux I think it uses the systems Python install instead of bundling one with Blender.
The imp module was removed in Python 3.12.
I can definitely fix this, but I'd be interested to know if I'm right about your setup - do you have Python 3.12 installed and does Blender use it? (you can open the Python console in Blender to verify that)
Hi Ross, thanks for your quick response. I literally switched to Windows 11 just yesterday so my Arch Linux installation is gone now, which makes things a bit awkward as I can't fully confirm for sure what my system Python version is! However I am 99% sure it was 3.12.* as I did install it via the main Arch repos when I set up the system earlier this year.
No problem! Thanks for getting back to me.
I seem to be running into the same error
Nobara Linux 41 Blender 4.3.2
The version of python that I have is 3.13.2
by modifying the __init__.py by replacing from imp import reload to from importlib import reload, it work, I think just make a basic check for python 3.12 or supperior can be done to fix it
(I just follow https://docs.python.org/3/whatsnew/3.12.html#whatsnew312-removed-imp)