ross-g / io_pdx_mesh

Import/Export files for the Clausewitz game engine
GNU General Public License v3.0
81 stars 11 forks source link

No module named 'imp' (Blender) #99

Open geopic opened 5 days ago

geopic commented 5 days ago

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

  1. Download recent release blender-io_pdx_mesh.zip (release 0.91)
  2. Do usual 'install from disk' from Blender preferences
  3. 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 Screenshot_20241001_013608

ross-g commented 4 days ago

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)

geopic commented 3 days ago

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.

ross-g commented 3 days ago

No problem! Thanks for getting back to me.