<div dir="ltr"><div dir="ltr"><div dir="ltr">I have no trouble with this using a conda install of pdal and the python-pdal extension.  SLPK files are unzipped to temp space before they're actually read.  If you have no temp space, I could see a failure like this.  Make sure you have /tmp that has sufficient space to hold the slpk file (it's not compressed) or the TMP environment variable is set to a location that has sufficient space.<div><br></div><div>Here's the script I used, which is yours, slightly modified:<br><br><div>import pdal</div><div>import numpy as np</div><div>import sys</div><div>import getopt</div><div><br></div><div><br></div><div>## TEST HARNESS</div><div>## TODO: begin placing some components of the test harness into functions</div><div>## TODO: Clean up the code in general</div><div>## TODO: Make sure to clean up pipeline options specifically and make it all more flexible and ready for various input</div><div>if __name__ == "__main__":</div><div><br></div><div>    filepath = "autzen.slpk"</div><div><br></div><div>    print("Using {0}".format(filepath))</div><div><br></div><div>    pipeline_convert_tif = """</div><div>    {{</div><div>        "pipeline":[</div><div>            {{</div><div>                "type":"readers.slpk",</div><div>                "filename":"{0}"</div><div>            }},</div><div>            {{</div><div>                "type":"<a href="http://filters.info">filters.info</a>"</div><div>            }}</div><div>        ]</div><div>    }}""".format(filepath)</div><div><br></div><div>    # Start the pipeline work</div><div>    pipeline = pdal.Pipeline(pipeline_convert_tif)</div><div>    pipeline.validate() # Validate that defined pipeline is OK</div><div>    pipeline.loglevel = 8</div><div>    count = pipeline.execute()</div><div>    arrays = pipeline.arrays</div><div>    metadata = pipeline.metadata</div><div>    print (metadata)</div><div>    log = pipeline.log</div></div><div><br></div><div>Here's the start of the output:</div><div><br></div><div>$ python test.py</div><div><br></div><div><div>Using autzen.slpk</div><div>{</div><div>  "metadata":</div><div>  {</div><div>    "":</div><div>    [</div><div>      {</div><div>      },</div><div>      {</div><div>      }</div><div>    ],</div><div>    "<a href="http://filters.info">filters.info</a>":</div><div>    [</div><div>      {</div><div>        "bbox":</div><div>        {</div><div>          "maxx": -123.0628514,</div><div>          "maxy": 44.06225365,</div><div>          "maxz": 163.62028,</div><div>          "minx": -123.0749718,</div><div>          "miny": 44.050197,</div><div>          "minz": 124.16028</div><div>        },</div><div>        "dimensions": "X, Y, Z, Intensity, ClassFlags, Flag, NumberOfReturns, ReturnNumber, UserData, PointSourceId, GpsTime, ScanAngleRank",</div><div>        "num_points": 106,</div><div>        "schema":</div><div>        {</div><div>          "dimensions":</div><div>          [</div><div>            {</div><div>              "name": "X",</div><div>              "size": 8,</div><div>              "type": "floating"</div><div>            },</div><div>            {</div><div>              "name": "Y",</div><div>              "size": 8,</div><div>              "type": "floating"</div><div>            },<br>...</div></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at 12:16 PM David Lewis <<a href="mailto:dlewi146@gmail.com">dlewi146@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I'm running this from a Bash terminal on an Ubuntu operating system.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019, 12:15 PM Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">What platform are you using?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at 9:32 AM David Lewis <<a href="mailto:dlewi146@gmail.com" rel="noreferrer" target="_blank">dlewi146@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Attached is the relevant lines of code. </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at 6:52 AM Andrew Bell <<a href="mailto:andrew.bell.ia@gmail.com" rel="noreferrer" target="_blank">andrew.bell.ia@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">It would help if you would post the program that is generating the error.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 27, 2019, 11:49 PM David Lewis <<a href="mailto:dlewi146@gmail.com" rel="noreferrer" target="_blank">dlewi146@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I'm trying to run the SLPK reader in a pipeline I've written using the Python API. I'm using the SMALL_AUTZEN_LAS_ALL.slpk file found at <a href="https://github.com/PDAL/PDAL/tree/master/test/data/i3s" rel="noreferrer noreferrer" target="_blank">https://github.com/PDAL/PDAL/tree/master/test/data/i3s</a> .</div><div><br></div><div>Whenever I attempt to run this via the Python script, I get an error message : </div><div>"RuntimeError: readers.slpk: Failed to fetch info: Could not read file /tmp/SMALL_AUTZEN_LAS_ALL/3dSceneLayer.json.gz" </div><div><br></div><div>After looking at the code on Github, this appears to be something that is called no matter when the SLPK extraction process throws an error, though this could be wrong.</div><div><br></div><div>I'm not trying to do anything with filters yet, I'm simply trying to read in the SLPK using readers.slpk. Is this a known issue that occurs?</div><div><br></div><div>Thanks!</div><div><br></div><div>David Lewis</div><div>Undergraduate Imaging Science</div><div>Rochester Institute of Technology</div><div><br></div><div><div><br></div></div></div>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-8176424311593833865m_-3361856173150354389gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" rel="noreferrer" target="_blank">andrew.bell.ia@gmail.com</a></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>