AttributeError: module 'PyInstaller.compat' has no attribute 'is_py312'

739 views
Skip to first unread message

Nikolaus Preißer

unread,
Jul 4, 2023, 3:52:59 AM7/4/23
to PyInstaller
Hi!

I ran into the following problem:
When trying to create an executable from my Python code using pyinstaller (using the command 'pyinstaller myProgram.py' in the respective directory)  it looks like everything runs fine, but in the end i get this error message 'AttributeError: module 'PyInstaller.compat' has no attribute 'is_py312''' and pyinstaller stops. At this point a .spec file has been createt alongside an empty dist folder. I updated both pyinstaller as well as conda which i use to handle my environments. 

Has anybody similar issues or an idea on how to fix this?

Thanks a lot! Have a great day!
Niko

bwoodsend

unread,
Jul 5, 2023, 10:28:06 AM7/5/23
to PyInstaller

Is there really not a stack trace saying where the exception originates from? is_py312 wasn’t added until PyInstaller v5.13. Nothing except PyInstaller v5.13 should be referencing it.

P.S. We do not support Anaconda. It rearranges packages in ways that PyInstaller can’t track and can’t be tested

Reply all
Reply to author
Forward
0 new messages