You are not logged in.
I should have said, I've uploaded a `greg-git` package. The stable-release package `greg` didn't seem to be much used, so in principle I will not be maintaining it, unless people say I was wrong about its usefulness.
Manolo
Offline
Awesome speed. Works as before as far as i can tell. Thank you!
Offline
Great, if something goes wrong, let me know here or over at Github.
M
Offline
Huh...
So I updated Greg to 0.4.6, and since then my cronjob no longer works. Running "greg sync" from the command line works fine, running it as a cronjob returns
Arch-VBox CROND[3216]: (remote) CMD (/usr/bin/greg sync)
Arch-VBox CROND[3215]: (remote) CMDOUT (Traceback (most recent call last):)
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/bin/greg", line 9, in <module>)
Arch-VBox CROND[3215]: (remote) CMDOUT ( load_entry_point('Greg==0.4.6', 'console_scripts', 'greg')())
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/lib/python3.5/site-packages/greg/gregparser.py", line 118, in main)
Arch-VBox CROND[3215]: (remote) CMDOUT ( function(vars(args)))
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/lib/python3.5/site-packages/greg/greg.py", line 745, in sync)
Arch-VBox CROND[3215]: (remote) CMDOUT ( session = Session(args))
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/lib/python3.5/site-packages/greg/greg.py", line 55, in __init__)
Arch-VBox CROND[3215]: (remote) CMDOUT ( self.data_dir = self.retrieve_data_directory())
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/lib/python3.5/site-packages/greg/greg.py", line 95, in retrieve_data_directory)
Arch-VBox CROND[3215]: (remote) CMDOUT ( config.read([config_filename_global, self.config_filename_user]))
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/lib/python3.5/configparser.py", line 696, in read)
Arch-VBox CROND[3215]: (remote) CMDOUT ( self._read(fp, filename))
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/lib/python3.5/configparser.py", line 1012, in _read)
Arch-VBox CROND[3215]: (remote) CMDOUT ( for lineno, line in enumerate(fp, start=1):)
Arch-VBox CROND[3215]: (remote) CMDOUT ( File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode)
Arch-VBox CROND[3215]: (remote) CMDOUT ( return codecs.ascii_decode(input, self.errors)[0])
Arch-VBox CROND[3215]: (remote) CMDOUT (UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 33: ordinal not in range(128))
Arch-VBox CROND[3215]: pam_unix(crond:session): session closed for user remote
Which is basically the same error I got some months back, but which you fixed. Did something change with the update to 0.4.6? Do I need to set any additional environent variables or something?
Offline
Hello,
A quick check: what does
echo $LANG
say? And (from within the python REPL),
sys.getdefaultencoding()
? You need to import sys first.
Thanks,
Manolo
Offline
Aaah yes.
$LANG is en_US.UTF-8, default encoding is "utf-8", BUT only from the terminal. The $LANG used by cron is emtpy for some reason, I now changed my crontab entry to export $LANG explicitly and it again works fine. Thanks for the idea!
Offline
Glad to hear that!
M
Offline
I've bumped greg's version number to 0.4.8. I've been maintaining it more actively for the past few months, and now there's enough bug fixes and new stuff that a version change is warranted (not even 0.5, though, because I'm a wuss.)
If you try it and find regressions or have comments, do let me know. Enjoy!
Manolo
Offline