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

Lists with '/' in the title cause FileNotFoundError #1

Open
lukashuebner opened this issue Mar 10, 2020 · 1 comment
Open

Lists with '/' in the title cause FileNotFoundError #1

lukashuebner opened this issue Mar 10, 2020 · 1 comment

Comments

@lukashuebner
Copy link

lukashuebner commented Mar 10, 2020

If trying to convert a list which has a '/' in its title, the following error is thrown:

$ ./main.py --flatten-subtasks --subtasks-as-description --inherit-completed Tasks.json
Traceback (most recent call last):
  File "./main.py", line 124, in <module>
    sys.exit(main(args.file, args.flatten_subtasks, args.subtasks_as_description, args.inherit_completed))
  File "./main.py", line 111, in main
    write_ics(todo_list["title"], parsed)
  File "./main.py", line 102, in write_ics
    with open(f"output/{name}.ics", "w") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'output/List with / in Title.ics'

Inspecting the folder structure of the exported archive, I guess Wunderlist is replacing '/' with '_' there.

@thiesschneider
Copy link

Hey @lukashuebner,
just had the same issue. This came also up when you have a space inside the list name.
A workaround is to create the .ics file before running the command touch output/LISTNAME.ics
For the / I would rename the wunderlist list before exporting...

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