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

ImportError: cannot import name 'NOWPaymentsSandbox' from 'nowpayments' #15

Open
sonn-gamm opened this issue Aug 31, 2023 · 1 comment

Comments

@sonn-gamm
Copy link

Hi! Thanks for your library.

It seems that following the README and importing NOWPaymentsSandbox from nowpayments is not possible.

If I do print(dir(nowpayments)) I see NOWPayments but not NOWPaymentsSandbox. I am temporarily overriding an instance of NOWPayments by changing the two fields as in here https://github.com/Ventura94/NOWPayments-Python-API/blob/main/nowpayments/sandbox.py#L13-L14 for the time being.

It would be nice if either the Sandbox import would work, or you would update the README to reflect the code.

Thanks!

@Ventura94
Copy link
Owner

You can use from nowpayments.sandbox import NOWPaymetsSandbox. I'll correct the readme right away. Thanks a lot

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

2 participants