Replies: 1 comment 3 replies
-
Your enex file is malformed. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Getting an error on a notebook with 446 notes. Fails immediately at start. Any suggestion on how to fix?
INFO: 'Evernote ENEX Import' page found
INFO: Processing notebook 'tester's notebook'...
Traceback (most recent call last):
File "/usr/local/bin/enex2notion", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.26_1/libexec/lib/python3.11/site-packages/enex2notion/cli.py", line 47, in main
cli(sys.argv[1:])
File "/usr/local/Cellar/enex2notion/0.2.26_1/libexec/lib/python3.11/site-packages/enex2notion/cli.py", line 32, in cli
_process_input(enex_uploader, args.enex_input)
File "/usr/local/Cellar/enex2notion/0.2.26_1/libexec/lib/python3.11/site-packages/enex2notion/cli.py", line 42, in _process_input
enex_uploader.upload_notebook(path)
File "/usr/local/Cellar/enex2notion/0.2.26_1/libexec/lib/python3.11/site-packages/enex2notion/cli_upload.py", line 53, in upload_notebook
self.notebook_notes_count = count_notes(enex_file)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.26_1/libexec/lib/python3.11/site-packages/enex2notion/enex_parser.py", line 23, in count_notes
return sum(iter_process_xml_elements(enex_file, "note", lambda e: 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/Cellar/enex2notion/0.2.26_1/libexec/lib/python3.11/site-packages/enex2notion/enex_parser_xml.py", line 23, in iter_process_xml_elements
for event, elem in context:
File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/xml/etree/ElementTree.py", line 1249, in iterator
yield from pullparser.read_events()
File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/xml/etree/ElementTree.py", line 1320, in read_events
raise event
File "/usr/local/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/xml/etree/ElementTree.py", line 1292, in feed
self._parser.feed(data)
xml.etree.ElementTree.ParseError: mismatched tag: line 1852080, column 73
Thanks! This tool is awesome - so much better than Notion's import. <3
Beta Was this translation helpful? Give feedback.
All reactions