Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

epub.py has syntax error #13

Open
porphyry5 opened this issue Jan 5, 2015 · 3 comments
Open

epub.py has syntax error #13

porphyry5 opened this issue Jan 5, 2015 · 3 comments

Comments

@porphyry5
Copy link

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
Copy link
Owner

rupa commented Jan 6, 2015

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
Copy link
Author

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
#13 (comment).

Graham Lawrence

@arpit1997
Copy link

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
🔺 😸 😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants