when I do pip3 install imread I get the following error:
Collecting imread
Using cached imread-0.7.4.tar.gz (151 kB)
Requirement already satisfied: numpy in ./Library/Python/3.7/lib/python/site-packages (from imread) (1.17.4)
Building wheels for collected packages: imread
Building wheel for imread (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"'; __file__='"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/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/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-wheel-th30_vsf
cwd: /private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/
Complete output (125 lines):
sh: pkg-config: command not found
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread_version.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/ijrois.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/special.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_tiff.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_rois.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_webp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_jpeg.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread_from_blob.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_xcf.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_formats.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imsave.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_error.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bad.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_png.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bmp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/bit1.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/1_webp_a.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rois.zip -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rgba.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/ghsystem_flame.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/star1.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/stack.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/T -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/0186-0099.roi -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.unknown -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/arange512_16bit.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/diag.xcf -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/palette_zero.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/py-installer-indexed.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/mono.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
copying imread/tests/data/bad-files/TIFF/00r00.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r05.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r04.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r06.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r03.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r02.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r00.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r01.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
running build_ext
building 'imread._imread' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/imread
creating build/temp.macosx-10.9-x86_64-3.7/imread/lib
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/_imread.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/_imread.o -stdlib=libc++
In file included from imread/_imread.cpp:20:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/formats.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/formats.o -stdlib=libc++
In file included from imread/lib/formats.cpp:4:
In file included from imread/lib/formats.h:6:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
In file included from imread/lib/formats.cpp:9:
imread/lib/_tiff.h:41:37: warning: 'STKFormat::read_multi' hides overloaded virtual function [-Woverloaded-virtual]
std::unique_ptr<image_list> read_multi(byte_source* s, ImageFactory* f);
^
imread/lib/base.h:239:45: note: hidden overloaded virtual function 'ImageFormat::read_multi' declared here: different number of parameters (3 vs 2)
virtual std::unique_ptr<image_list> read_multi(byte_source* src, ImageFactory* factory, const options_map&) {
^
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/numpy.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/numpy.o -stdlib=libc++
In file included from imread/lib/numpy.cpp:4:
In file included from imread/lib/numpy.h:8:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/_bmp.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/_bmp.o -stdlib=libc++
In file included from imread/lib/_bmp.cpp:5:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
imread/lib/_bmp.cpp:108:12: error: calling a private constructor of class 'std::__1::unique_ptr<Image, std::__1::default_delete<Image> >'
return output;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2535:3: note: declared private here
unique_ptr(unique_ptr&);
^
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for imread
Running setup.py clean for imread
Failed to build imread
Installing collected packages: imread
Running setup.py install for imread ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"'; __file__='"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/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/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-record-7oz3j6hu/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/imread
cwd: /private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/
Complete output (125 lines):
sh: pkg-config: command not found
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.7
creating build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread_version.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/ijrois.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/special.py -> build/lib.macosx-10.9-x86_64-3.7/imread
copying imread/imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_tiff.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_rois.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_webp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_jpeg.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread_from_blob.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imread.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_xcf.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_formats.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_imsave.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_error.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bad.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_png.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
copying imread/tests/test_bmp.py -> build/lib.macosx-10.9-x86_64-3.7/imread/tests
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/bit1.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/1_webp_a.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rois.zip -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/rgba.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/ghsystem_flame.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/star1.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/stack.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/T -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/0186-0099.roi -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.unknown -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.jpg -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/good -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/arange512_16bit.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/diag.xcf -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/palette_zero.png -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/py-installer-indexed.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/mono.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.tif -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
copying imread/tests/data/error.webp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
copying imread/tests/data/bad-files/TIFF/00r00.tiff -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/TIFF
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r05.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r04.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r06.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r03.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r02.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r00.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
copying imread/tests/data/bad-files/BMP/00r/00r01.bmp -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/BMP/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
copying imread/tests/data/bad-files/LSM/00r/00r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/00r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
copying imread/tests/data/bad-files/LSM/02r/02r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/02r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
copying imread/tests/data/bad-files/LSM/01r/01r02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/01r
creating build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w03.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w02.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w00.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
copying imread/tests/data/bad-files/LSM/03w/03w01.lsm -> build/lib.macosx-10.9-x86_64-3.7/imread/tests/data/bad-files/LSM/03w
running build_ext
building 'imread._imread' extension
creating build/temp.macosx-10.9-x86_64-3.7
creating build/temp.macosx-10.9-x86_64-3.7/imread
creating build/temp.macosx-10.9-x86_64-3.7/imread/lib
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/_imread.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/_imread.o -stdlib=libc++
In file included from imread/_imread.cpp:20:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/formats.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/formats.o -stdlib=libc++
In file included from imread/lib/formats.cpp:4:
In file included from imread/lib/formats.h:6:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
In file included from imread/lib/formats.cpp:9:
imread/lib/_tiff.h:41:37: warning: 'STKFormat::read_multi' hides overloaded virtual function [-Woverloaded-virtual]
std::unique_ptr<image_list> read_multi(byte_source* s, ImageFactory* f);
^
imread/lib/base.h:239:45: note: hidden overloaded virtual function 'ImageFormat::read_multi' declared here: different number of parameters (3 vs 2)
virtual std::unique_ptr<image_list> read_multi(byte_source* src, ImageFactory* factory, const options_map&) {
^
2 warnings generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/numpy.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/numpy.o -stdlib=libc++
In file included from imread/lib/numpy.cpp:4:
In file included from imread/lib/numpy.h:8:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
1 warning generated.
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -DPY_ARRAY_UNIQUE_SYMBOL=MahotasImread_PyArray_API_Symbol -DIMREAD_EXCLUDE_WEBP=1 -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/Users/matinsaurralde/Library/Python/3.7/lib/python/site-packages/numpy/core/include -c imread/lib/_bmp.cpp -o build/temp.macosx-10.9-x86_64-3.7/imread/lib/_bmp.o -stdlib=libc++
In file included from imread/lib/_bmp.cpp:5:
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
^
imread/lib/_bmp.cpp:108:12: error: calling a private constructor of class 'std::__1::unique_ptr<Image, std::__1::default_delete<Image> >'
return output;
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2535:3: note: declared private here
unique_ptr(unique_ptr&);
^
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/setup.py'"'"'; __file__='"'"'/private/var/folders/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-install-yzh0j2tc/imread/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/xt/0v5vcz0s2dg46z8x7j6c4yf80000gn/T/pip-record-7oz3j6hu/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m/imread Check the logs for full command output.
I already tried with pip3 install imread --no-cache-dir as I read somewhere else but didn't work at all. I already did brew install gcc but it didn't work out. I deleted and reinstalled the command line tools through terminal with xcode-select --install but still doesn't work.
I can read in the first lines that it says "Requirement already satisfied" but I checked and imread is definitely not installed.
Environment:
macOS Catalina 10.15.4
python 3.7.7 (I tried installing it in python 2.7 using just pip but
still doesn't work).
pip version = pip 20.1 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7)
if anyone can find the solution I would be very grateful! I've been looking for hours for the solution and I can't find it!
It says quite clearly:
sh: pkg-config: command not found
So you have to install pkg-config and try again.
You need to install pkg-config package. For MacOSX you may find it either in Brew or in other software collections like thus sourceforge repository
The second (and perhaps the actual) error is the error with gcc. Considering the line
imread/lib/base.h:138:46: warning: rvalue references are a C++11 extension [-Wc++11-extensions]
void push_back(std::unique_ptr<Image>&& p) { content.push_back(p.release()); }
I expect your gcc being quite old. What is its actual version? Try to run gcc -v to find out.
Update:
As a non-Mac user I would go with gcc :-) . To install gcc-9+ from brew, use brew install gcc command. Then check that gcc and g++ are actually installed:
g++-9 --version
I would also check the C++ standard library as suggested in https://stackoverflow.com/a/17940219/3159253 :
`gcc-9 -print-prog-name=cc1plus` -v
Make sure the paths point to relatively recent version of C++ library, not to 4.2.1 as in your comment.
You should then explicitly use it when running pip:
CC=gcc-9 pip install imread
Related
I am facing below issue in python while installing mysqlclient:
Building wheel for mysqlclient (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/joy/workspace/my_project/venv/bin/python -u -c 'import sys, setuptools,
tokenize; sys.argv[0] = '"'"'/private/var/folders/rz/qj7p_p1n2d38w4ysr50qvgfc0000gp/T/pip-
install-tfjwlop6/mysqlclient/setup.py'"'"';
__file__='"'"'/private/var/folders/rz/qj7p_p1n2d38w4ysr50qvgfc0000gp/T/pip-install-
tfjwlop6/mysqlclient/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/rz/qj7p_p1n2d38w4ysr50qvgfc0000gp/T/pip-wheel-s9xhvytf
cwd: /private/var/folders/rz/qj7p_p1n2d38w4ysr50qvgfc0000gp/T/pip-install-
tfjwlop6/mysqlclient/
Complete output (30 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.6
copying _mysql_exceptions.py -> build/lib.macosx-10.9-x86_64-3.6
creating build/lib.macosx-10.9-x86_64-3.6/MySQLdb
copying MySQLdb/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb
copying MySQLdb/compat.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb
copying MySQLdb/connections.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb
copying MySQLdb/converters.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb
copying MySQLdb/cursors.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb
copying MySQLdb/release.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb
copying MySQLdb/times.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb
creating build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constants
copying MySQLdb/constants/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-x86_64-
3.6/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constants
running build_ext
building '_mysql' extension
creating build/temp.macosx-10.9-x86_64-3.6
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -
fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -g -Dversion_info=(1,3,13,'final',0) -
D__version__=1.3.13 -I/usr/local/Cellar/mysql#5.7/5.7.29/include/mysql -
I/Users/joy/workspace/my_project/venv/include -
I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c _mysql.c -o
build/temp.macosx-10.9-x86_64-3.6/_mysql.o
gcc -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-
3.6/_mysql.o -L/usr/local/Cellar/mysql#5.7/5.7.29/lib -lmysqlclient -lssl -lcrypto -o
build/lib.macosx-10.9-x86_64-3.6/_mysql.cpython-36m-darwin.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for mysqlclient
In this regard, I have gone though a several posts here, but not getting any clue regarding how to fix this on my mac.
You haven't got the gcc compiler installed. It comes with "Command line tools voor XCode" if I'm correct. So all you have to do is go to the app store and download XCode.
You can check if its installed by running gcc -v in the terminal.
I used to use Homebrew tap formulas to distribute my self maintained programs. However, it is imposible for me to do with some programs which use Pillow, because Homebrew fails when try to install it isolate.
Example of a recipe which uses Pillow:
class Monoshape < Formula
include Language::Python::Virtualenv
desc "Extracts monochromatic shapes"
homepage "https://github.com/GlezSeoane/monoshape"
url "https://github.com/GlezSeoane/monoshape/archive/v1.0.tar.gz"
sha256 "6edbecfc60db6f91fba6e520769f811009743eec89d655c54e4e6006ad5b0dbb"
depends_on "python"
resource "filetype" do
url "https://files.pythonhosted.org/packages/e8/53/298887541ae479f8467d4d23e028c6d15f9811da25c582297fd3869666b7/filetype-1.0.5.tar.gz"
sha256 "17a3b885f19034da29640b083d767e0f13c2dcb5dcc267945c8b6e5a5a9013c7"
end
resource "Pillow" do
url "https://files.pythonhosted.org/packages/51/fe/18125dc680720e4c3086dd3f5f95d80057c41ab98326877fc7d3ff6d0ee5/Pillow-6.1.0.tar.gz"
sha256 "0804f77cb1e9b6dbd37601cee11283bba39a8d44b9ddb053400c58e0c0d7d9de"
end
def install
virtualenv_install_with_resources
man1.install "manpages/monoshape.1"
end
test do
system "python", "-c", "'import monoshape.__main__'"
end
end
Homebrew error output when try to use the formula:
brew reinstall --verbose --debug ./Formula/monoshape.rb
...
==> Downloading https://files.pythonhosted.org/packages/81/1a/6b2971adc1bca55b9a53ed1efa372acff7e8b9913982a396f3fa046efaf8/Pillow-6.0.0.tar.gz
/usr/bin/curl -q --show-error --user-agent Homebrew/2.1.7\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.14.5\)\ curl/7.54.0 --location --silent --head --request GET https://files.pythonhosted.org/packages/81/1a/6b2971adc1bca55b9a53ed1efa372acff7e8b9913982a396f3fa046efaf8/Pillow-6.0.0.tar.gz
Already downloaded: /Users/glezseoane/Library/Caches/Homebrew/downloads/ea7321a9356188da36d495f4135bfd7dfeb7add8558b773a6421e9096db03779--Pillow-6.0.0.tar.gz
==> Verifying ea7321a9356188da36d495f4135bfd7dfeb7add8558b773a6421e9096db03779--Pillow-6.0.0.tar.gz checksum
tar xof /Users/glezseoane/Library/Caches/Homebrew/downloads/ea7321a9356188da36d495f4135bfd7dfeb7add8558b773a6421e9096db03779--Pillow-6.0.0.tar.gz -C /private/tmp/d20190708-31029-1m7e24t
cp -pR /private/tmp/d20190708-31029-1m7e24t/Pillow-6.0.0/. /private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0
chmod -Rf +w /private/tmp/d20190708-31029-1m7e24t
==> /usr/local/Cellar/monoshape/1.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0
Created temporary directory: /private/tmp/pip-ephem-wheel-cache-aihec4je
Created temporary directory: /private/tmp/pip-req-tracker-6pqza4qj
Created requirements tracker '/private/tmp/pip-req-tracker-6pqza4qj'
Created temporary directory: /private/tmp/pip-install-tjb4rpw6
Processing /private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0
Created temporary directory: /private/tmp/pip-req-build-rgrd0jy0
Added file:///private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0 to build tracker '/private/tmp/pip-req-tracker-6pqza4qj'
Running setup.py (path:/private/tmp/pip-req-build-rgrd0jy0/setup.py) egg_info for package from file:///private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/Pillow.egg-info
writing pip-egg-info/Pillow.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/Pillow.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/Pillow.egg-info/top_level.txt
writing manifest file 'pip-egg-info/Pillow.egg-info/SOURCES.txt'
reading manifest file 'pip-egg-info/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.c'
warning: no files found matching '*.h'
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'azure-pipelines.yml'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
no previously-included directories found matching '.azure-pipelines'
no previously-included directories found matching '.travis'
writing manifest file 'pip-egg-info/Pillow.egg-info/SOURCES.txt'
Source in /private/tmp/pip-req-build-rgrd0jy0 has version 6.0.0, which satisfies requirement Pillow==6.0.0 from file:///private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0
Removed Pillow==6.0.0 from file:///private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0 from build tracker '/private/tmp/pip-req-tracker-6pqza4qj'
Skipping bdist_wheel for Pillow, due to binaries being disabled for it.
Installing collected packages: Pillow
Created temporary directory: /private/tmp/pip-record-1a95g79y
Running setup.py install for Pillow: started
Running command /usr/local/Cellar/monoshape/1.0/libexec/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/tmp/pip-req-build-rgrd0jy0/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/tmp/pip-record-1a95g79y/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/monoshape/1.0/libexec/bin/../include/site/python3.7/Pillow
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageMode.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/TarIO.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/BdfFontFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageStat.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageColor.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ContainerIO.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/_version.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageQt.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageMath.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PaletteFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/FontFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PdfParser.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ExifTags.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageCms.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageChops.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PSDraw.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageFilter.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageDraw2.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImagePath.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/JpegPresets.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/features.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageDraw.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageWin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageMorph.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/WalImageFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PcfFontFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageTk.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageOps.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageShow.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageEnhance.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageGrab.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/TiffTags.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/_util.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/GdImageFile.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImagePalette.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageTransform.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageSequence.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PyAccess.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/_binary.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/Image.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/ImageFont.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.macosx-10.14-x86_64-3.7/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.c'
warning: no files found matching '*.h'
warning: no files found matching '*.sh'
no previously-included directories found matching 'docs/_static'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.landscape.yaml'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'azure-pipelines.yml'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files matching '.git*' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
no previously-included directories found matching '.azure-pipelines'
no previously-included directories found matching '.travis'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext
building 'PIL._imaging' extension
creating build/temp.macosx-10.14-x86_64-3.7
building 'PIL._imagingcms' extension
building 'PIL._imagingft' extension
building 'PIL._webp' extension
creating build/temp.macosx-10.14-x86_64-3.7/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -DHAVE_WEBPMUX -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_webp.c -o build/temp.macosx-10.14-x86_64-3.7/src/_webp.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_imagingft.c -o build/temp.macosx-10.14-x86_64-3.7/src/_imagingft.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_imagingcms.c -o build/temp.macosx-10.14-x86_64-3.7/src/_imagingcms.o
creating build/temp.macosx-10.14-x86_64-3.7/src/libImaging
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.0.0" -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_imaging.c -o build/temp.macosx-10.14-x86_64-3.7/src/_imaging.o
src/_imagingft.c:25:10: fatal error: 'ft2build.h' file not found
#include <ft2build.h>
^~~~~~~~~~~~
1 error generated.
building 'PIL._imagingtk' extension
creating build/temp.macosx-10.14-x86_64-3.7/src/Tk
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -Isrc/Tk -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_imagingtk.c -o build/temp.macosx-10.14-x86_64-3.7/src/_imagingtk.o
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/src/_webp.o -L/usr/local/Cellar/monoshape/1.0/libexec/lib -L/usr/local/lib -L/usr/lib -lwebp -lwebpmux -lwebpdemux -o build/lib.macosx-10.14-x86_64-3.7/PIL/_webp.cpython-37m-darwin.so
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -Isrc/Tk -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/Tk/tkImaging.c -o build/temp.macosx-10.14-x86_64-3.7/src/Tk/tkImaging.o
building 'PIL._imagingmath' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_imagingmath.c -o build/temp.macosx-10.14-x86_64-3.7/src/_imagingmath.o
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/src/_imagingcms.o -L/usr/local/Cellar/monoshape/1.0/libexec/lib -L/usr/local/lib -L/usr/lib -llcms2 -o build/lib.macosx-10.14-x86_64-3.7/PIL/_imagingcms.cpython-37m-darwin.so
building 'PIL._imagingmorph' extension
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/_imagingmorph.c -o build/temp.macosx-10.14-x86_64-3.7/src/_imagingmorph.o
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/src/_imagingtk.o build/temp.macosx-10.14-x86_64-3.7/src/Tk/tkImaging.o -L/usr/local/Cellar/monoshape/1.0/libexec/lib -L/usr/local/lib -L/usr/lib -o build/lib.macosx-10.14-x86_64-3.7/PIL/_imagingtk.cpython-37m-darwin.so
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/src/_imagingmorph.o -L/usr/local/Cellar/monoshape/1.0/libexec/lib -L/usr/local/lib -L/usr/lib -o build/lib.macosx-10.14-x86_64-3.7/PIL/_imagingmorph.cpython-37m-darwin.so
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/src/_imagingmath.o -L/usr/local/Cellar/monoshape/1.0/libexec/lib -L/usr/local/lib -L/usr/lib -o build/lib.macosx-10.14-x86_64-3.7/PIL/_imagingmath.cpython-37m-darwin.so
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -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 -DHAVE_LIBJPEG -DHAVE_OPENJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -DPILLOW_VERSION="6.0.0" -I/usr/local/Cellar/freetype/2.10.0/include/freetype2 -I/usr/local/Cellar/openjpeg/2.3.1/include/openjpeg-2.3 -I/private/tmp/pip-req-build-rgrd0jy0/src/libImaging -I/usr/local/Cellar/monoshape/1.0/libexec/include -I/usr/local/include -I/usr/include -I/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/decode.c -o build/temp.macosx-10.14-x86_64-3.7/src/decode.o
In file included from src/decode.c:869:
/private/tmp/pip-req-build-rgrd0jy0/src/libImaging/Jpeg2K.h:11:10: fatal error: 'openjpeg.h' file not found
#include <openjpeg.h>
^~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
Running setup.py install for Pillow: finished with status 'error'
Cleaning up...
Removing source in /private/tmp/pip-req-build-rgrd0jy0
Removed build tracker '/private/tmp/pip-req-tracker-6pqza4qj'
ERROR: Command "/usr/local/Cellar/monoshape/1.0/libexec/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/tmp/pip-req-build-rgrd0jy0/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/tmp/pip-record-1a95g79y/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/monoshape/1.0/libexec/bin/../include/site/python3.7/Pillow" failed with error code 1 in /private/tmp/pip-req-build-rgrd0jy0/
Exception information:
Traceback (most recent call last):
File "/usr/local/Cellar/monoshape/1.0/libexec/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 178, in main
status = self.run(options, args)
File "/usr/local/Cellar/monoshape/1.0/libexec/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 414, in run
use_user_site=options.use_user_site,
File "/usr/local/Cellar/monoshape/1.0/libexec/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 58, in install_given_reqs
**kwargs
File "/usr/local/Cellar/monoshape/1.0/libexec/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 951, in install
spinner=spinner,
File "/usr/local/Cellar/monoshape/1.0/libexec/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 776, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip._internal.exceptions.InstallationError: Command "/usr/local/Cellar/monoshape/1.0/libexec/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/tmp/pip-req-build-rgrd0jy0/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/tmp/pip-record-1a95g79y/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/Cellar/monoshape/1.0/libexec/bin/../include/site/python3.7/Pillow" failed with error code 1 in /private/tmp/pip-req-build-rgrd0jy0/
/usr/bin/curl --version
/usr/libexec/java_home --xml --failfast
/usr/libexec/java_home --xml --failfast
/usr/local/Homebrew/Library/Homebrew/debrew.rb:13:in `raise'
BuildError: Failed executing: /usr/local/Cellar/monoshape/1.0/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/monoshape--Pillow-20190708-31029-1w8theb/Pillow-6.0.0
Since macOS Mojave 10.14.5 with Python 3.7 and Homebrew updated.
You likely need to include additional depends_on clauses to help Pillow locate compiled libraries: e.g., depends_on "openjpeg" (which provides openjpeg.h).
I'm using python 3.4 in a virtual environment:
(af)[root#domain backend]# pip --version
pip 7.1.0 from /home/af/af-stage/backend/.ves/af/lib/python3.4/site-packages (python 3.4)
Installation of lxml failed "error: command 'gcc' failed with exit status 4":
(af)[root#domain backend]# pip install lxml
You are using pip version 7.1.0, however version 7.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting lxml
Using cached lxml-3.5.0.tar.gz
Building wheels for collected packages: lxml
Running setup.py bdist_wheel for lxml
Complete output from command /home/af/af-stage/backend/.ves/af/bin/python3.4 -c "import setuptools;__file__='/tmp/pip-build-tlogtyk2/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpod9hcw0ypip-wheel-:
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory: /usr/lib64
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/__init__.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/builder.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/sax.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/cssselect.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-3.4/lxml
creating build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-3.4/lxml/includes
creating build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-x86_64-3.4/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-x86_64-3.4/lxml/html
creating build/lib.linux-x86_64-3.4/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-3.4/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-3.4/lxml
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.4/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-3.4/lxml/includes
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/rng
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl
creating build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-3.4/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/src
creating build/temp.linux-x86_64-3.4/src/lxml
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python3.4m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.4/src/lxml/lxml.etree.o -w
{standard input}: Assembler messages:
{standard input}:1531298: Error: unknown pseudo-op: `.uleb'
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Compile failed: command 'gcc' failed with exit status 4
creating tmp
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitpm92p5c8.c -o tmp/xmlXPathInitpm92p5c8.o
cc tmp/xmlXPathInitpm92p5c8.o -L/usr/lib64 -lxml2 -o a.out
error: command 'gcc' failed with exit status 4
----------------------------------------
Failed building wheel for lxml
Failed to build lxml
Installing collected packages: lxml
Running setup.py install for lxml
Complete output from command /home/af/af-stage/backend/.ves/af/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-tlogtyk2/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-99hwjy1o-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/af/af-stage/backend/.ves/af/include/site/python3.4/lxml:
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory: /usr/lib64
running install
running build
running build_py
copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-3.4/lxml/includes
running build_ext
building 'lxml.etree' extension
gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python3.4m -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-3.4/src/lxml/lxml.etree.o -w
{standard input}: Assembler messages:
{standard input}:1320351: Error: unknown pseudo-op: `.uleb1'
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Compile failed: command 'gcc' failed with exit status 4
cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInit3tj66iu0.c -o tmp/xmlXPathInit3tj66iu0.o
cc tmp/xmlXPathInit3tj66iu0.o -L/usr/lib64 -lxml2 -o a.out
error: command 'gcc' failed with exit status 4
----------------------------------------
Command "/home/af/af-stage/backend/.ves/af/bin/python3.4 -c "import setuptools, tokenize;__file__='/tmp/pip-build-tlogtyk2/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-99hwjy1o-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/af/af-stage/backend/.ves/af/include/site/python3.4/lxml" failed with error code 1 in /tmp/pip-build-tlogtyk2/lxml
Notes:
I've already done yum install libxslt-devel libxml2-devel
You just need to use yum install python-lxml.
Of course, lxml module depend on libxml2 libxslt libxml2-devel libxslt-devel.
This worked for me: yum install -y libxml2 libxml2-devel libxslt libxslt-devel
It works after installing:
libxml++-2.30.0-1.el6.i686
libsigc++20-devel-2.2.4.2-1.el6.i686
libxml2-static-2.7.6-21.el6_8.1.i686
libxml++-devel-2.30.0-1.el6.i686
libxslt-python-1.1.26-2.el6_3.1.i686
gccxml-0.9.0-0.27.20150423.git3afa8ba.el6.i686
I updated my lxml version from 3.7.0 to the latest one 4.1.1 and that works for me.
I've seen some posts on lxml installing problems, but none of the answers I found was of any help. Many said to install python-dev, libxml2 and libxslt to solve the problem. They are already installed, but I still get the following outcome (keep in mind that I'm installing everything locally using virtualenv):
(scrapers)~$ pip install lxml
Downloading/unpacking lxml
Downloading lxml-3.5.0.tar.gz (3.8MB): 3.8MB downloaded
Running setup.py (path:/home/pigna/scrapers/build/lxml/setup.py) egg_info for package lxml
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
warning: no previously-included files found matching '*.py'
Installing collected packages: lxml
Running setup.py install for lxml
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
building 'lxml.etree' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/etree.so
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /home/pigna/scrapers/bin/python -c "import setuptools, tokenize;__file__='/home/pigna/scrapers/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ikEzzn-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pigna/scrapers/include/site/python2.7:
Building lxml version 3.5.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/lxml
copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/__init__.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml
creating build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-2.7/lxml/includes
creating build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html
creating build/lib.linux-x86_64-2.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml
copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-2.7/lxml/includes
creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources
creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/lxml
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lxml2 -lz -lm -o build/lib.linux-x86_64-2.7/lxml/etree.so
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /home/pigna/scrapers/bin/python -c "import setuptools, tokenize;__file__='/home/pigna/scrapers/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-ikEzzn-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pigna/scrapers/include/site/python2.7 failed with error code 1 in /home/pigna/scrapers/build/lxml
Storing debug log for failure in /home/pigna/.pip/pip.log
What does warning: no previously-included files found matching '*.py' mean?
/usr/bin/ld: cannot find -lz what is -lz? How to install it?
The relevant error is this:
/usr/bin/ld: cannot find -lz
...which indicates that the linker couldn't find libz.so, which means you don't have zlib installed in a location in your library search path.
Install zlib; the method for doing so depends on your operating system, so there's no generic answer. It might be something like:
sudo apt-get install zlib-dev # on a Debian derivative
sudo apt-get install zlib1g-dev # on Ubuntu 14.04 (see below)
sudo yum install zlib-devel # on a Red Hat derivative
sudo port install zlib # on a ports-based system
sudo pacman -S zlib # on Arch Linux
or any number of other things as appropriate.
Assuming you want to find the appropriate package name for a given version of Ubuntu, one can search for the package containing libz.so on packages.ubuntu.com; the linked results are for Trusty.
I'm on OS 10.9.5 and get the following error when I try to create a scrapy project:
Traceback (most recent call last):
File "/usr/local/bin/scrapy", line 7, in <module>
from scrapy.cmdline import execute
File "/Library/Python/2.7/site-packages/scrapy/__init__.py", line 56, in <module>
from scrapy.spider import Spider
File "/Library/Python/2.7/site-packages/scrapy/spider.py", line 7, in <module>
from scrapy.http import Request
File "/Library/Python/2.7/site-packages/scrapy/http/__init__.py", line 11, in <module>
from scrapy.http.request.form import FormRequest
File "/Library/Python/2.7/site-packages/scrapy/http/request/form.py", line 9, in <module>
import lxml.html
ImportError: No module named lxml.html
I first tried to uninstall and then reinstall scrapy using pip. I'm not sure whether the problem is actually that something went wrong during the installation of scrapy. I get the following output when installing scrapy:
Downloading/unpacking scrapy
Downloading Scrapy-0.24.4-py2-none-any.whl (444kB): 444kB downloaded
Requirement already satisfied (use --upgrade to upgrade): pyOpenSSL in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /Library/Python/2.7/site-packages (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): queuelib in /Library/Python/2.7/site-packages (from scrapy)
Downloading/unpacking lxml (from scrapy)
Downloading lxml-3.4.0.tar.gz (3.5MB): 3.5MB downloaded
Running setup.py (path:/private/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
warning: no previously-included files found matching '*.py'
Requirement already satisfied (use --upgrade to upgrade): w3lib>=1.8.0 in /Library/Python/2.7/site-packages (from scrapy)
Downloading/unpacking cssselect>=0.9 (from scrapy)
Downloading cssselect-0.9.1.tar.gz
Running setup.py (path:/private/tmp/pip_build_root/cssselect/setup.py) egg_info for package cssselect
no previously-included directories found matching 'docs/_build'
Requirement already satisfied (use --upgrade to upgrade): Twisted>=10.0.0 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from scrapy)
Requirement already satisfied (use --upgrade to upgrade): zope.interface in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from Twisted>=10.0.0->scrapy)
Requirement already satisfied (use --upgrade to upgrade): setuptools in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from zope.interface->Twisted>=10.0.0->scrapy)
Installing collected packages: scrapy, lxml, cssselect
Running setup.py install for lxml
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
building 'lxml.etree' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
error: command 'cc' failed with exit status 69
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3TNhV_-record/install-record.txt --single-version-externally-managed --compile:
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.9-intel-2.7/lxml
creating build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml/includes
creating build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.9-intel-2.7/lxml/includes
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/src
creating build/temp.macosx-10.9-intel-2.7/src/lxml
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
error: command 'cc' failed with exit status 69
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-3TNhV_-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
I also tried to install lxml seperately and get the following output:
Downloading/unpacking lxml
Downloading lxml-3.4.0.tar.gz (3.5MB): 3.5MB downloaded
Running setup.py (path:/private/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
warning: no previously-included files found matching '*.py'
Installing collected packages: lxml
Running setup.py install for lxml
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
building 'lxml.etree' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
error: command 'cc' failed with exit status 69
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-l6wwGK-record/install-record.txt --single-version-externally-managed --compile:
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.0.
Building without Cython.
Using build configuration of libxslt 1.1.28
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.9-intel-2.7/lxml
creating build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml/includes
creating build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.9-intel-2.7/lxml/html
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.9-intel-2.7/lxml
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.9-intel-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.9-intel-2.7/lxml/includes
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.9-intel-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/src
creating build/temp.macosx-10.9-intel-2.7/src/lxml
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/libxml2 -I/private/tmp/pip_build_root/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
error: command 'cc' failed with exit status 69
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-l6wwGK-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
Can anybody please help?
The problem was this part:
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
Running sudo xcodebuild -license and reinstalling scrapy solved the problem.