Title: Python pdal reader driver inference failure with filespec · Issue #197 · PDAL/python · GitHub
Open Graph Title: Python pdal reader driver inference failure with filespec · Issue #197 · PDAL/python
X Title: Python pdal reader driver inference failure with filespec · Issue #197 · PDAL/python
Description: Describe the bug Using python pdal, the Reader automatic driver inference based on the input filename fails using filespec. Sample code: pipeline = pdal.Reader( filename={ "path": "https://some_api.com/path/to/file.laz", "headers": {'Aut...
Open Graph Description: Describe the bug Using python pdal, the Reader automatic driver inference based on the input filename fails using filespec. Sample code: pipeline = pdal.Reader( filename={ "path": "https://some_api...
X Description: Describe the bug Using python pdal, the Reader automatic driver inference based on the input filename fails using filespec. Sample code: pipeline = pdal.Reader( filename={ "path": "h...
Opengraph URL: https://github.com/PDAL/python/issues/197
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python pdal reader driver inference failure with filespec","articleBody":"**Describe the bug**\nUsing python pdal, the `Reader` automatic driver inference based on the input filename fails using filespec.\n\nSample code:\n```python\npipeline = pdal.Reader(\n filename={\n \"path\": \"https://some_api.com/path/to/file.laz\",\n \"headers\": {'Authorization': 'Bearer XXX'}\n }\n).pipeline()\n```\n\nError message:\n\n> infer_reader_driver(): incompatible function arguments. The following argument types are supported:\n> 1. (arg0: os.PathLike | str | bytes) -> str\n> \n>Invoked with: {'path': 'https://some_api.com/path/to/file.laz', 'headers': {'Authorization': 'Bearer XXX'}}\n\n**Expected behavior**\nThe driver inference should be made on `filename[\"path\"]` instead of the whole filespec `filename` and thus be able to guess that the LAS reader is needed.\n\nNote that the behavior is correct when using command line `pdal pipeline`.\n\n**System/installation information:**\n\u003cdetails>\n\n`$ uname -a`:\n```\nLinux ALTALPT119 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux\n```\n\n`$ pdal --version`:\n```\npdal 2.9.3 (git-version: 8c2e7d)\n```\n \n`$ conda list`:\n```\nlibpdal 2.9.3 h260171b_0 conda-forge\nlibpdal-arrow 2.9.3 hdea062b_0 conda-forge\nlibpdal-core 2.9.3 h9d23c72_0 conda-forge\nlibpdal-cpd 2.9.3 h2e8a393_0 conda-forge\nlibpdal-draco 2.9.3 h2e8a393_0 conda-forge\nlibpdal-e57 2.9.3 h1f3591b_0 conda-forge\nlibpdal-hdf 2.9.3 h01cf3b3_0 conda-forge\nlibpdal-icebridge 2.9.3 h01cf3b3_0 conda-forge\nlibpdal-nitf 2.9.3 h811f341_0 conda-forge\nlibpdal-pgpointcloud 2.9.3 hb16824e_0 conda-forge\nlibpdal-tiledb 2.9.3 h99d2d8e_0 conda-forge\nlibpdal-trajectory 2.9.3 h1ebb429_0 conda-forge\npdal 2.9.3 he7fbf59_0 conda-forge\npdal-plugins 1.6.6 pypi_0 pypi\npython-pdal 3.5.3 np2py312hc4b51ad_2 conda-forge\n```\n\n`$ conda info`: \n```\n active environment : suite\n active env location : /home/mgenet/miniconda3/envs/suite\n shell level : 2\n user config file : /home/mgenet/.condarc\n populated config files : /home/mgenet/.condarc\n conda version : 25.11.1\n conda-build version : not installed\n python version : 3.11.11.final.0\n solver : libmamba (default)\n virtual packages : __archspec=1=skylake\n __conda=25.11.1=0\n __cuda=12.2=0\n __glibc=2.39=0\n __linux=6.6.87.2=0\n __unix=0=0\n base environment : /home/mgenet/miniconda3 (writable)\n conda av data dir : /home/mgenet/miniconda3/etc/conda\n conda av metadata url : None\n channel URLs : https://conda.anaconda.org/conda-forge/linux-64\n https://conda.anaconda.org/conda-forge/noarch\n https://repo.anaconda.com/pkgs/main/linux-64\n https://repo.anaconda.com/pkgs/main/noarch\n https://repo.anaconda.com/pkgs/r/linux-64\n https://repo.anaconda.com/pkgs/r/noarch\n package cache : /home/mgenet/miniconda3/pkgs\n /home/mgenet/.conda/pkgs\n envs directories : /home/mgenet/miniconda3/envs\n /home/mgenet/.conda/envs\n platform : linux-64\n user-agent : conda/25.11.1 requests/2.32.5 CPython/3.11.11 Linux/6.6.87.2-microsoft-standard-WSL2 ubuntu/24.04.3 glibc/2.39 solver/libmamba conda-libmamba-solver/25.11.0 libmambapy/2.4.0 aau/0.7.4 c/. s/. e/.\n UID:GID : 1000:1000\n netrc file : None\n offline mode : False\n```\n\n\u003c/details>\n\n","author":{"url":"https://github.com/mrtgenet","@type":"Person","name":"mrtgenet"},"datePublished":"2026-01-28T07:19:29Z","url":"https://github.com/PDAL/python/issues/197"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b88bbba1-42dc-18cd-4524-b5a908c7830b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA70:211F05:1303EFD:17EE647:6B026666 |
| html-safe-nonce | 7e7616d8d0b40a3b95a045564d575433572578af1695b98b1c018b91831e4b7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTcwOjIxMUYwNToxMzAzRUZEOjE3RUU2NDc6NkIwMjY2NjYiLCJ2aXNpdG9yX2lkIjoiMzg2MjgwNjEyOTM5ODY3MDk1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1debd6336ddbdb5b8f8e9ce52a6773cbe305f2d3a71fa5b4e486157b228e5952 |
| hovercard-subject-tag | issue:3863963280 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PDAL/python/197/issue_layout |
| twitter:image | https://opengraph.githubassets.com/993d20823a467f7dbb1413912c53eae568df6cbd0525bfcc49aa9b7cdf98475a/PDAL/python/issues/197 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/993d20823a467f7dbb1413912c53eae568df6cbd0525bfcc49aa9b7cdf98475a/PDAL/python/issues/197 |
| og:image:alt | Describe the bug Using python pdal, the Reader automatic driver inference based on the input filename fails using filespec. Sample code: pipeline = pdal.Reader( filename={ "path": "https://some_api... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mrtgenet |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/PDAL/python git https://github.com/PDAL/python.git |
| octolytics-dimension-user_id | 859797 |
| octolytics-dimension-user_login | PDAL |
| octolytics-dimension-repository_id | 125232078 |
| octolytics-dimension-repository_nwo | PDAL/python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 125232078 |
| octolytics-dimension-repository_network_root_nwo | PDAL/python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width