XRPLF / xrpl-py

A Python library to interact with the XRP Ledger (XRPL) blockchain
ISC License
151 stars 86 forks source link

Error: ModuleNotFoundError: No module named 'xrpl.clients'; 'xrpl' is not a package #683

Closed lendlycagata closed 9 months ago

lendlycagata commented 9 months ago

from xrpl.clients import JsonRpcClient JSON_RPC_URL = "https://s2.ripple.com:51234/" client = JsonRpcClient(JSON_RPC_URL)

mvadari commented 9 months ago

Have you downloaded the package with pip install xrpl-py in the command-line?

lendlycagata commented 9 months ago

yes ,. docs said like this pip install xrpl-py I'm switching from py to JS - now what I did was use the xrpl ledger tutorial for JS for testnet ,. I was able to use the wallet however it's not showing the fund, still trying to figure this out.

I was hoping they can fix the python 3.8 versioin and higher is good right? coz I tried 3.7 still getting same error. Try to double check the docs if might need an update

mvadari commented 9 months ago

Python 3.7 and 3.8 are both supported, as are all subsequent Python versions. The code works for me locally with the latest version of xrpl-py (v2.5).

That error usually occurs because the package hasn't been installed. Perhaps it was installed in the wrong location or something.

JST5000 commented 9 months ago

Closing as I believe @mvadari is correct about the root cause. This stack overflow may help verify whether it is intalled: https://stackoverflow.com/questions/1051254/check-if-python-package-is-installed