pyinstaller

403 views
Skip to first unread message

Dmitry Solonnikov

unread,
Dec 27, 2021, 5:22:44 AM12/27/21
to PyInstaller
Trying to compile my .py to .exe with pyistaller, but every time get SystemError: lipo failure!
WARNING: lipo command (['lipo', '-thin', 'x86_64', '/Users/user/PycharmProjects/acceptanceDb/dist/main', '-output', '/Users/user/PycharmProjects/acceptanceDb/dist/main']) failed with error code 1!

What I should to do to fix it?

I'm using this command line:
pyinstaller --noconfirm --onedir --console --icon "/Users/user/PycharmProjects/acceptanceDb/resourses/acceptance_icon.ico" --debug "imports"  "/Users/user/PycharmProjects/acceptanceDb/main.py"

bwoodsend

unread,
Dec 29, 2021, 7:37:37 AM12/29/21
to PyInstaller

Hmm, that’s a new one. What architecture does Python think it’s running (output of platform.machine() in Python)? What architecture are you really on (output of uname -m from terminal)? Does removing the icon the icon make any difference? What’s the output of:

lipo -archs /Users/user/PycharmProjects/acceptanceDb/dist/main

Dmitry Solonnikov

unread,
Dec 29, 2021, 10:34:48 AM12/29/21
to PyInstaller

Hi!

[code]platform.machine()[/code] return [tt]x86_64[/tt]

[code]uname -m[/code] return [tt]x86_64[/tt]

[code]lipo -archs /Users/user/PycharmProjects/acceptanceDb/dist/main[/code]

return 

[code]xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/[/code]

removing icon had no any effect

среда, 29 декабря 2021 г. в 17:37:37 UTC+5, bwoodsend:
Reply all
Reply to author
Forward
0 new messages