[pdal] pdal python install
FE
flatearth at gmx.net
Thu Dec 17 03:09:57 PST 2015
Ok, so pip python requires pdal itself beeing installed first. Sorry, did not know about that.
I tried to compile pdal on OS X but did not manage until now. As substitute I've installed the version from homebrew now (unfortunately it does not include the pcl features). Its version is numbered as 0.9.9 but pdal-config --version gives 1.0.0.b1. It seems that pip wants to install version 1.1.0
When I run 'pip install pdal' after installing pdal via homebrew the following error is given:
mac:python will$ pip install pdal
Collecting pdal
Using cached PDAL-1.1.0.zip
Building wheels for collected packages: pdal
Running setup.py bdist_wheel for pdal
Complete output from command /Users/will/anaconda/bin/python3 -c "import setuptools;__file__='/private/var/folders/gz/t3r4_mbs2g11gd54w4ksj7xc0020_6/T/pip-build-g7t_t_s5/pdal/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/gz/t3r4_mbs2g11gd54w4ksj7xc0020_6/T/tmpoag9scf7pip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-3.4
creating build/lib.macosx-10.5-x86_64-3.4/pdal
copying pdal/__init__.py -> build/lib.macosx-10.5-x86_64-3.4/pdal
copying pdal/pipeline_xml.py -> build/lib.macosx-10.5-x86_64-3.4/pdal
running build_ext
building 'pdal.libpdalpython' extension
creating build/temp.macosx-10.5-x86_64-3.4
creating build/temp.macosx-10.5-x86_64-3.4/pdal
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/will/anaconda/include -arch x86_64 -I/Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include -I/Users/will/anaconda/include/python3.4m -c pdal/libpdalpython.cpp -o build/temp.macosx-10.5-x86_64-3.4/pdal/libpdalpython.o -std=c++11
In file included from pdal/libpdalpython.cpp:289:
In file included from /Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781:
/Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
pdal/libpdalpython.cpp:291:10: fatal error: 'pdal/plang/Array.hpp' file not found
#include "pdal/plang/Array.hpp"
^
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pdal
Failed to build pdal
Installing collected packages: pdal
Running setup.py install for pdal
Complete output from command /Users/will/anaconda/bin/python3 -c "import setuptools, tokenize;__file__='/private/var/folders/gz/t3r4_mbs2g11gd54w4ksj7xc0020_6/T/pip-build-g7t_t_s5/pdal/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/gz/t3r4_mbs2g11gd54w4ksj7xc0020_6/T/pip-anw4kg3k-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building 'pdal.libpdalpython' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/will/anaconda/include -arch x86_64 -I/Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include -I/Users/will/anaconda/include/python3.4m -c pdal/libpdalpython.cpp -o build/temp.macosx-10.5-x86_64-3.4/pdal/libpdalpython.o -std=c++11
In file included from pdal/libpdalpython.cpp:289:
In file included from /Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781:
/Users/will/anaconda/lib/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
^
pdal/libpdalpython.cpp:291:10: fatal error: 'pdal/plang/Array.hpp' file not found
#include "pdal/plang/Array.hpp"
^
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/Users/will/anaconda/bin/python3 -c "import setuptools, tokenize;__file__='/private/var/folders/gz/t3r4_mbs2g11gd54w4ksj7xc0020_6/T/pip-build-g7t_t_s5/pdal/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/gz/t3r4_mbs2g11gd54w4ksj7xc0020_6/T/pip-anw4kg3k-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/gz/t3r4_mbs2g11gd54w4ksj7xc0020_6/T/pip-build-g7t_t_s5/pdal
More information about the pdal
mailing list