deso-protocol / deso-protocol/deso-python-sdk
python3 deso_sdk.py failed (ModuleNotFoundError: No module named 'bip32')... but python deso_sdk.py works?
- 主要语言
- Python
- 星标
- 5
- 派生
- 6
- PR 合并指标
- 30 天内没有已合并 PR
描述

This might just be a local issue on my machine. But as you can see in the image "python3" seems to be referring to another install of Python on my system (not the virtual environment), where as "python" is referring to the "myenv" python.
GOOD:
(myenv) C:\Users\cjacob\Documents\10X\focus>python deso_sdk.py
IS_TESTNET=True, NODE_URL=https://test.deso.org
ERROR: You must set SEED_PHRASE_OR_HEX to a seed that has DESO in it, or else nothing will work. Use https://test.deso.org or dev.openfund.com to create an account and get starter DESO since IS_TESTNET=True. Change IS_TESTNET to switch between mainnet and testnet. See the top of main for other arguments. Read through main to see a bunch of useful transaction types. Other useful links: docs.deso.org explorer-testnet.deso.com, wallet-testnet.deso.com, dev.openfund.com, beta.focus.xyz. Message https://t.me/deso_pos_discussion for more help.
vs
BAD:
(myenv) C:\Users\cjacob\Documents\10X\focus>python3 deso_sdk.py
Traceback (most recent call last):
File "C:\Users\cjacob\Documents\10X\focus\deso_sdk.py", line 11, in
from bip32 import BIP32, base58
ModuleNotFoundError: No module named 'bip32'
I figure this Issue post might help someone else in the same situation.
You're welcome to resolve this issue if you think this is just a local problem (I'm not an expert on Python / Python Virtual Environments)
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 deso_sdk.py 开始,尤其检查第 11 行对 bip32 的导入,并比较虚拟环境中 `python` 和 `python3` 使用的解释器。检查每个环境中是否都安装了 bip32;这应能明确问题是项目依赖项/设置问题,还是本地 Python 安装问题。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100