tcgoetz / GarminDB

Download and parse data from Garmin Connect or a Garmin watch, FitBit CSV, and MS Health CSV files into and analyze data in Sqlite serverless databases with Jupyter notebooks.
GNU General Public License v2.0
1.11k stars 137 forks source link

ImportError: No module named request #22

Closed Saralkarki closed 5 years ago

Saralkarki commented 5 years ago

Hi, I've been trying to extract the Garmin data and here's the error I received. My command

make GC_DATE='01/10/2018' GC_DAYS=150 GC_USER=saral.karki GC_PASSWORD=password create_dbs

And the error I get

Traceback (most recent call last): File "download_garmin.py", line 8, in <module> import requests ImportError: No module named requests make: *** [download_monitoring] Error 1

What am I doing wrong?

I tried running pip install requests but I get a message saying requirement already satisfied.

tcgoetz commented 5 years ago

Did you run make setup ? make setup should result in the makefile target "install_deps" running which installs the requests python moduule: https://github.com/tcgoetz/GarminDB/blob/b327b9ab0fc737db7faceda8d5632ba53d3975b5/Makefile#L106

tcgoetz commented 5 years ago

I tried running pip install requests but I get a message saying requirement already satisfied.

This sounds like problem with your Python environment. What is your environment? OS? Python version?

Saralkarki commented 5 years ago

It indeed was my python environment causing an issue. I got that fixed thanks to your direction. 👍 Finally, was able to get the data.