ocropus / hocr-tools

Tools for manipulating and evaluating the hOCR format for representing multi-lingual OCR results by embedding them into HTML.
Other
359 stars 78 forks source link

move to python3 #158

Open marijani101 opened 4 years ago

marijani101 commented 4 years ago

As Python 2 is coming to an end, wouldn't it be better to migrate to Python 3?

zuphilip commented 4 years ago

The hocr-tools are working with Python 3 already. We support Python 2 and 3 together.

stweil commented 4 years ago

Maybe some compatibility constructs can be removed from the code as soon as Python 2 is gone, but for the moment I think there is nothing to be done. @marijani101, did you notice problems with Python 3 which would require an action now? I only found that the README could be updated to mention Python 3 as well. Maybe you want to send a pull request for that?

stweil commented 4 years ago

The Python 2 package names in the README.md should be replaced by Python 3 package names. @marijani101, can you send a pull request?

FriedrichFroebel commented 1 year ago

It seems like while the setup file still advertises Python 2, https://github.com/ocropus/hocr-tools/commit/269d63a816dc801b77e549b9c3b3bde708912286 basically drops this support in the most recent time. This contradicts with the following code, as f-strings have not been available before Python 3.6: https://github.com/ocropus/hocr-tools/blob/0ad95b3606229c8a6895a3a6e782ff88d9db1d8d/setup.py#L24-L26

stweil commented 1 year ago

Right, thanks for reporting this. Do you want to send a pull request which removes all old entries? All Python versions before 3.7 are unsupported.

FriedrichFroebel commented 1 year ago

I just did some more tests regarding version support and stumbled upon some more stuff which probably needs some attention (and is more or less related to Python 3 support):

mrghosti3 commented 1 year ago

Any news on this issue?