cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

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
Advocate

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.

 

AC13 - AC23.7000 / AC26.4019 | Python, GDL, VBA, PHP, SQL, CSS
Certified Graphisoft BIM Manger (2022)
Win 10, i9-9900K, 32GB, Quadro P2200, 500GB NVMe

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!