-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error line 17 activity.py #4
Comments
Hello. This exception is raised on purpose. It means that the data regarding the number of floors climbed could not be found in your export. Can you check whether you have files matching |
You might want to try an update version from this branch: https://github.com/PhilippImhof/FromSamToGarm/tree/issue-3 Please tell me, if that works for you. It will inform that no floor data could be found, but continue anyway. |
yes i have com.samsung.health.floors_climbed.20241130133710.csv with Visual Code Studio on my raspberrypi5 pi@raspberrypi5:~/AAA $ python activity.py |
If the script cannot find calories, floors climbed and weight, you are probably running it in the wrong directory. The error you get on the raspberry pi comes from malformed data in the CSV. This has been addressed in issue #2, I am waiting for feedback from the reporter. You might want to check it out as well. |
.\files i use this activity.py on root directory... where the .csv files are saved. i tried it in the different directory's |
That is very strange, because I simply use Would you mind posting the list of CSV files you have in that directory? You could probably do something like:
|
Only one file from all of these three types S:\AAA\samsunghealth>dir com.samsung.health.floors_climbed.*.csv Verzeichnis von S:\AAA\samsunghealth 14.12.2024 12:18 2.215.474 com.samsung.health.floors_climbed.20241214121856.csv S:\AAA\samsunghealth>dir com.samsung.shealth.calories_burned.details.*.csv Verzeichnis von S:\AAA\samsunghealth 14.12.2024 12:19 624.876 com.samsung.shealth.calories_burned.details.20241214121856.csv S:\AAA\samsunghealth>dir com.samsung.shealth.activity.day_summary.*.csv Verzeichnis von S:\AAA\samsunghealth 14.12.2024 12:19 915.952 com.samsung.shealth.activity.day_summary.20241214121856.csv S:\AAA\samsunghealth> If you like, we can talk over Discord.... |
Thanks for checking that. This is very, very strange. Could you try the following:
Because, in your first comment, I see you started python in the directory |
S:\AAA\samsunghealth>C:/Users/Jens/AppData/Local/Microsoft/WindowsApps/python3.11.exe
glob can see the right files.... no, all of the files are in this Directory S:\AAA\samsunghealth this was only the Python Path of the .exe file |
Yes, that's what I got from your listing above.
What I am talking about is this: This looks as if you were in C:\Users\Jens when you ran the scripts… |
S:\AAA\samsunghealth>C:/Users/Jens/AppData/Local/Microsoft/WindowsApps/python3.11.exe activity.py S:\AAA\samsunghealth> ################################################################################### PS S:\aaa\samsunghealth> C:/Users/Jens/AppData/Local/Microsoft/WindowsApps/python3.11.exe activity.py |
How can i send my files to you? Discord, Teamspeak? On Discord i make a request if we can speak german ;-) |
That's the other error. For whatever reason, the timestamp is not stored as a timestamp, but in ISO format. |
@AstraJens Just to let you know that I will get back to you as soon as possible to schedule an exchange via Discord – auch auf Deutsch, wenn du möchtest... |
PS C:\Users\Jens> & C:/Users/Jens/AppData/Local/Microsoft/WindowsApps/python3.11.exe s:/AAA/samsunghealth_astrajens1_20241130133710/activity.py
Traceback (most recent call last):
File "s:\AAA\samsunghealth_astrajens1_20241130133710\activity.py", line 184, in
data = merge_data(fetch_floor_data(), fetch_calorie_data(), fetch_activity_data())
^^^^^^^^^^^^^^^^^^
File "s:\AAA\samsunghealth_astrajens1_20241130133710\activity.py", line 17, in fetch_floor_data
raise Exception("No floors data found.")
Exception: No floors data found.
The text was updated successfully, but these errors were encountered: