rupa / epub

python/curses cli epub reader
382 stars 63 forks source link

epub.py has syntax error #13

Open porphyry5 opened 9 years ago

porphyry5 commented 9 years ago

Installed epub.py from the .zip download. Attempt to run it produced this result /home/g/Downloads/epub-master # ./epub.py -h File "./epub.py", line 66 print image.Image(image_file.name) ^ SyntaxError: invalid syntax

I know nothing about python, could you kindly advise me of the problem here. I have installed python2-beautifulsoup3-3.2.1-3 and python3.4.2 on arch linux mainline 3.18.1

rupa commented 9 years ago

you're using python 3 and this is written in python 2.

You may need to install python2. Also, on Arch, you may need to change line one of epub.py to #!/usr/bin/env python2

porphyry5 commented 9 years ago

Many thanks, I guess that explains why I have python 2.7 as well as 3.4 on my system, already installed.

On Tue, Jan 6, 2015 at 12:29 PM, rupa notifications@github.com wrote:

you're using python 3 and this is written in python 2.

You may need to install python2. Also, on Arch, you may need to change line one of epub.py to #!/usr/bin/env python2

— Reply to this email directly or view it on GitHub https://github.com/rupa/epub/issues/13#issuecomment-68928314.

Graham Lawrence

arpit1997 commented 7 years ago

Yeah you need to use python2 instead of python3 run this with $ python epub.py <arguments> instead of $ python3 epub.py <arguments> May be this can help you install python2 :small_red_triangle: :smile_cat: :smiley_cat: