Compiled MacOS Executable, but fails during runtime #3057
Replies: 2 comments 3 replies
-
|
you are not adding the native libraries to pyarchive. |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
So most likely a pyarchive bug.
Good luck.
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le lun. 3 janv. 2022 à 19:20, sbuccoliero ***@***.***> a
écrit :
… thanks. How do i do that?
having problems installing pyarchive as well:
Leonidas:Downloads sbuccoliero$ pip install pyarchive
Defaulting to user installation because normal site-packages is not
writeable
Collecting pyarchive
Using cached pyarchive-0.1.1.tar.gz (23 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyarchive
Building wheel for pyarchive (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 -u -c 'import
io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/setup.py'"'"';
*file*='"'"'/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(*file*) if os.path.exists(*file*)
else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code =
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
*file*, '"'"'exec'"'"'))' bdist_wheel -d
/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-wheel-owrej0sj
cwd:
/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/
Complete output (18 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.8
creating build/lib.macosx-10.14-x86_64-3.8/archive
copying archive/*init*.py -> build/lib.macosx-10.14-x86_64-3.8/archive
running build_ext
skipping 'archive/core.c' Cython extension (up-to-date)
building 'archive.core' extension
creating build/temp.macosx-10.14-x86_64-3.8
creating build/temp.macosx-10.14-x86_64-3.8/archive
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common
-dynamic -DNDEBUG -g -fwrapv -O3 -Wall
-iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders
-iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers
-arch arm64 -arch x86_64 -Werror=implicit-function-declaration
-I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8
-c archive/core.c -o build/temp.macosx-10.14-x86_64-3.8/archive/core.o
archive/core.c:227:10: fatal error: 'archive.h' file not found
#include "archive.h"
^~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
ERROR: Failed building wheel for pyarchive
Running setup.py clean for pyarchive
Failed to build pyarchive
Installing collected packages: pyarchive
Running setup.py install for pyarchive ... error
ERROR: Command errored out with exit status 1:
command: /Library/Developer/CommandLineTools/usr/bin/python3 -u -c 'import
io, os, sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/setup.py'"'"';
*file*='"'"'/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(*file*) if os.path.exists(*file*)
else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code =
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
*file*, '"'"'exec'"'"'))' install --record
/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-record-dz8zmtbi/install-record.txt
--single-version-externally-managed --user --prefix= --compile
--install-headers
/Users/sbuccoliero/Library/Python/3.8/include/python3.8/pyarchive
cwd:
/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.8
creating build/lib.macosx-10.14-x86_64-3.8/archive
copying archive/*init*.py -> build/lib.macosx-10.14-x86_64-3.8/archive
running build_ext
skipping 'archive/core.c' Cython extension (up-to-date)
building 'archive.core' extension
creating build/temp.macosx-10.14-x86_64-3.8
creating build/temp.macosx-10.14-x86_64-3.8/archive
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common
-dynamic -DNDEBUG -g -fwrapv -O3 -Wall
-iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders
-iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers
-arch arm64 -arch x86_64 -Werror=implicit-function-declaration
-I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8
-c archive/core.c -o build/temp.macosx-10.14-x86_64-3.8/archive/core.o
archive/core.c:227:10: fatal error: 'archive.h' file not found
#include "archive.h"
^~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1:
/Library/Developer/CommandLineTools/usr/bin/python3 -u -c 'import io, os,
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/setup.py'"'"';
*file*='"'"'/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-install-fg_14dvx/pyarchive_18f9ea952c554b03b487dc74a8762ad0/setup.py'"'"';f
= getattr(tokenize, '"'"'open'"'"', open)(*file*) if os.path.exists(*file*)
else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code =
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
*file*, '"'"'exec'"'"'))' install --record
/private/var/folders/t0/xrcvn1wd22l53l6zx74m1j980000gn/T/pip-record-dz8zmtbi/install-record.txt
--single-version-externally-managed --user --prefix= --compile
--install-headers
/Users/sbuccoliero/Library/Python/3.8/include/python3.8/pyarchive Check the
logs for full command output.
—
Reply to this email directly, view it on GitHub
<#3057 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3PVWJLDZ3TMOHAG4ZDUUHSHFANCNFSM5LFFGSYA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lperron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can run my python script just fine on MacOS, but when i compile to a MacOS Executable (.app) using pyinstaller it fails during runtime:
Processor is Intel. MacOS is 11.6
pyinstaller compile:
Beta Was this translation helpful? Give feedback.
All reactions