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

Required Packages ERROR; Config.yaml file; Overall Data File Structure Image before running main.py; #1

Open
MichaelDHallPolarFlow opened this issue Mar 27, 2023 · 6 comments

Comments

@MichaelDHallPolarFlow
Copy link

ISSUE # 1:
When I run
$ pip install -r requirements.txt
I get two packages with error messages.
json
glob

ERROR: Could not find a version that satisfies the requirement json (from versions: none)
ERROR: No matching distribution found for json

ERROR: Could not find a version that satisfies the requirement glob (from versions: none)
ERROR: No matching distribution found for glob

############################################################################
ISSUE #2:
I have followed the API instructions and created an open access link to my Polar Flow account.
image

A config.yaml file does not exist in your repository.
Am I supposed to create one with only the Client ID and Client Secret information generated from application above?
Can you provide an example config.yaml file that can be used?

#######################################################################################################

ISSUE #3:
What is the data structure supposed to look like. You say you need to create some folders with data being the top level directory. However where in relation to your repository is this supposed to be?

This is my data tree.

image

This is the data tree you say we need to create before executing main.py

image

Thank you if you can help me better understand...

Michael

@MichaelDHallPolarFlow
Copy link
Author

When I try to run main.py this is what I get.

image

@MichaelDHallPolarFlow
Copy link
Author

Okay I had to fix a typo, in line 14 of the constants.py
'slach' needs to be 'slash'

I had to pip install 'geopy' and 'unidecode' from line 6, and line 7 of utils.py

And now I get to this...

image

@MichaelDHallPolarFlow
Copy link
Author

Now, however, when I run the analysis. It fails to load .json files.

image
Do I need to first Build database Option 3 before Analysis?

@MichaelDHallPolarFlow
Copy link
Author

I created a config.yml file but I am not sure where to put it or if it is even working properly.

image

@MichaelDHallPolarFlow
Copy link
Author

MichaelDHallPolarFlow commented Mar 27, 2023

I was able to build a database processing three training sessions

image

@MichaelDHallPolarFlow
Copy link
Author

MichaelDHallPolarFlow commented Mar 27, 2023

I choose option 1 analysis after building the database.
And even though it failed to find all *.json files out from the list of 15 provided....
image

I choose option 0 for ALL SPORT.
I choose time span from the beginning to analyze....
I chooses option 1 get sessions count instead of option 2 get sessions distances...well because I am not using GPS...

At the end it produces a bar graph with number of sessions per sport training activity.

image

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

1 participant