Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script python error #6

Open
Emmanuele75 opened this issue Jul 1, 2023 · 4 comments
Open

Script python error #6

Emmanuele75 opened this issue Jul 1, 2023 · 4 comments

Comments

@Emmanuele75
Copy link

Hi, great project but I get this error:

C:\Users\titan\Downloads\diy-spacemouse-main\diy-spacemouse-main\Code\Fusion360 Add-in\Send Home>SendHome.py
Traceback (most recent call last):
File "C:\Users\titan\Downloads\diy-spacemouse-main\diy-spacemouse-main\Code\Fusion360 Add-in\Send Home\SendHome.py", line 1, in
import adsk.core, adsk.fusion, adsk.cam, traceback
ModuleNotFoundError: No module named 'adsk'

How can I solve this problem?
Thanks!

@Kudzmat
Copy link

Kudzmat commented Jul 1, 2023

This error occurs when you're trying to access or use a module that cannot be found, which means it's probably not installed on your computer.

Try typing 'pip install adsk' in your terminal first. Also, make sure you don't misspell the name of the module when installing. I hope this helps.

@Emmanuele75
Copy link
Author

Thanks for the suggestion, this issue has been resolved.
Anyway I can't start the script, I get this error:

Failed:
Traceback (most recent call last):
File "C:/Users/emman/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/AddIns/SpaceMouse/SpaceMouse.py", line 18, in run
buttonSample = cmdDefs.addButtonDefinition('HomeViewButton',
File "C:\Users/emman/AppData/Local/Autodesk/webdeploy/production/dbacedcc6dabacdc41406088a765962c5f1923ad/Api/Python/packages\adsk\core.py", line 5939, in addButtonDefinition
return _core.CommandDefinitions_addButtonDefinition(self, *args)
RuntimeError: 3 : the relative resourceFolder path not found

@LoganFraser
Copy link

LoganFraser commented Jul 8, 2023

You have a C:\ then most of the rest are /, then more , that's probably the issue.

@blasterlabs
Copy link

blasterlabs commented Jul 27, 2023

Anyway I can't start the script, I get this error:

Failed: Traceback (most recent call last): File "C:/Users/emman/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/AddIns/SpaceMouse/SpaceMouse.py", line 18, in run buttonSample = cmdDefs.addButtonDefinition('HomeViewButton', File "C:\Users/emman/AppData/Local/Autodesk/webdeploy/production/dbacedcc6dabacdc41406088a765962c5f1923ad/Api/Python/packages\adsk\core.py", line 5939, in addButtonDefinition return _core.CommandDefinitions_addButtonDefinition(self, *args) RuntimeError: 3 : the relative resourceFolder path not found

Hi, have you solve it? I've the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants