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

Script doesn't finish #17

Open
svlier opened this issue Jun 3, 2022 · 0 comments
Open

Script doesn't finish #17

svlier opened this issue Jun 3, 2022 · 0 comments

Comments

@svlier
Copy link

svlier commented Jun 3, 2022

I tried the script on Roam Research script but it doesn't finish. Maybe someone can help me (no coding skills).

PS C:\Users\stefa\OneDrive - Nunhems\Code Snippets\python\rj2obs-main> py r2o.py myvault.json
Pass 1: scan all pages
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1147/1147 [00:00<00:00, 23400.07it/s]
Pass 2: track blockrefs
22%|███████████████████████████████████████████▋ | 253/1147 [00:00<00:00, 15757.76it/s]
Traceback (most recent call last):
File "C:\Users\stefa\OneDrive - Nunhems\Code Snippets\python\rj2obs-main\r2o.py", line 145, in
expand_children(p, uid2block, referenced_uids)
File "C:\Users\stefa\OneDrive - Nunhems\Code Snippets\python\rj2obs-main\r2o.py", line 104, in expand_children
lines.extend(expand_children(b, uid2block, referenced_uids, level + 1))
File "C:\Users\stefa\OneDrive - Nunhems\Code Snippets\python\rj2obs-main\r2o.py", line 77, in expand_children
s = b['string']
KeyError: 'string'

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