BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Archicad Python API
About automating tasks in Archicad using the Python API.

Compile Python Scripts to Executables

Dayiz
Booster

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

1 REPLY 1
scottjm
Advisor

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
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!