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

migrate to Python 3 #139

Closed
doronbehar opened this issue Feb 19, 2020 · 4 comments
Closed

migrate to Python 3 #139

doronbehar opened this issue Feb 19, 2020 · 4 comments

Comments

@doronbehar
Copy link

README says pdfsizeopt isn't supported by python 3.x. Are there any plans to upgrade to Python3?

@zvezdochiot
Copy link

pdfsizeopt/pdfsizeopt

Lines 25 to 28 in 33ec5e5

if not ((2, 4) <= sys.version_info[:2] < (3, 0)):
sys.stderr.write(
'fatal: Python version 2.4, 2.5, 2.6 or 2.7 needed for: %s\n' % __file__)
sys.exit(1)

@pts pts changed the title Python3 migrate to Python 3 Feb 19, 2020
@pts
Copy link
Owner

pts commented Feb 19, 2020

Most users of pdfsizeopt shouldn't care, because on Windows pdfsizeopt ships with a copy of Python 2.6 embedded, and on Linux and macOS Python 2 is still available and preinstalled (as of 2020-02-19).

There is no technical reason why pdfsizeopt can't be migrated to Python 3. It's just takes time and effort. It's unlikely to happen until somebody volunteers and does the work or pdfsizeopt receives funding.

@pts
Copy link
Owner

pts commented Feb 24, 2023

Update: Now the Linux, macOS and Windows helper programs (part of the installation instructions) all contain a copy of Python 2, so pdfsizeopt will work on systems where Python 2 is not installed (i.e. most modern systems nowadays).

@pts pts closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2023
@malespiaut
Copy link

Hello,

I'm commenting on this issue because I consider that it shouldn't be closed. In my humble opinion, relying on Python 2, or Docker, is not a viable option.

Although I perfectly understand that migrating to Python 3 needs time, effort, and money, I've been unable to use pdfsizeopt on my machine. I'm sad to now consider pdfsizeopt as unusable.

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

No branches or pull requests

4 participants