No module named 'adsk'

No module named 'adsk'

Anonymous
Not applicable
1,387 Views
3 Replies
Message 1 of 4

No module named 'adsk'

Anonymous
Not applicable

Hi There!!!

 

I'm trying to use Python with visual studio, but I get I get the error:

ModuleNotFoundError: No module named 'adsk'

 

I tested the troubleshooting mention here:

Python cannot import Adsk.core module 

 

import sys
sys.path.append("C:/Users/xx/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Python/defs")

import adsk.core, adsk.fusion, adsk.cam, traceback

 

But I just keep getting the same error.

 

Looking forward for your advice,

Thanks

 

0 Likes
1,388 Views
3 Replies
Replies (3)
Message 2 of 4

kandennti
Mentor
Mentor

Hi @Anonymous .

 

Try it in VS Code instead of visual studio.

Yes, there are warnings, but I don't think it will affect execution or development.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Sry I mean Visual studio code.

Well you are right, but it takes few more clicks and moves.

Idealy I should be able to press run  on VSC and see the changes on F360.

Do you know is this is possible?

0 Likes
Message 4 of 4

Anonymous
Not applicable

Sry I mean Visual studio code.

Well you are right, but it takes few more clicks and moves.

Idealy I should be able to press run  on VSC and see the changes on F360.

Do you know is this is possible?

0 Likes