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)
- vercel部署失败 Error: spawn pip3 ENOENT HOT 5
- 请问是否可以支持下载Keep的行走数据?现在只能下载跑步数据 HOT 6
- gpx文件怎么转换tcx,想把keep的运动导入到悦动圈 HOT 1
- pnpm install 提示错误 HOT 25
- 请教为什么国家解析不对 HOT 11
- gpx文件未生成 HOT 10
- localhost拒绝访问 HOT 2
- docs: README.md/README-CN.md 新增第一次部署後的操作導引(個人建議) HOT 3
- 資安疑慮:Mapbox token 只能明碼寫在`const.ts`中? HOT 12
- 使用--with-tcx参数获取咕咚数据,导出来的TCX文件导入Garmin还是会提示报错无法导入 HOT 1
- 看了几天代码,有几个自己的想法不知道对不对? HOT 21
- 我发现 Run Data Sync.yaml 在跑的时候-Garmin_cn 执行就死循环了 HOT 9
- 为什么数据库删除的数据前端还是有 HOT 2
- Cloudflare 部署的是作者演示画面 HOT 9
- v HOT 1
- Can't get nike refresh_token HOT 3
- 数据库的地区格式不统一影响吗 HOT 2
- 悦跑圈抓取数据时错误,遇到错误:Max retries exceeded with url错误。 HOT 7
- 咨询下docker的工作原理 HOT 1
- 请教, 开始从咕咚拉数据的时,没有带 --with-gpx,后续怎么得到GPX数据 HOT 3
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.