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

trouble to run garmindb_cli #146

Closed llarbodiere closed 1 year ago

llarbodiere commented 2 years ago

Describe the bug I installed the package and added the json file with my identifiers at the right place. I import the package and it works. But when I run the garmindb_cli.py --all --download --import --analyze in my vs code command prompt, it just display the python code in a bloc note (I have an anaconda env with python installed in it).

I also tried to run the following in my jupyter notebook but he does not find the package: %run C:\Users\lucas\anaconda3\Lib\site-packages\garmindb\garmindb_cli.py --all --download --import --analyze

Expected behavior The data to be imported

tcgoetz commented 2 years ago

Looks like your on Windows.

What happens when you run it from a command prompt like C:\Users\lucas\anaconda3\Bin\python.exe C:\Users\lucas\anaconda3\Lib\site-packages\garmindb\garmindb_cli.py --all --download --import --analyze

Is C:\Users\lucas\anaconda3\Lib\site-packages\garmindb\garmindb_cli.py marked as executable?

Sounds similar to this: https://github.com/Microsoft/vscode/issues/9987

llarbodiere commented 2 years ago

It is so strange I don't have python.exe in the bin folder. And I don't have the garmindb_cli.py folder. Maybe I should unistall and reinstall the library?

image

I'll look at the vscode#9987 thanks

tcgoetz commented 2 years ago

python.exe doesn't come from garmindb, that's your python install. garmindb_cli.py may be in a bin directory.

deMathias commented 2 years ago

For me garmindb_cli is available at: C:\Users\\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Scripts

tcgoetz commented 1 year ago

old