-
Notifications
You must be signed in to change notification settings - Fork 174
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
Issues with keypairs #115
Comments
|
In the second way, you need import Keypair.
|
@bolshoy "Maybe a problem with ed25519 package (it's compiled from C)?" I don't think the problem lies here, after all, in the earlier issue I faced, I went to the Stack Overflow site and used Microsoft Visual Studio with build tools to even pip install stellar_base. And one query, when you meant C, you meant C or C++? @overcat Hmm, I kinda deduce that, but the issue is when I import Keypair from stellar_base.keypair import Keypair And type any code related to Keypair underneath it. Traceback (most recent call last): I somehow have memory issues? |
@Jaykingamez I meant |
@bolshoy Python 3.6.5. Welp, I guess if i really want to learn to develop on Stellar, i have to
Or
|
@bolshoy Maybe you can try to downgrade to Python 3.5 first, the cases reported have all occurred in Win10 + Python 3.6 |
@overcat Downgraded to Python 3.5.0, Numpy not exactly working, receiving this error. Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): Original error was: cannot import name 'multiarray' Numpy i'm using came with the stellar_base. Oh and here's the code that triggered this error, from stellar_base.keypair import Keypair |
@Jaykingamez this is a different problem, again related to python on Windows. See if you have a solution here: numpy/numpy#9272 |
@Jaykingamez |
Going through the READ.ME docs, I hit a major roadblock.
Typing this:
from stellar_base.keypair import Keypair
kp = Keypair.random()
GIves me this error:
Traceback (most recent call last):
File "D:/Stellar toybox.py", line 5, in
kp1 = Keypair.deterministic(m,index=1)
File "D:\lib\site-packages\stellar_base\keypair.py", line 35, in deterministic
return cls.from_raw_seed(seed)
File "D:\lib\site-packages\stellar_base\keypair.py", line 53, in from_raw_seed
signing_key = ed25519.SigningKey(raw_seed)
File "D:\lib\site-packages\ed25519\keys.py", line 85, in init
vk_s, sk_s = _ed25519.publickey(sk_s)
MemoryError
Huh? MemoryError?
Ok, so the first method creating Stellar key pair doesn't work for me, let's try the eecond method. It works, very well and...
It comes to here:
kp = Keypair.deterministic(m) #I typed this out without defining language as I wanted it to be in Standard English
Traceback (most recent call last):
File "D:/Stellar toybox.py", line 4, in
kp = Keypair.deterministic(m)
NameError: name 'Keypair' is not defined
Ok so it's not defined, let me scroll down more to see whether anything can help.
kp1 = Keypair.deterministic(m, lang='chinese', index=1)#Same error
kp2 = Keypair.deterministic(m, lang='chinese', index=2) #Same error
Here's my code, I typed it all out as I really wanted to learn how to use the python-base package. (Some errors might be due to my bad typing)
from stellar_base.utils import StellarMnemonic
sm = StellarMnemonic()
m = sm.generate()
kp1 = Keypair.deterministic(m,index=1)
kp2 = Keypair.deterministic(m,index=2)
The text was updated successfully, but these errors were encountered: