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