You are not logged in.

#51 2015-10-06 10:21:07

manolomartinez
Member
Registered: 2011-04-29
Posts: 66
Website

Re: Greg -- a command-line podcast aggregator

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

#52 2015-10-06 14:50:42

JASN
Member
Registered: 2009-04-17
Posts: 18

Re: Greg -- a command-line podcast aggregator

Awesome speed. Works as before as far as i can tell. Thank you!

Offline

#53 2015-10-06 21:03:29

manolomartinez
Member
Registered: 2011-04-29
Posts: 66
Website

Re: Greg -- a command-line podcast aggregator

Great, if something goes wrong, let me know here or over at Github.

M

Offline

#54 2016-03-09 07:34:29

JASN
Member
Registered: 2009-04-17
Posts: 18

Re: Greg -- a command-line podcast aggregator

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

#55 2016-03-10 14:28:34

manolomartinez
Member
Registered: 2011-04-29
Posts: 66
Website

Re: Greg -- a command-line podcast aggregator

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

#56 2016-03-10 14:47:44

JASN
Member
Registered: 2009-04-17
Posts: 18

Re: Greg -- a command-line podcast aggregator

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

#57 2016-03-10 15:14:10

manolomartinez
Member
Registered: 2011-04-29
Posts: 66
Website

Re: Greg -- a command-line podcast aggregator

Glad to hear that!

M

Offline

#58 2021-04-05 16:36:03

manolomartinez
Member
Registered: 2011-04-29
Posts: 66
Website

Re: Greg -- a command-line podcast aggregator

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

Board footer

Powered by FluxBB