drift-labs / driftpy

python sdk to interact with drift v2
https://drift-2.gitbook.io/driftpy-for-dummies/
56 stars 36 forks source link

How to fix solana.keypair module. #63

Closed wkshare closed 5 months ago

wkshare commented 6 months ago
python3 floating_maker.py
Traceback (most recent call last):
  File "/Users/wangkai/workspace/init7/Drift/driftpy/examples/floating_maker.py", line 7, in <module>
    from solana.keypair import Keypair
ModuleNotFoundError: No module named 'solana.keypair'

I have solana module. but solana.keypair what is mean

akasimo commented 6 months ago

should work by using below instead:

from solders.keypair import Keypair

wkshare commented 5 months ago

same error:

>>> from solana.keypair import Keypair
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'solana.keypair'
wkshare commented 5 months ago

The SDK needs to update. to replace solders.keypair from solana.keypair.