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

[WinError 123] #3

Open
wolfwitte opened this issue Feb 20, 2021 · 2 comments
Open

[WinError 123] #3

wolfwitte opened this issue Feb 20, 2021 · 2 comments

Comments

@wolfwitte
Copy link

wolfwitte commented Feb 20, 2021

Hi there, running the script converted part of my archive but it stopped inbetween with the following:

C:\Users\wolfw\AppData\Local\Programs\Python\Python39>python r2o.py roam.json Pass 1: scan all pages 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 678/678 [00:00<00:00, 43598.90it/s] Pass 2: track blockrefs 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 678/678 [00:00<00:00, 21689.88it/s] Pass 3: generate 0%| | 0/678 [00:00<?, ?it/s] Traceback (most recent call last): File "C:\Users\wolfw\AppData\Local\Programs\Python\Python39\r2o.py", line 162, in <module> os.makedirs(d, exist_ok=True) File "C:\Users\wolfw\AppData\Local\Programs\Python\Python39\lib\os.py", line 225, in makedirs mkdir(name, mode) OSError: [WinError 123] Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch: 'md\\https:'

Could this be caused by special German characters (ä,ö,ü,ß)? Update: It cannot, since some of these were converted.

@wolfwitte
Copy link
Author

Update: When importing from a Markdown-Backup, i got Windows-error-messages for every file containing a colon (":"), i am guessing this happened with the script as well. I am now adjusting all note-titles containing a colon.

@renerocksai
Copy link
Owner

Sorry for the late reply. The script converts notes to files named like their titles - and Windows unfortunately can't handle colons in filenames, as colons are used in drive specs, like C:. A more thorough script would rename those titles and fix all links.

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

2 participants