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

Python 3 imports in __init__.py #119

Closed
sujitnair opened this issue Mar 23, 2015 · 3 comments
Closed

Python 3 imports in __init__.py #119

sujitnair opened this issue Mar 23, 2015 · 3 comments

Comments

@sujitnair
Copy link

I get

ImportError: No module named 'gateway'

When I import billing in Python 3.3. The solution is to replace biling/init.py with

from .gateway import Gateway, get_gateway, GatewayNotConfigured
from .integration import Integration, get_integration, IntegrationNotConfigured
from .utils.credit_card import CreditCard

Everything seems ok. To get Amazon/Paypal to work I also needed to replace init.py inside billing/models to have the right import syntax in Python 3.3

@theju
Copy link
Contributor

theju commented Mar 23, 2015

Python3 migration was not completely done as mentioned in #112. I pushed in some changes and some gateways and integrations still won't work. Can you please confirm that Amazon FPS and PayPal work for you?

@sujitnair
Copy link
Author

Yes, Amazon FPS, Stripe and PayPal works for me. I haven't tried anything else.

@theju
Copy link
Contributor

theju commented Mar 26, 2015

Thanks for verifying. Yes, some of the other gateways and integrations have issues as in the upstream library is still not supported on Python3.

@theju theju closed this as completed Mar 26, 2015
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