You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to instantiate a UPath from an s3 path with a # in the URI, the path gets truncated.
I'm running this on Ubuntu 22.04
To reproduce:
from upath import UPath
# this is a public bucket
s3_uri = "s3://aind-open-data/ecephys_661279_2023-03-23_15-31-18/ecephys_compressed/experiment1_Record Node 104#Neuropix-PXI-100.ProbeA.zarr/"
s3path = UPath(s3_uri)
s3path
>>> S3Path('s3://aind-open-data/ecephys_661279_2023-03-23_15-31-18/ecephys_compressed/experiment1_Record Node 104')
That is indeed a bug related to the urllib based parsing of the fsspec URIs.
As a workaround for now you can provide only the base path of the bucket and join the other parts:
importupath# for example like this (or using pth.joinpath, or `pth / "otherpath"`)upath.UPath("s3://aind-open-data/ecephys_661279_2023-03-23_15-31-18/ecephys_compressed", "experiment1_Record Node 104#Neuropix-PXI-100.ProbeA.zarr/", anon=True)
Hi,
When I try to instantiate a
UPath
from an s3 path with a#
in the URI, the path gets truncated.I'm running this on Ubuntu 22.04
To reproduce:
Maybe similar to #144 ?
The text was updated successfully, but these errors were encountered: