Hey everyone, novice here.
I was able to get live tracking data into Python without much trouble using the help of a tutorial - yay! However, I'm running into issues now that I'm trying to run this as an Autodesk Fusion 360 Add-in.
My understanding is that Fusion's Python interpreter is running 64-bit only. After some troubleshooting, I took all of the DLL's from the x64 folder (all files from the newly released Orion SDK), including the msvcp DLLs and have them in a "packages" subfolder.
However, I'm getting this error:
>>> Traceback (most recent call last):
File "C:/Users/username/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/AddIns/LeapCAD/LeapCAD.py", line 2, in <module>
from .packages import Leap
File "C:/Users/username/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/AddIns/LeapCAD\packages\Leap.py", line 28, in <module>
LeapPython = swig_import_helper()
File "C:/Users/username/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/AddIns/LeapCAD\packages\Leap.py", line 24, in swig_import_helper
_mod = imp.load_module('LeapPython', fp, pathname, description)
File "C:\Users\username\AppData\Local\Autodesk\webdeploy\production\66ed5e8cf991ec00ace7e4d2638113959b38c0dd\Python\lib\imp.py", line 188, in load_module
return load_dynamic(name, filename, file)
ImportError: DLL load failed: The specified module could not be found.
And here is the import code in my .py:
import sys, adsk.core, adsk.fusion, adsk.cam, traceback
from .packages import Leap
from Leap import CircleGesture, KeyTapGesture, ScreenTapGesture, SwipeGesture
I've been trying to figure this out for a day or two now. I used Dependency Walker to ensure that all my DLL's needed are there. Looking at the error output, it seems like it can't find LeapPython, which is in the "packages" folder I created, as LeapPython.pyd.
Any help or ideas would be appreciated!