Compile Python Scripts to Executables
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2022-08-01 11:14 AM
2022-08-01
11:14 AM
Dear Graphisoft Community,
I was wondering if it is possible to compile python scripts into .exe files and get it to work.
I tried different "compilers" for python like 'pyinstaller' or 'nuitka', but the compiled scripts don't work (it seems like they can't gest past the "conn = ACConnection.connect()" line).
Is there a way to circumvent this or are executable scripts bound to fail?
Dear Regards
Dayiz
Labels:
- Labels:
-
Automation (Python or JSON)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2022-08-03 12:34 PM
2022-08-03
12:34 PM
I tried it with auto-py-to-exe and was also kept getting an AssertionError after
conn = ACConnection.connect().
I suspect the compiler is not including in all the required dependencies of the Archicad pip package into the exe. I'll have a dig through the source to see what might be going on.
Scott J. Moore | Fulton Trotter Architects | BIM Manager, Associate, Architect
Since AC13 | Current versions AC23.7000 & AC26.5002 | BIMCloud Basic | Python, GDL, VBA, PHP, SQL, CSS
Certified Graphisoft BIM Manger (2022)
Win 10, i9-9900K, 32GB, Quadro P2200, 500GB NVMe
Since AC13 | Current versions AC23.7000 & AC26.5002 | BIMCloud Basic | Python, GDL, VBA, PHP, SQL, CSS
Certified Graphisoft BIM Manger (2022)
Win 10, i9-9900K, 32GB, Quadro P2200, 500GB NVMe