gcsfs: RuntimeError "The OAuth client was deleted"
I am trying to use gcsfs on a new system. I am invoking it as follows
import gcsfs
fs = gcsfs.GCSFileSystem(project='pangeo-181919', token=None)
I get the following error, which I really don’t understand or know how to recover from. Any advice would be appreciated. This is on a remote server where I have no gloud utilities installed. The python version is 3.5…don’t know if that matters.
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-1-90388e4b9890> in <module>()
1 import gcsfs
----> 2 fs = gcsfs.GCSFileSystem(project='pangeo-181919', token=None)
/home/rpa/.conda/envs/dask_distributed/lib/python3.5/site-packages/gcsfs/core.py in __init__(self, project, access, token, block_size)
162 self.access = access
163 self.dirs = {}
--> 164 self.connect()
165 self._singleton[0] = self
166
/home/rpa/.conda/envs/dask_distributed/lib/python3.5/site-packages/gcsfs/core.py in connect(self, refresh)
229 params={'client_id': not_secret['client_id'],
230 'scope': scope})
--> 231 validate_response(r, path)
232 data = json.loads(r.content.decode())
233 print('Enter the following code when prompted in the browser:')
/home/rpa/.conda/envs/dask_distributed/lib/python3.5/site-packages/gcsfs/core.py in validate_response(r, path)
108 raise ValueError("Bad Request: %s\n%s" % (path, msg))
109 else:
--> 110 raise RuntimeError(m)
111
112
RuntimeError: b'{\n "error" : "deleted_client",\n "error_description" : "The OAuth client was deleted."\n}'
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 32 (32 by maintainers)
Commits related to this issue
- clarify authentication related to #46 — committed to rabernat/gcsfs by rabernat 7 years ago
- clarify authentication related to #46 — committed to hanseaston/gcsfs by rabernat 7 years ago
How convenient? In my terminal I just click on the link and a browser opens. I suppose that this may depend on terminal choice though.