[pdal] OSGeo4W64 PDAL 1.5 - Python problems
Howard Butler
howard at hobu.co
Tue May 23 07:37:50 PDT 2017
> On May 23, 2017, at 9:05 AM, GUIMMARA, Sébastien (External) <sebastien.guimmara.external at airbus.com> wrote:
>
>
> Hi,
>
> First of all, thanks for releasing PDAL 1.5 through OSGeo4W. That helps a lot.
>
> When using the filters.programmable plugin, I get:
>
> Fatal Python error: Py_Initialize: unable to load the file system codec
> File “C:\OSGeo4W64\apps\Python27\Lib\encodings\__init__.py”, line 123
>
> It looks like there is a missing environment variable somewhere. I tried setting PYTHONHOME and PYTHONPATH to C:\OSGeo4W64\apps\Python27\Lib, but that didn’t help.
>
> I have Python 3.6 installed via the normal MSI installer, and Python 2.x via OSGeo4W and OSGeo4W64.
>
> $ where python
> C:\OSGeo4W64\bin\python.exe
> C:\Users\sguimmara\AppData\Local\Programs\Python\Python36-32\python.exe
>
> Is there something missing in my setup ?
>
> Does PDAL use/initialize Python in a singular way ?
The PDAL 1.5 on OSGeo4W64 uses the Python3 build that is also included in OSGeo4W64. You will need to enable the py3_env.bat in c:\OSGeo4W64\bin\ in your OSGeo4W Shell.
Even then, things might not work as it hasn't been tested so much. Please report back any success or failure you might have.
Howard
More information about the pdal
mailing list