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
ImportError: cannot import name 'JSONDecodeError' #72
Comments
@jeroenmeulenaar Do you mind upgrading to:
As I could not reproduce this on Line 5 in 3ba4987
So, if this has to do with python 3.4.2, then we must either increase the minimum required python version, or find out why it doesn't work on that version. |
@OGKevin I'd like not to upgrade, as I like to stay on Debian stable. I think I can workaround this by changing the offending import Line 2 in 3ba4987
to
I don't know enough about the differences between I also run into a new issue: #73. If it's really needed I can look into upgrading python, but I'd like to understand it first... |
@jeroenmeulenaar I could reproduce this indeed on So we have 2 options, increase the minimum required python version or see if we can make it backward compatible. I think if we dive into the change logs of python we could find out why it works on Cant you use pyenv on debian stable ? |
@OGKevin Here is the original python issue: https://bugs.python.org/issue19361, from https://docs.python.org/3/whatsnew/3.5.html. I think it could it be solved by changing Line 254 in 3ba4987
to except ValueError , since JSONDecodeError is a subclass of ValueError . It doesn't look like you use the added functionality of JSONDecodeError anyway :)
And yes, I could workaround it (pyenv, or making my own fork), but maybe others hit this issue as well. Debian stable is not very up-to-date, but it's very stable :) |
@jeroenmeulenaar I see, do you mind making a PR if you think you have fixed it ? If not ill look into it, but that will take some time I have a lot on my list ATM. We will include it in the |
…k_python#72 Use ValueError isntead of JsonDecodeError. (#72)
Steps to reproduce:
pip3 install bunq_sdk --upgrade
test.py
which containsfrom bunq.sdk import context
What happens:
SDK version and environment
needs #78
The text was updated successfully, but these errors were encountered: