Support Conda installation
Versions
OS:
Python:
krakenex: 0.1.4
What are you trying to achieve?
Try to perform basic balance checking in the examples https://github.com/veox/python3-krakenex/blob/master/examples/print-account-balance.py
# code sample
import krakenex
k = krakenex.API()
# next raw comment line added by veox
What do you expect to happen?
I expect it to show the balance
What happens instead?
It doesnt run , i believe this is because of the version installed doesnt have the API yet ?
# error message
Traceback (most recent call last):
File "krakenex.py", line 1, in <module>
import krakenex
File "/Users/kashingcheung/Desktop/Coursera/AnacondaProjects/Kraken/krakenex.py", line 3, in <module>
k = krakenex.API()
AttributeError: module 'krakenex' has no attribute 'API'
Version 0.1.4 does have API exported.
0.1.4 is the current stable. API has been there since version 0.0.1 (i.e. always).
As per the issue title... Do you mean the distribution and its package manager?..
I thought it is version issues thats why I point it to the distribution and its package manager? In that case , my issues is pretty srtaight forward - I use the example
However, it comes back with below error
# error message
Traceback (most recent call last):
File "krakenex.py", line 1, in <module>
import krakenex
File "/Users/kashingcheung/Desktop/Coursera/AnacondaProjects/Kraken/krakenex.py", line 3, in <module>
k = krakenex.API()
AttributeError: module 'krakenex' has no attribute 'API'
So... You've created a file called krakenex.py, to which you've copied the contents of examples/print-account-balance.py. Correct?
If so, you're shadowing the actual krakenex module.
That is, don't name your script same as the package.
Did the above advice help resolve the issue?
Yes. Thanks !
Noel Maersk [email protected] 於 2017年9月17日 03:36 寫道:
Did the above advice help resolve the issue?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.