Skip to content

fix(download): treat file:// URLs as local paths#995

Open
Bartok9 wants to merge 1 commit into
Physical-Intelligence:mainfrom
Bartok9:fix/maybe-download-file-uri
Open

fix(download): treat file:// URLs as local paths#995
Bartok9 wants to merge 1 commit into
Physical-Intelligence:mainfrom
Bartok9:fix/maybe-download-file-uri

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 10, 2026

Copy link
Copy Markdown

Summary

maybe_download only short-circuited bare local paths (scheme == ""). A file:///… URI was treated as remote, building a cache path under OPENPI_DATA_HOME and attempting network download helpers.

Motivation

Safe local resolution for scripts and tests that pass Path.as_uri().

Changes

  • Handle file scheme beside empty scheme
  • Unit test via path.as_uri()

Verification

New test test_download_file_uri.

Duplicate check

No open PR for file:// short-circuit.

file:// URIs previously fell through to the remote cache path builder
and would attempt a fsspec/gs download layout. Resolve them to the
local filesystem like bare paths.
@jimmyt857
jimmyt857 removed their request for review July 11, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant