Spyder crashing at opening

Spyder crashing at opening

Anonymous
Not applicable
1,877 Views
6 Replies
Message 1 of 7

Spyder crashing at opening

Anonymous
Not applicable

Hi guys,

 

I recently started creating scripts for Fusion using the automatically installed Spyder environment. It worked fine for a couple of scripts, until I used python (2.7) for other applications on my computer (on macOS Sierra).

 

Now I can create and run a basic "new script" (hello world), but when I try to edit it via Fusion, Spyder opens and crashes instantly.

 

Hence some questions please:

- Should I reinstall Spyder properly, and how?

- Can it be linked to a Path issue in Fusion about which python version to use?

- Any tips on how to protect from that in the future?

 

Thanks a lot,

GG

0 Likes
Accepted solutions (1)
1,878 Views
6 Replies
Replies (6)
Message 2 of 7

marshaltu
Autodesk
Autodesk
Accepted solution

Hello,

 

Unfortunately I cannot reproduce the crash you mentioned. To track down the issue, could you please follow the steps and provide some diagnostic information?

 

1. Launch Fusion.

2. Go to File -> View -> Show Text Commands.

3. Switch option to "Py" in right-bottom corner.

4. Execute the codes in command line as blew:

    import sys

    print(sys.version)

    print(sys.path)

 

From the printed information, you should be able to know which Python version/path is using in your Fusion. 

 

You have to uninstall/reinstall Fusion to reinstall Spyder. In addition, please try to remove the folder under "~/.spyder2-py3" and see if it makes difference? Please note the folder is hidden.

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
Message 3 of 7

edwinBN4C3
Participant
Participant

My Spyder blows up good.  I can't open it manually (python spyderlib\spyder.py), by debugging an add-in, nor by editing an add-in.  I've also deleted any .spyder* folder I could find.

 

I'm on macOS Sierra 10.12.6 and:

 

print (sys.version)

3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 08:49:46)

[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]

 

print (sys.path)

['/Applications/Fusion360.app/Contents/Libraries/Neutron/Spyder', '/Applications/Fusion360.app/Contents/MacOS', '/Applications/Fusion360.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.5/site-packages', '/Applications/Fusion360.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python35.zip', '/Applications/Fusion360.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.5', '/Applications/Fusion360.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.5/plat-darwin', '/Applications/Fusion360.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.5/lib-dynload', '/Applications/Fusion360.app/Contents/Libraries/Neutron/', '/Applications/Fusion360.app/Contents/Libraries/Neutron/nspylib', '/Applications/Fusion360.app/Contents/Api/Python/packages', '/Applications/Fusion360.app/Contents/Frameworks/PYLIB_PYPI', '/Users/edwin.wise/Library/Containers/com.autodesk.mas.fusion360/Data/Library/Application Support/Autodesk/Autodesk Fusion 360/MyScripts/', '/Users/edwin.wise/Library/Containers/com.autodesk.mas.fusion360/Data/Library/Application Support/Autodesk/Autodesk Fusion 360/MyScripts/Autorun/', '/Users/edwin.wise/Library/Containers/com.autodesk.mas.fusion360/Data/Library/Application Support/Autodesk/Autodesk Fusion 360/MyScripts/Samples/', '/Users/edwin.wise/Library/Containers/com.autodesk.mas.fusion360/Data/Library/Application Support/Autodesk/Autodesk Fusion 360/MyScripts/ProgramData/', '/Users/edwin.wise/Library/Containers/com.autodesk.mas.fusion360/Data/Library/Application Support/Autodesk/Autodesk Fusion 360/MyScripts/AppData/', '/Users/edwin.wise/Library/Containers/com.autodesk.mas.fusion360/Data/Library/Application Support/Autodesk/Autodesk Fusion 360/MyScripts/ManuallyInstalled/']

 

 

 

0 Likes
Message 4 of 7

edwinBN4C3
Participant
Participant

Literally the next thing I did got Spyder to open ... I decided to debug a sample script that shipped with Fusion versus the one I was trying to edit... and it worked.

 

So then I told Fusion to debug my own script and it came up okay.

 

0 Likes
Message 5 of 7

edwinBN4C3
Participant
Participant

I think my problem is that I put my test script into GitHub.  The error I get when I try to debug it is:

 

>>> Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/Applications/Fusion360.app/Contents/Libraries/Neutron/Spyder/fusionspyderIPC.py", line 185, in debug_script
with open(filename, "rb") as fp:
PermissionError: [Errno 1] Operation not permitted: '/Users/edwin.wise/GitProjects/fusion_plugin_test/TestBox/TestBox.py'

>>>

 

 

0 Likes
Message 6 of 7

marshaltu
Autodesk
Autodesk

Hello,

 

It looked you installed Fusion 360 from MAC app store. The error said you didn't have permission to access the file programmatically. 

 

Please try the following steps and see if it can solve the issue:

1. Remove the test script from "Scripts & AddIn Manager" dialog.

2. Add the script back again by "Scripts & AddIn Manager" dialog.

3. Debug the script.

 

PS: which version of Fusion 360 were you using?

 

Thanks,

Marshal



Marshal Tu
Fusion Developer
>
0 Likes
Message 7 of 7

edwinBN4C3
Participant
Participant

I fixed my problem by letting Fusion install the plugins where it wanted to, and then pointed my version control at THAT.  It was easier than wrestling with weird permissions problems (though I tried to force permissions to fix it, to no effect).

 

I am in Fusion 2.0.3083

0 Likes