svenkreiss / html5validator

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

Missguiding error #37

Closed GaboFDC closed 6 years ago

GaboFDC commented 6 years ago

When you install html5validator but not java, and try to execute html5validator --root <some_path> it will throw: OSError: [Errno 2] No such file or directory Which is not telling what the real problem is

The full stack trace is:

Traceback (most recent call last):
  File "/usr/bin/html5validator", line 9, in <module>
    load_entry_point('html5validator==0.2.8', 'console_scripts', 'html5validator')()
  File "/usr/lib/python2.7/site-packages/html5validator/cli.py", line 72, in main
    stack_size=args.stack_size,
  File "/usr/lib/python2.7/site-packages/html5validator/validator.py", line 94, in validate
    stdout=f_null, stderr=f_null) != 0:
  File "/usr/lib64/python2.7/subprocess.py", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory