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
Important: Please do not post usage questions here.
To get a quick response, please ask a question on Stack Overflow using gspread tag.
See existing questions: https://stackoverflow.com/questions/tagged/gspread
Describe the bug
It seems that we can't pass None to gspread.Client, even though the documentation says you can.
gc = Client(None, session)
To Reproduce
pip install gspread authlib (See Environment info)
Traceback (most recent call last):
File "main.py", line 41, in <module>
gc = Client(None, session)
File "/Users/.../test_env/lib/python3.8/site-packages/gspread/client.py", line 39, in __init__
self.auth = convert_credentials(auth)
File "/Users/.../test_env/lib/python3.8/site-packages/gspread/utils.py", line 50, in convert_credentials
module = credentials.__module__
AttributeError: 'NoneType' object has no attribute '__module__'
Additional context
temporally workaround: Use gspread.service_account (Not use Authlib) gc = service_account(credential_file, scopes)
ref: #768
The text was updated successfully, but these errors were encountered:
@burnash The code on 3.6.0 is quite old now. Would love to get a new release so I can directly pip install rather than using the git commit for this feature.
Important: Please do not post usage questions here.
To get a quick response, please ask a question on Stack Overflow using
gspread
tag.See existing questions: https://stackoverflow.com/questions/tagged/gspread
Describe the bug
It seems that we can't pass
None
togspread.Client
, even though the documentation says you can.To Reproduce
pip install gspread authlib
(See Environment info)python main.py
Expected behavior
returns Client (not raise Exception)
expected in https://blog.authlib.org/2018/authlib-for-gspread or https://gspread.readthedocs.io/en/latest/advanced.html#using-authlib
Code example*
ref: https://blog.authlib.org/2018/authlib-for-gspread
Environment info:
Authlib 0.14.2
Stack trace
Additional context
temporally workaround: Use
gspread.service_account
(Not use Authlib)gc = service_account(credential_file, scopes)
ref: #768
The text was updated successfully, but these errors were encountered: