question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gs URI scheme not supported

See original GitHub issue

Problem 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
piskvorkycommented, Feb 28, 2020

CC @mpenkov .

0reactions
mpenkovcommented, Mar 17, 2020

Yes, I think closing this is appropriate.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found