Comments (13)
problem solved 👍
from running_page.
Traceback (most recent call last):
22
File "scripts/nike_sync.py", line 308, in
23
files = get_to_generate_files()
24
File "scripts/nike_sync.py", line 147, in get_to_generate_files
25
for i in os.listdir(OUTPUT_DIR)
26
File "scripts/nike_sync.py", line 148, in
27
if int(i.split(".")[0]) > last_time
28
ValueError: invalid literal for int() with base 10: 'README'
from running_page.
Seems like a bug. let me see~
from running_page.
@semico can you check if hava any data in activities
after nike_sync.
from running_page.
@semico can you double check?
from running_page.
Yes, all the activities have been retrieved, because the number of files is equal to my running count in NRC app
from running_page.
1602372752594
Traceback (most recent call last):
File "scripts/nike_sync.py", line 311, in
files = get_to_generate_files()
File "scripts/nike_sync.py", line 148, in get_to_generate_files
return [
File "scripts/nike_sync.py", line 151, in
if int(i.split(".")[0]) > last_time
ValueError: invalid literal for int() with base 10: ''
from running_page.
@semico can you retry by latest code.
And make sure you run sync script in this root dir
from running_page.
@yihong0618 still not work, sorry that I cannot debug it by myself, but I'm trying to learn Python and understand the code.
1602372752594
Traceback (most recent call last):
File "scripts/nike_sync.py", line 312, in
make_new_gpxs(files)
File "scripts/nike_sync.py", line 299, in make_new_gpxs
parsed_data = parse_activity_data(json_data)
File "scripts/nike_sync.py", line 248, in parse_activity_data
for i, metric in enumerate(activity["metrics"]):
KeyError: 'metrics'
But i found a fact, the first time I try from the beginning without remove the test data, it runs well. It failed when I remove all the test data.
from running_page.
@semico
Don't worry, my pleasure to fix it.
I think your nrc contains empty run file. I try to fix the bug.
Now please pull the latest code and try again follow the Readme
thanks.
from running_page.
1602372752594
The activity 73462884-e16b-49a4-926e-7de35f0469a1 doesn't contain metrics information
The activity 36790881-d313-414f-b831-9485c349a268 doesn't contain metrics information
The activity bd05309a-32c9-4183-bcfa-6f7134c1ddc6 doesn't contain metrics information
The activity 30da853a-4bc8-4f3a-b90c-43c60ac6218e doesn't contain metrics information
The activity 7b244c7c-92c7-42f4-9840-ca83b231b057 doesn't contain metrics information
The activity a9133284-e16a-410f-aa23-ca697e3db470 doesn't contain metrics information
The activity 09afed94-748c-4eb4-bf98-9553bc6267aa doesn't contain metrics information
The activity 01836ee5-12d3-40cd-aae1-db1bee14dfd0 doesn't contain metrics information
425
Something went wrong when loading GPX. for file 1337958166012.gpx
417
+++++++++++++++++++++++++Traceback (most recent call last):
File "scripts/nike_sync.py", line 318, in
make_activities_file(SQL_FILE, GPX_FOLDER, JSON_FILE)
File "/Users/yubohu/Code/running_page/scripts/utils.py", line 9, in make_activities_file
generator.sync_from_gpx(gpx_dir)
File "/Users/yubohu/Code/running_page/scripts/generator/init.py", line 76, in sync_from_gpx
created = update_or_create_activity(self.session, t.to_namedtuple())
File "/Users/yubohu/Code/running_page/scripts/generator/db.py", line 92, in update_or_create_activity
distance=run_activity.distance,
AttributeError: 'x' object has no attribute 'distance'
you got it, but new bug appeared... :(
from running_page.
@semico That is another problem about NRC, I think you can delete the wrong gpx file, I will try to fix this tomorrow.
from running_page.
@semico add try catch can you try again?
from running_page.
Related Issues (20)
- 请教, 开始从咕咚拉数据的时,没有带 --with-gpx,后续怎么得到GPX数据 HOT 3
- 如何把国家涂上色 HOT 3
- 源自华米的GPX导入轨迹漂移,且心率为空 HOT 7
- [Function enhancement] SVG info source error caused by the inability to automate JoyRun HOT 6
- 悦跑圈数据导出时出现问题,还是网络问题 HOT 2
- 同步Keep数据报错index out of range HOT 4
- github action 执行报错 HOT 9
- 从Strava中同步的活动中没有location_country的信息 HOT 2
- mac如何使用呢? HOT 1
- 二级域名代理github running_page打开页面白屏 HOT 1
- ModuleNotFoundError: No module named 'appdirs'
- 重复数据没有校验删除 HOT 5
- running_page v1.x 版本 Vercel 部署失败 HOT 2
- 同步失败是什么问题呢 HOT 3
- NRC refresh token is not getting anymore ? HOT 14
- NRC to refresh token is down HOT 1
- 这段可以删除了吧,看代码现在是从gh中直接取仓库名作为路径。 HOT 2
- Strava同步数据 第6步报错 HOT 1
- feat: heat map for every year
- 介绍里keep_to_strava有错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from running_page.