Open miguelmaso opened 3 months ago
Depending on the dll
file and the version I'm getting different errors:
PS C:\Users\mmaso\.dotnet\tools> .\GeneratePythonNetStubs.exe --dest-path .\2022\ --target-dlls 'C:\Program Files\Autodesk\Revit 2022\RevitAPIUI.dll'
building stubs...
Generating Assembly: RevitAPIUI, Version=22.0.0.0, Culture=neutral, PublicKeyToken=null
error: failed generating stubs | Could not load file or assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. El sistema no puede encontrar el archivo especificado.
PS C:\Users\mmaso\.dotnet\tools> .\GeneratePythonNetStubs.exe --dest-path .\2025\ --target-dlls 'C:\Program Files\Autodesk\Revit 2025\RevitAPIUI.dll'
building stubs...
error: failed generating stubs | Could not load file or assembly 'C:\Program Files\Autodesk\Revit 2025\RevitAPIUI.dll'. No se puede encontrar el módulo especificado.
Hi @MHDante , first of all, thanks for developing this tool. I'm trying to generate the stubs for a dll that I'm importing into Python because it's very annoying yo have the idle with a lot of missing imports and no linting.
When executing the tool
GeneratePythonNetStubs
I get an error and I don't know how to proceed. Maybe related to #5