-
Notifications
You must be signed in to change notification settings - Fork 26
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
cannot import name 'ApiContext' from 'bunq.sdk.context' #132
Comments
We had the same issue after upgrading to the latest version and it's because there are several breaking changes in the new version... Change the import to:
In case it might help, other breaking changes that I have encountered are:
And whereas before you could initialize the ApiContext with something as
Good luck! |
Thank you @MarcellaJP ! |
The changelog is restored in 9d7dbc9, indicating that major refactoring was merged in #117. @angelomelonas It would be neat if a word of caution would be added to the README and in the description of the 1.13.1 release itself that updating from 1.10.16 to 1.13.1 requires users of this package to implement the fixes as indicated by @MarcellaJP. |
Hi everyone. I apologise for the very late response to this issue. In order to improve the readability and maintainability of the Python SDK, we performed this refactor. Instead of having functions in very large files, we extracted them into separate files (to match the directory and file structure of the other SDKs). In the process, we also added type hints and other general improvements. Unfortunately, this leads to the breaking changes @echoes341 and @MarcellaJP mention above. We definitely should have mentioned them in the CHANGELOG. We have created a new issue which mentions the breaking changes. We will create a new PR that mentions the breaking changes (and the issue) in the CHANGELOG. |
Awesome, thanks @angelomelonas 🔥 🤩 |
I cannot import
ApiContext
. I'm not expert on Python, so there's no much I can do to help unfortunately.Steps to reproduce:
This is easy to reproduce with docker
$ docker run --rm -it python bash
On the interactive shell:
What should happen:
What happens:
SDK version and environment
Response id
Extra info:
The text was updated successfully, but these errors were encountered: