bookworm icon indicating copy to clipboard operation
bookworm copied to clipboard

fix print in case of python env isn't python2

Open smCloudInTheSky opened this issue 2 years ago • 2 comments

Hello,

I tried to install bookworm on pop os 21.04. Had some errors on the post install script :

Paramétrage de bookworm (1.1.2+git20200823-1) ... File "/usr/share/com.github.babluboy.bookworm/scripts/mobi_lib/mobiml2xhtml.py", line 507 print 'Converting Mobi Markup Language to XHTML' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Converting Mobi Markup Language to XHTML')?

this should do the work I did copy what you did on other print on this file

smCloudInTheSky avatar Nov 01 '21 16:11 smCloudInTheSky

See also https://salsa.debian.org/debian/bookworm/-/blob/master/debian/patches/0001-More-hotfix-on-python2-print.patch

jbicha avatar Jan 05 '24 23:01 jbicha

Sure but it is limited to debian Wouldn't it be better in 2024 to merge this within the project as python2 as been deprecated for a while ? If you want I can improve the PR.

smCloudInTheSky avatar Jan 09 '24 21:01 smCloudInTheSky