pts / pdfsizeopt

PDF file size optimizer
GNU General Public License v2.0
750 stars 65 forks source link

migrate to Python 3 #139

Closed doronbehar closed 1 year ago

doronbehar commented 4 years ago

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

zvezdochiot commented 4 years ago

https://github.com/pts/pdfsizeopt/blob/33ec5e5c637fc8967d6d238dfdaf8c55605efe83/pdfsizeopt#L25-L28

pts commented 4 years ago

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 commented 1 year ago

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).

malespiaut commented 1 year ago

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.