argrento / huami-token

Script to obtain watch or band bluetooth token from Huami servers
MIT License
410 stars 94 forks source link

ModuleNotFound #44

Closed snjyr123 closed 2 years ago

snjyr123 commented 2 years ago

Traceback (most recent call last): File "huami_token.py", line 35, in import requests ModuleNotFoundError: No module named 'requests'

This error pops up whenever I type in my credentials into powershell for getting the key.

snjyr123 commented 2 years ago

Fixed the error by installing requests for python and every other dependency I am still getting the error no module named rich, even though I installed it.

wlxsdyx commented 2 years ago

try this pip install requests and this pip install rich

mawoka-myblock commented 2 years ago

@snjyr123 You haven't read the README.md! It clearly says

Clone this repo: git clone https://github.com/argrento/huami-token.git Install requirements: pip3 install -r requirements.txt

snjyr123 commented 2 years ago

try this pip install requests and this pip install rich

still getting the error :(

snjyr123 commented 2 years ago

tried installing rich manually as well...

snjyr123 commented 2 years ago

Traceback (most recent call last): File "huami_token.py", line 36, in from rich import box ModuleNotFoundError: No module named 'rich'

mawoka-myblock commented 2 years ago

Try creating a virtualenv (virtualenv venv/) and activate it (Linux: source venv/bin/activate, Windows: ?). Then install the requirements: pip3 install -r requirements.txt and then run the script.

snjyr123 commented 2 years ago

I just ended up using Ubuntu and downloading it and it worked real quick, thx for all of your help though!