Blender3mfFormat icon indicating copy to clipboard operation
Blender3mfFormat copied to clipboard

Win 11 Blender 4.5.3 LTS Python: TypeError: Import3MF

Open liltorchic opened this issue 3 months ago • 6 comments

Fresh install of latest blender version from Steam. Blender 4.5.3 LTS

Downloaded Blender3mfFormat 1.0.2 and installed in addon menu.

File->import -> 3mf

"Python: TypeError: Import3MF.init() takes 1 positional argument but 2 were given"

liltorchic avatar Sep 14 '25 20:09 liltorchic

This worked for me (for 4.5.3 LTS): https://github.com/Ghostkeeper/Blender3mfFormat/issues/77#issuecomment-2759895303

ivesdebruycker avatar Sep 14 '25 20:09 ivesdebruycker

A designer friend of mine reported this issue to me (he knows I'm a developer and I used to work on blender plugins, I've never contributed to this plugin though). So I went to check here and saw this issue open. Just wanted to chime in and say it happened to my friend so this is certainly real. I might take a look later and see if I can fix it

nreyes-dev avatar Sep 30 '25 19:09 nreyes-dev

Hello! I would like to help. I am on blender 4.5.3 LTS, and also get a similar error. I cannot export a 3MF file. "Error: Python: TypeError: Export3MF.init() takes 1 positional argument but 2 were given"

This seems like it should be an easy fix ?

Please forgive, I am completely new to using Github, but am reasonably experienced in Python. I would like to help fix this, if you (honored Ghostkeeper or others) don't have the time. Perhaps someone here could give me a few instructions on how to properly fix. I can make a 'fork' and do it that way, but that seems like not the right way to address this problem.

Again, I am a total newb to Github, but I think I can help, if I just can get a few pointers on how to best/properly do it. Some details: I am running a recent Blender build using VSCode. I'm in the process of creating a Blender addon to generate hyper-structures, just FYI (abemis.com). Of course, I can easily output the fully manifold hyper-structure objects that I generate as STL, but I really feel that 3MF input/output is critical-essential. Any ideas/help is greatly appreciated. Thanks.

tcdoeh avatar Oct 01 '25 13:10 tcdoeh

i have this same issue .. i am going to fork the code to see if i can find a fix .. not that i know much about python

bitbasher avatar Oct 06 '25 13:10 bitbasher

Definitely having the same issue, unfortunately I'm somewhere around licking windows level of proficiency with coding, so tagging for follow-up.

Bruisefest avatar Oct 11 '25 16:10 Bruisefest

Same issue here

As mentioned earlier, a workaround is to delete _init_ methods in these files (as def in #78): ...\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\io_mesh_3mf\import_3mf.py ...\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\io_mesh_3mf\export_3mf.py

I restarted Blender and the import works now

marekburiak avatar Oct 17 '25 07:10 marekburiak

Created a fix using Aistudio if anyone is interested

Blender3mfFormat-1.0.2.zip

Witcher1996 avatar Dec 12 '25 13:12 Witcher1996