Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation fails on OSX 10.14.6 #1561

Open
wuruipeng404 opened this issue Aug 2, 2019 · 6 comments
Open

installation fails on OSX 10.14.6 #1561

wuruipeng404 opened this issue Aug 2, 2019 · 6 comments
Assignees

Comments

@wuruipeng404
Copy link

ERROR: Command errored out with exit status 1:
command: /Users/rumple/.local/share/virtualenvs/odoo10-k4J47Mt5/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/setup.py'"'"'; file='"'"'/private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-wheel-gXKzvU --python-tag cp27
cwd: /private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/
Complete output (42 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-2.7
creating build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_pswindows.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_common.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/init.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_psosx.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_psbsd.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_pslinux.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_compat.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_psposix.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_pssunos.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
creating build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/runner.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/init.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_process.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_system.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'psutil._psutil_osx' extension
creating build/temp.macosx-10.14-x86_64-2.7
creating build/temp.macosx-10.14-x86_64-2.7/psutil
creating build/temp.macosx-10.14-x86_64-2.7/psutil/arch
creating build/temp.macosx-10.14-x86_64-2.7/psutil/arch/osx
clang -fno-strict-aliasing -fno-common -dynamic -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/opt/openssl/include -DPSUTIL_VERSION=431 -I/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.14-x86_64-2.7/psutil/_psutil_osx.o
psutil/_psutil_osx.c:36:10: fatal error: 'CoreFoundation/CoreFoundation.h' file not found
#include <CoreFoundation/CoreFoundation.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1

ERROR: Failed building wheel for psutil
Running setup.py clean for psutil
Failed to build psutil
Installing collected packages: psutil
Running setup.py install for psutil ... error
ERROR: Command errored out with exit status 1:
command: /Users/rumple/.local/share/virtualenvs/odoo10-k4J47Mt5/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/setup.py'"'"'; file='"'"'/private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-record-htBVfZ/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rumple/.local/share/virtualenvs/odoo10-k4J47Mt5/bin/../include/site/python2.7/psutil
cwd: /private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/
Complete output (42 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-2.7
creating build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_pswindows.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_common.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/init.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_psosx.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_psbsd.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_pslinux.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_compat.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_psposix.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
copying psutil/_pssunos.py -> build/lib.macosx-10.14-x86_64-2.7/psutil
creating build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/runner.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/init.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_process.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_system.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.macosx-10.14-x86_64-2.7/psutil/tests
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'psutil._psutil_osx' extension
creating build/temp.macosx-10.14-x86_64-2.7
creating build/temp.macosx-10.14-x86_64-2.7/psutil
creating build/temp.macosx-10.14-x86_64-2.7/psutil/arch
creating build/temp.macosx-10.14-x86_64-2.7/psutil/arch/osx
clang -fno-strict-aliasing -fno-common -dynamic -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/opt/openssl/include -DPSUTIL_VERSION=431 -I/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c psutil/_psutil_osx.c -o build/temp.macosx-10.14-x86_64-2.7/psutil/_psutil_osx.o
psutil/_psutil_osx.c:36:10: fatal error: 'CoreFoundation/CoreFoundation.h' file not found
#include <CoreFoundation/CoreFoundation.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /Users/rumple/.local/share/virtualenvs/odoo10-k4J47Mt5/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/setup.py'"'"'; file='"'"'/private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-install-xipa6t/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/hy/13dj6y9x4q3drcwqq3gll88r0000gn/T/pip-record-htBVfZ/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rumple/.local/share/virtualenvs/odoo10-k4J47Mt5/bin/../include/site/python2.7/psutil Check the logs for full command output.

@wuruipeng404
Copy link
Author

python2.7.16 and python3.7.4 is the same question

@wuruipeng404
Copy link
Author

already installed xcode command line tools

@wuruipeng404
Copy link
Author

I found thisfile /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk 1/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CoreFoundation.h

build path is wrong

@tenadolanter
Copy link

@357711589 i met the same question, but how you solved it?

@wuruipeng404
Copy link
Author

@357711589 i met the same question, but how you solved it?

install xcode app

@zmitchell
Copy link

I'm on 10.15.1 and I'm having the same issues. I already installed the command line tools, already downloaded Xcode, and opened it to let it install whatever other components it needed to install.

My header file is located at the path below:

/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/CoreFoundation.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants