gs URI scheme not supported
See original GitHub issueProblem description
- What are you trying to achieve? Trying to use this with GCS objects for streaming the latter
- What is the expected result? GCS object to be opened normally as per README
- What are you seeing instead?
Got:
NotImplementedError: unknown URI scheme 'gs' in 'gs://...
Steps/code to reproduce the problem
My Code
import smart_open
smart_open.open('gs://...')
My Traceback
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\path\to\anaconda3\envs\test\lib\site-packages\smart_open\smart_open_lib.py", line 308, in open
errors=errors,
File "C:\path\to\anaconda3\envs\test\lib\site-packages\smart_open\smart_open_lib.py", line 490, in _shortcut_open
parsed_uri = _parse_uri(uri)
File "C:\path\to\anaconda3\envs\test\lib\site-packages\smart_open\smart_open_lib.py", line 737, in _parse_uri
"unknown URI scheme %r in %r" % (parsed_uri.scheme, uri_as_string)
NotImplementedError: unknown URI scheme 'gs' in 'gs://...'
Versions
1.9.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top Results From Across the Web
InvalidUrlError: Unrecognized scheme " gs" - Stack Overflow
1 Answer 1 · Martin is totally right. That \ looks odd to me. · 1. This probably once was a line-wrap, which...
Read more >Swift URL with Custom Scheme in Query String Fails
I get a run time error using this URL in a data task that says:*. Code Block. Error Domain=NSURLErrorDomain Code=-1002 "unsupported URL". UserInfo={ ......
Read more >Change uri to url? - Google Groups
I'm using it with node js, and I have successfully uploaded to the storage with Google Cloud, the only issue is even though...
Read more >duplicity: UnsupportedBackendScheme: scheme not ...
I was running the same issue using duplicity 0.7.18.2 in Ubuntu 16.04 and I solved it by reinstalling python-openssl:.
Read more >Troubleshooting | Cloud Storage
Run gcloud storage ls --recursive gs://www.example.com/dir/ . ... Cloud Storage has a global namespace so you may not name a bucket with the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
CC @mpenkov .
Yes, I think closing this is appropriate.