Can you help please. When I start the script, it throws me this error: C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (5.1.0)/charset_normalizer (2.0.12) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported "
Traceback (most recent call last):
File "C:\Users\user\Downloads\v.04\clean.py", line 2, in <module>
from bitcoinlib.wallets import Wallet, HDWallet
ImportError: cannot import name 'HDWallet' from 'bitcoinlib.wallets' (C:\Users\user\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\bitcoinlib\wallets.py)
This error message is indicating that there was an issue importing the HDWallet class from the bitcoinlib.wallets module. There are a couple of possible reasons for this error.
- Outdated bitcoinlib library: One possible reason for this error is that you might be using an outdated version of the bitcoinlib library that doesn't include the HDWallet class. You could try updating the library to the latest version by running pip install --upgrade bitcoinlib.
- Incorrect installation: Another possible reason is that the bitcoinlib library might not have been installed correctly. You could try uninstalling and reinstalling the library by running pip uninstall bitcoinlib followed by pip install bitcoinlib.
- Name conflict: It's also possible that there may be another module or package in your Python environment with the same name as bitcoinlib, which is causing the import to fail. You could try renaming the bitcoinlib package to something else (e.g. mybitcoinlib) and then updating your import statements accordingly.
You could try these steps one by one until the error is resolved.