-
Notifications
You must be signed in to change notification settings - Fork 82
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
Unable to import apicontrollers in python 3.5.2 #96
Comments
@CRiva , please take a look at the authorizenet sdk python sample code at https://github.com/AuthorizeNet/sample-code-python for help on how to use the python sdk. Try running the payment Transactions as given in the sample code. |
That's the thing, I'm not even interacting with the sdk yet. Yes I've written my class, but I'm not even calling any of the methods within it yet, all I'm doing is importing the file. To test, just to be sure, I copy/pasted the code from https://github.com/AuthorizeNet/sample-code-python/blob/master/TransactionReporting/get-settled-batch-list.py and attempted to just import the file. and still it was the |
I ran another small test. It appears that the API works fine when I initiate from the same file, but when I try to import the file to use elsewhere, it errors out with the large error I put before. |
Okay, I tried one more thing that I found here: pypa/pip#5079 Apparently the Since I use the By just reversing the import order, the error went away. So this is probably not an issue with your code, but an issue with the python requests' code. |
@Sapbasu15 Thank you for pointing that out to me, and updating me on the situation. I will make sure I have my imports in the correct order for the time being until the problem is resolved. |
Fix is part of new sdk release 1.1.0 |
I am working on a project for my place of employment using the python sdk, and am receiving a massive error when trying to
from authorizenet import apicontrollers
.In my module
authorize_net_api.py
I have made my own class to interface with the sdk.it starts with:
through the process of elimination I commented the lines out and tested one by one to see which line was giving the error, and sure enough, it was the
apicontrollers
when running my own tests using
tox
, I'm not even testing the API yet, just importing my class, I get thisI was hoping you could advise and help.
Thank you.
The text was updated successfully, but these errors were encountered: