After update, I can't use fusion2urdf

After update, I can't use fusion2urdf

826531725
Explorer Explorer
2,796 Views
11 Replies
Message 1 of 12

After update, I can't use fusion2urdf

826531725
Explorer
Explorer

After update, I can't use fusion2urdf. There is no response after clicking run button. 

syuntoku14/fusion2urdf: A Fusion 360 Script to export URDF (github.com)

0 Likes
Accepted solutions (2)
2,797 Views
11 Replies
Replies (11)
Message 2 of 12

JeromeBriot
Mentor
Mentor

The Python version has been updated to version 3.12 with the latest release of Fusion

 

The fusion2urdf script uses a module that is no longer supported in this version of Python.

 

=> https://docs.python.org/fr/3.11/library/distutils.html

 

Try to contact the author of the script : https://github.com/syuntoku14

 

Message 3 of 12

JeromeBriot
Mentor
Mentor
Accepted solution

@826531725You can fix the problem by yourself.

 

Find the file utils.py in the utils subfolder where the script is located and open it with a text editor.

 

Replace line 12:

 

from distutils.dir_util import copy_tree

 

With:

 

from shutil import copytree

 

 

Replace line 152:

 

copy_tree(package_dir, save_dir)

 

With:

 

copytree(package_dir, save_dir, dirs_exist_ok=True)

 

 

Be careful to respect the indentation in the code.

 

Save the file and try to run the script.

 

 

 

 

Message 4 of 12

JeromeBriot
Mentor
Mentor
Accepted solution

I just saw that there is a PR on the GitHub repo that fixes the problem: https://github.com/syuntoku14/fusion2urdf/pull/84


It's up to the author to merge this into the main code now.

Message 5 of 12

826531725
Explorer
Explorer

perfect solution! Thank you very much for your support

0 Likes
Message 6 of 12

826531725
Explorer
Explorer
perfect solution! Thank you very much for your support
0 Likes
Message 7 of 12

gil.vit
Explorer
Explorer

Thanks for solving this 😃

0 Likes
Message 8 of 12

cb_en_u4are22
Community Visitor
Community Visitor

It worked! Thank you Jerome.

0 Likes
Message 9 of 12

b012210278GF4M7
Observer
Observer

you are a hero

0 Likes
Message 10 of 12

Abinash_Mohanty
Community Visitor
Community Visitor

Hi sir,

Thanks for the solution

I have a issue now does fusion2urdf not support an assembly that has parts import from other design and assembly 

 

What I am doing is I had one assembly then I use that in another design and create the final assembly and then trying to convert that final assembly 

The reason I am doing this way because it's a studica bot, I am trying to replicate as close as possible so got the stl files from their website.

 

Pls if u need to see the .f3z file or anything please let me know-

abinash22mohanty@gmail.com 

Thank you for ur time sir.

0 Likes
Message 11 of 12

sanathtsk
Observer
Observer

not working

 

0 Likes
Message 12 of 12

Diojedit
Community Visitor
Community Visitor

Muchas gracias 🙂

0 Likes