Smart_open: gs URI scheme not supported

Created on 20 Feb 2020  路  6Comments  路  Source: RaRe-Technologies/smart_open

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

Most helpful comment

CC @mpenkov .

All 6 comments

CC @petedannemann is this expected?

@yongyct the GCS feature for smart_open has not yet been officially released and is not yet on Pypi. If you want to use GCS functionality please pip install from github:

pip install git+https://github.com/RaRe-Technologies/smart_open

@petedannemann hi, when can we expect a new pypi release?

CC @mpenkov .

@mpenkov can we close this since you just released a new version with the GCS feature?

Yes, I think closing this is appropriate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ivan-yankovyi picture ivan-yankovyi  路  4Comments

MartinThoma picture MartinThoma  路  3Comments

gdmachado picture gdmachado  路  5Comments

ivanhigueram picture ivanhigueram  路  5Comments

ziky90 picture ziky90  路  3Comments