Open chew-z opened 8 years ago
This happens if you don't have Mercurial installed on your box. I will make the error message less hostile for this case.
Yes, I have figured that out. So Mercurial is a requirement? What else? BTW. You are right about cloud. Since Evernote introduced new limits on it's free tier and raised prices on paid tiers I am looking into IMAP Notes as an alternative. Hence mine interest in your tool.
I have installed hg and zzyzx moves on - connects to IMAP and downloads notes. However now it fails with:
File ".virtualenvs/zzyzx/lib/python3.5/site-packages/zzyzx/backup.py", line 89, in backup_mailbox
msg['x-mail-created-date'],
File "/usr/local/Cellar/python3/3.5.2/Frameworks/Python.framework/Versions/3.5/lib/python3.5/email/utils.py", line 210, in parsedate_to_datetime
*dtuple, tz = _parsedate_tz(data)
TypeError: 'NoneType' object is not iterable
Cool, after removing some notes zzyzx backup works. I had notes form various sources and guess not all notes come equal. It would be nice if program fail gracefully though.
However now I can't make zzyzx md work.
$ zzyzx md
Error: No such command "md".
For md
support you need to do pip install zzyzx[markdown]
.
pip install zzyzx[markdown] (env: zzyzx)
zsh: no matches found: zzyzx[markdown]
Am I really that dumb?
Haha, no worries, man. This time you've been hit by zshell's bracket expansion. Try:
pip install "zzyzx[markdown]"
Heureka! It works. All my notes backed up and I can view them in Markdown. This is so cool.
If I may suggest, it would be nice to specify markdown files extension explicit in config. '.md' works best for my setup with quicklook preview, editor, markoff etc. and '.txt' is too generic.
Also is it possible to store password in keychain (on OSX) extracing it like in mutt/offlineimap with perl or python snipet?
set my_pass = "
security find-internet-password -g -a user@example.com 2>&1| perl -e 'if ("
But it fails on my system with:
Something configuration specific, I suppose...