edsu / feediverse

Send RSS/Atom feeds to Mastodon
MIT License
116 stars 25 forks source link

Syntax Error #3

Closed joesse closed 4 years ago

joesse commented 5 years ago

When running feediverse the first time I get: Traceback (most recent call last): File "/usr/local/bin/feediverse", line 6, in from feediverse import main File "/usr/local/lib/python2.7/dist-packages/feediverse.py", line 63 return new_entries SyntaxError: 'return' with argument inside generator

What can do to fix this? Also: if I plan to run feediverse as a cron job, should I configure it as super user?

running on raspian 8.0 jessie

htgoebel commented 5 years ago

Which python version do you use?

htgoebel commented 5 years ago

Also: if I plan to run feediverse as a cron job, should I configure it as super user?

Running any program as super user is bad idea in almost all cases. This is neither a system service nor does it require extra privileges. So: no, you should not run it as super user!

joesse commented 5 years ago

I am running Python 2.7.9

htgoebel commented 5 years ago

Python 2.7 does not allow return in generators. Please use pthon3 to run feediverse.

edsu commented 4 years ago

I've updated the setup.py to indicate python3 is required. Thanks for the bug report!

PS. Don't run as root!!!