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
Hi. There are a handful of ways to express windows paths containing drive letters as file URIs. This is not one of them. Two /'s after the file: indicates that the next component is a hostname, which is allowed in the file URI format for certain platform-specific non-local file locations, and that isn't what you want here.
Here's how the urlparse results look using a few of the examples from RFC 8089:
I'm trying to use
requests-file
on Windows using an absolute path like this:"file://C:/foo/bar"
.The problem is that the current code uses
urlparse()
and.netloc
contains"C:"
in that case which triggers an exception:requests-file/requests_file.py
Line 36 in 829ecea
Just to demonstrate the problem:
Background: I'm trying to add support for local repositories in conda-lock and that project tries to support also Windows users.
Do you think we could add a workaround to support Windows drive letters? (just on Windows)
The text was updated successfully, but these errors were encountered: