[pdal] Centos 7, python3, gcc 4.8: pip3 fails to build PDAL
Adam Steer
Adam.Steer at anu.edu.au
Wed Jun 14 20:54:46 PDT 2017
I found one user error - I’d PDAL against system python (2.7) and python3 include and library dirs. Not sure that should have worked.. So I recomplied PDAL with *really* python 3.4 and got the same error.
The PDAL python extension builds in python (pip install pdal) if i:
- install python3.6 from source (using altinstall) or from anaconda
- recompile PDAL against Python3.6
- build a new python 3.6 virtualenv, add PDAL dependencies and do ‘pip install PDAL’. However, ‘import PDAL’ then grumbles about GDAL (see below, FYI)
*sigh*
Back to py27 for now, since it works. GDAL on centos7 is 1.11.4, I’m sure I’ve gone around this circle before, and the answer was ‘install a newer GDAL from source and build PDAL against that’. So, I will test that scenario.
I don’t expect PDAL to be re-written to support every wierd old bit of software/OS. Forward!
> On 15 Jun 2017, at 1:27 am, Howard Butler <howard at hobu.co> wrote:
>
> I've only ever tried Python 3.5 and 3.6, not 3.4. This error appears to be from Numpy's header thinking it should only be C. I think the libpdalpython.pyx that sets extern for PyPipeline.hpp is possibly incorrect. Newer Python versions must not care though.
(error from pdal-python, in py36 environment with PDAL extension built using py36 and CentOS7 system GDAL (1.11.4) - gdal-devel is installed too; and gdal is installed in python with pip install gdal==1.11.2 --global-option=build_ext --global-option="-I/usr/include/gdal/“ )
>>> import pdal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/local/skua/pywps-venv/lib/python3.6/site-packages/pdal/__init__.py", line 3, in <module>
from .pipeline import Pipeline
File "/local/skua/pywps-venv/lib/python3.6/site-packages/pdal/pipeline.py", line 2, in <module>
from pdal import libpdalpython
ImportError: /lib64/libgdal.so.1: undefined symbol: sqlite3_column_table_name
>>> \q
File "<stdin>", line 1
\q
^
SyntaxError: unexpected character after line continuation character
More information about the pdal
mailing list