chrizel / things-to-org Goto Github PK
View Code? Open in Web Editor NEWPython script that converts your Things 3 data to an Org file
License: Apache License 2.0
Python script that converts your Things 3 data to an Org file
License: Apache License 2.0
Hello, I'm getting this error:
* No Project
** TODO Move 1 project to next
SCHEDULED: <2024-01-01 Mon>
/opt/homebrew/lib/python3.11/site-packages/pandoc/utils.py:62: UserWarning:
Pandoc version 3.1.11 is not supported, we proceed as if pandoc 2.19.2 was used.
The behavior of the library is undefined if the document models of these versions differ.
warnings.warn(error)
Traceback (most recent call last):
File "/Users/ritchie/Downloads/things/../things-to-org.py", line 67, in <module>
print_tasks(tasks, '**')
File "/Users/ritchie/Downloads/things/../things-to-org.py", line 57, in print_tasks
print_task(task, level)
File "/Users/ritchie/Downloads/things/../things-to-org.py", line 49, in print_task
print(pandoc.write(doc, format='org'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/pandoc/__init__.py", line 355, in write
pandoc(options)
File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/base.py", line 113, in __call__
return self.run(args, **kwargs)[1]
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/base.py", line 252, in run
return p.run()
^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/base.py", line 215, in runner
return run_proc(p, retcode, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/processes.py", line 299, in run_proc
return _check_process(proc, retcode, timeout, stdout, stderr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/plumbum/commands/processes.py", line 17, in _check_process
proc.verify(retcode, timeout, stdout, stderr)
File "/opt/homebrew/lib/python3.11/site-packages/plumbum/machines/base.py", line 27, in verify
raise ProcessExecutionError(
plumbum.commands.processes.ProcessExecutionError: Unexpected exit code: 64
Command line: | /opt/homebrew/bin/pandoc -t org -o /var/folders/55/jrxhtwg11gzftpggx7xz5y5r0000gp/T/tmpsq01g49v/output -f json /var/folders/55/jrxhtwg11gzftpggx7xz5y5r0000gp/T/tmpsq01g49v/input.js
Stderr: | JSON parse error: Error in $: Incompatible API versions: encoded with [1,22,2,1] but attempted to decode with [1,23,1].
I don't know if it is on purpose, but the script currently only exports current tasks. For my intended use, I needed a full copy of the database, including any historical DONE
and CANCELED
task.
This can primarily be achieved by explicitly calling the things.todo()
with status=None
.
I also removed the filter for a start date.
If you want, I can submit a PR with my modifications.
I had installed the latest pandoc through Homebrew, which is at version 3.x at the moment. When running the export script, it complained and errored over pandoc. I downgraded to version 2.19.2 (the last 2.x version) to have the export script running without errors.
Downgrade:
brew uninstall pandoc
)I think this is due to the upstream things library, so nothing to be done atm. But this could at least be mentioned in the project README?
The script errored on one specific todo with a note that was None
. So I added an additional check for that to skip the note.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.