manolomartinez / greg

A command-line podcast aggregator
GNU General Public License v3.0
298 stars 37 forks source link

Problems with installation #2

Closed marttt closed 10 years ago

marttt commented 11 years ago

Hi, I'm on Debian and Python 2.7. After doing sudo python setup.py install and trying to run greg, I got this error:

File "/usr/local/bin/greg", line 19, in <module>
from greg.gregparser import main 
ImportError: No module named greg.gregparser

I tried running greg.py from the /greg/greg folder, but that gave another error:

File "greg.py", line 185
    print (feed, end=" ")
                    ^
SyntaxError: invalid syntax

Also, I had to add # coding=utf-8 to both setup.py and then to /usr/local/bin/greg. Without this, I got the following error:

SyntaxError: Non-ASCII character '\xc3' in file setup.py on line 8, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Here's my entire log:

mart@mart:~/downloads/greg$ sudo python setup.py install
running install
running build
running build_py
package init file 'greg/__init__.py' not found (or not a regular file)
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/greg
copying greg/gregparser.py -> build/lib.linux-i686-2.7/greg
copying greg/greg.py -> build/lib.linux-i686-2.7/greg
package init file 'greg/__init__.py' not found (or not a regular file)
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/greg -> build/scripts-2.7
changing mode of build/scripts-2.7/greg from 644 to 755
running install_lib
creating /usr/local/lib/python2.7/dist-packages/greg
copying build/lib.linux-i686-2.7/greg/gregparser.py -> /usr/local/lib/python2.7/dist-packages/greg
copying build/lib.linux-i686-2.7/greg/greg.py -> /usr/local/lib/python2.7/dist-packages/greg
byte-compiling /usr/local/lib/python2.7/dist-packages/greg/gregparser.py to gregparser.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/greg/greg.py to greg.pyc
SyntaxError: ('invalid syntax', ('/usr/local/lib/python2.7/dist-packages/greg/greg.py', 183, 25, '        print (feed, end=" ")\n'))

running install_scripts
copying build/scripts-2.7/greg -> /usr/local/bin
changing mode of /usr/local/bin/greg to 755
running install_data
copying data/greg.conf -> /etc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/Greg-0.1.0.egg-info

mart@mart:~/downloads/greg$ cd ~
mart@mart:~$ greg
Traceback (most recent call last):
  File "/usr/local/bin/greg", line 19, in <module>
    from greg.gregparser import main 
ImportError: No module named greg.gregparser

Thanks for any help!

Based on the readme, it appears to be a perfect tool for me, though. So another thanks for your effort! :)

marttt commented 11 years ago

I understand now that this is a Python 3 issue. All end = " " statements need to be replaced with a ,. Also, urllib causes problems. I tried replacing it with urllib2, got no errors in the end, but unfortunately greg didn't run (nothing happened after running it). Could you please make it Python 2.7 compatible? Thanks very much!

manolomartinez commented 11 years ago

Hi, marttt,

I'll look into making it compatible with Python 2. It shouldn't be terribly difficult. Stay tuned :)

marttt commented 11 years ago

Great, thanks very much!

manolomartinez commented 10 years ago

I'm sorry, as it's probably apparent, I haven't quite found the time to make greg Py2-compatible. I'll close it as wontfix, for now. If my schedule frees a bit, I might reopen it in the future.

marttt commented 10 years ago

Ok, thanks for letting know; this makes perfect sense. I've Python 3 installed by now, too. And there probably aren't too many Python 2 "purists" left these days.

2014-03-10 11:41 GMT+02:00 manolomartinez notifications@github.com:

I'm sorry, as it's probably apparent, I haven't quite found the time to make greg Py2-compatible. I'll close it as wontfix, for now. If my schedule frees a bit, I might reopen it in the future.

— Reply to this email directly or view it on GitHubhttps://github.com/manolomartinez/greg/issues/2#issuecomment-37165694 .

winny- commented 9 years ago

Hi! It might be a good idea to include compatibility information in the README, since only on pypi are categories visible next to the readme.

manolomartinez commented 9 years ago

Hi, would you mind opening a new issue for this?

Anyway. that's what I hoped the "written in Python 3" was doing. Not so?

winny- commented 9 years ago

Oh wow, how did I miss that? Never mind, that's pretty much what I was asking for. :+1: