svenkreiss / html5validator

Command line tool to validate HTML5 files. Great for continuous integration.
MIT License
314 stars 34 forks source link

AttributeError: module 'os' has no attribute 'errno' #86

Closed jdoe0000000 closed 3 years ago

jdoe0000000 commented 3 years ago

os.errno has been removed since Python 3.7, but it's still being used in validator.py:

https://github.com/svenkreiss/html5validator/blob/81fbe36827a3dd0b7100cd4787dac1b167e4a32f/html5validator/validator.py#L154

This causes the validator to crash with the following error message instead of notifying the user that Java is missing.

AttributeError: module 'os' has no attribute 'errno'
fetzerch commented 2 years ago

Is there a chance to get a new release with this fix included? Python 3.6 is EOL and a new release would make it usable on newer Python versions.