Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError("print_exception() missing 2 required positional arguments: 'value' and 'tb'") #12

Open
tbbooher opened this issue Apr 21, 2021 · 3 comments

Comments

@tbbooher
Copy link

client = sheets_client(AUTH_SCOPE_READONLY) produces

client
PyError ($(Expr(:escape, :(ccall(#= /home/tim/.julia/packages/PyCall/BD546/src/pyfncall.jl:43 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'TypeError'>

TypeError("print_exception() missing 2 required positional arguments: 'value' and 'tb'")

[email protected]:62[inlined]
[email protected]:66[inlined]
_handle_error(::String)@exception.jl:83
macro [email protected]:97[inlined]
#[email protected]:43[inlined]
[email protected]:458[inlined]
[email protected]:42[inlined]
_pycall!(::PyCall.PyObject, ::PyCall.PyObject, ::Tuple{PyCall.PyObject}, ::Int64, ::Ptr{Nothing})@pyfncall.jl:29
_pycall!(::PyCall.PyObject, ::PyCall.PyObject, ::Tuple{PyCall.PyObject}, ::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})@pyfncall.jl:11
var"#_#114"(::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, ::PyCall.PyObject, ::PyCall.PyObject, ::Vararg{Any, N} where N)@pyfncall.jl:86
(::PyCall.PyObject)(::PyCall.PyObject, ::Vararg{Any, N} where N)@pyfncall.jl:86
var"#sheets_client#12"(::RateLimiter.TokenBucketRateLimiter, ::RateLimiter.TokenBucketRateLimiter, ::typeof(GoogleSheets.sheets_client), ::GoogleSheets.AuthScope)@client.jl:186
sheets_client(::GoogleSheets.AuthScope)@client.jl:148
top-level scope@Local: 1[inlined]
@chipkent
Copy link
Owner

chipkent commented May 5, 2021

The errors coming from PyCall are awful. I'm working on some improvements in another branch which I hope to finish within a week. I have seen one more problem along these lines and have not had a chance to look at it yet. It just started appearing in the last few days.

Can you confirm that you have gone through these steps in the readme?

To use:

  • Create a Google Sheets API token from either the python quick start reference or the developer's console.
  • Place the Google Sheets API credentials.json file in ~/.julia/google_sheets/.

@chipkent
Copy link
Owner

Can you pull the latest and see if the problem has been resolved?

@Leooop
Copy link

Leooop commented Feb 3, 2022

Hi @chipkent
Thanks for this package.
I have the same issue, with similar stacktrace when calling sheets_client(AUTH_SCOPE_READONLY).
I went through the steps you mentioned.
Besides, the credentials_file function called within sheet_client returns .julia/config/google_sheets/credentials.json which is not the path you provide in your previous comment nor in the readme. Trying both locations didn't work.
Any help would be very appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants