deso-protocol / deso-protocol/deso-python-sdk

python3 deso_sdk.py failed (ModuleNotFoundError: No module named 'bip32')... but python deso_sdk.py works?

Ouverte
#3 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
5
Forks
6
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

![Image](https://github.com/user-attachments/assets/1d48fa31-0e18-485b-b52c-5932a1184719)

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)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Commencez par deso_sdk.py, en particulier par l’importation de bip32 à la ligne 11, et comparez les interpréteurs utilisés par `python` et `python3` dans l’environnement virtuel. Vérifiez si bip32 est installé dans chaque environnement ; cela devrait permettre de déterminer s’il s’agit d’un problème de dépendance/configuration du projet ou d’un problème lié à l’installation locale de Python.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
tooling
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.