Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named garmindb #230

Closed
EinarOlsson opened this issue May 22, 2024 · 2 comments
Closed

ImportError: No module named garmindb #230

EinarOlsson opened this issue May 22, 2024 · 2 comments

Comments

@EinarOlsson
Copy link

When using garmindb_cli.py --all --download --import --analyze --latest I get this error message:

Traceback (most recent call last):
  File "C:\Users\************\AppData\Local\Programs\Python\Python312\Scripts\garmindb_cli.py", line 22, in <module>
    from garmindb import python_version_check, log_version, format_version
ImportError: No module named garmindb

I used "pip install garmindb" to install GarminDB, found the "Python312\Lib\site-packages\garmindb" folder and pasted my modified GarminConnectConfig.json, so I went to the next step which is using "garmindb_cli.py --all --download --import --analyze" and I get this error no matter what.

Sorry if it's something dumb, I have little knowledge on this matter.

@Aodhagan
Copy link

I initially had this problem but was solved by running the file garmindb_cli.py directly from the folder in which it is stored. I used pip to install GarminDb using python 3.12 on Windows 10 and consequently the garmindb_cli.py file was located on the filepath C:\Users\USERNAME\AppData\Local\Programs\Python\Python312\Scripts> replacing USERNAME with your own username.

So in terminal/command prompt simply enter cd C:\Users\USERNAME\AppData\Local\Programs\Python\Python312\Scripts and then you can execute the command given in the README for extracting data garmindb_cli.py --all --download --import --analyze

Now the file should be executed successfully assuming everything was installed correctly as instructed.

@tcgoetz
Copy link
Owner

tcgoetz commented Jan 13, 2025

This is an issue with your python environment and your path variables. This is not a GarminDb issue.

@tcgoetz tcgoetz closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants