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

Debian install fails - python2 print (instead of print( ) ) #15

Open
WaterSibilantFalling opened this issue Nov 8, 2020 · 1 comment

Comments

@WaterSibilantFalling
Copy link

Trying (and failing) to install on Debian:

======  How can you help?  (doc: https://wiki.debian.org/how-can-i-help ) ======

-----  Show old opportunities as well as new ones: how-can-i-help --old  -----
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up bookworm (1.1.2+git20200823-1) ...
  File "/usr/share/com.github.babluboy.bookworm/scripts/mobi_lib/mobiml2xhtml.py", line 249
    print "     - fixed by injecting empty start tag ", tname
                                                     ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("     - fixed by injecting empty start tag ", tname)?

dpkg: error processing package bookworm (--configure):
 installed bookworm package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 bookworm
Press Return to continue, 'q' followed by Return to quit.

Linux 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) x86_64 GNU/Linux

@WaterSibilantFalling WaterSibilantFalling changed the title Debian install fails Debian install fails - python2 print (instead of print( ) ) Nov 8, 2020
@babluboy
Copy link
Collaborator

Thanks for raising this. Since Bookworm does not use the mobi library other than the unpack script, I did not know that it will create issues. This is linked to issue #330

Guess I will have to search and modify all the print statements in the mobilib to make them python 3 compatible

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

2 participants