Spyder trouble

Spyder trouble

brad.bylls
Collaborator Collaborator
1,102 Views
8 Replies
Message 1 of 9

Spyder trouble

brad.bylls
Collaborator
Collaborator

When I click 'Edit' to work on a script, nothing happens, Spyder does not come up with the script.

Brad Bylls
0 Likes
Accepted solutions (3)
1,103 Views
8 Replies
Replies (8)
Message 2 of 9

Rushikesh.kadam
Autodesk
Autodesk
Accepted solution

@brad.bylls, Spyder is replaced by VS Code in September 2019 release.

Here is a link to one of the post https://forums.autodesk.com/t5/fusion-360-api-and-scripts/python-upgraded-to-3-7-3-and-spyder-replac...

 

---------------------------------------------------------------------------------

If my reply was helpful, please give a "Like" or click the "Accept as Solution" button below (or both).

Regards,

Rushikesh Kadam




Rushikesh Kadam
Senior QA Engineer
Quality Assurance
Autodesk, Inc.


0 Likes
Message 3 of 9

JeromeBriot
Mentor
Mentor

Hello,

 

You can't use Spyder anymore. The official IDE is now Visual Studio Code.
There is also an alternative for PyCharm (see here).

 

0 Likes
Message 4 of 9

brad.bylls
Collaborator
Collaborator

Hi Rushikesh,

Thanks for the update, however, when I debug in VSC I get an error message:

Exception has occurred: ModuleNotFoundError
No module named 'adsk'
This is at line 4:   import adsk.core, adsk.fusion, traceback
Brad Bylls
0 Likes
Message 5 of 9

brad.bylls
Collaborator
Collaborator

Just realized that the script was already in VSC when I got the error message. Fusion was not open.

However, when I go to debug the script from Fusion360. nothing happens.

A dos window pops up for a second and then nothing, no VSC window for debugging.

Do I need to do something in Fusion to set it for VSC?

 

Brad Bylls
0 Likes
Message 6 of 9

Rushikesh.kadam
Autodesk
Autodesk
Accepted solution

@brad.bylls can you try below steps and see if it works:

- Close Fusion and VS Code and launch VS Code independently.

- go to the Extensions tab in VS Code 
- click on the Settings button ⚙ of the Python extension
- select "Install Another Version..."
- select 2019.9.34911

- close VS Code

- Launch Fusion and try to debug a script.

 

You can refer the content under 'Problem debugging Python code' of https://modthemachine.typepad.com/my_weblog/fusion-360/

 

Regards,

Rushikesh Kadam.

 

--------------------------------------------------------------------------

If my reply was helpful, please give a "Like" or click the "Accept as Solution" button below (or both).




Rushikesh Kadam
Senior QA Engineer
Quality Assurance
Autodesk, Inc.


Message 7 of 9

JeromeBriot
Mentor
Mentor
Accepted solution

@Rushikesh.kadam wrote:

- click on the Settings button ⚙ of the Python extension
- select "Install Another Version..."
- select 2019.9.34911

 


Actually, it works with newer versions of the plugin (e.g. 2020.6.91350)

 

Message 8 of 9

brad.bylls
Collaborator
Collaborator

Thank you, that worked.

It is an older version than what I had but . . .

Brad Bylls
0 Likes
Message 9 of 9

brad.bylls
Collaborator
Collaborator

This works also, so I will keep the newer version.

Thank you.

Brad Bylls
0 Likes