huggingface / audio-transformers-course

The Hugging Face Course on Transformers for Audio
Apache License 2.0
291 stars 87 forks source link

small issue: OSError: Using the --html flag requires node v14 to be installed, but it was not found in your system. #139

Closed silvacarl2 closed 5 months ago

silvacarl2 commented 10 months ago

when running this comamnd:

doc-builder preview audio-transformers-course ../audio-transformers-course/chapters/en --not_python_module

we got this:

Traceback (most recent call last): File "/home/silvacarl/.local/lib/python3.8/site-packages/doc_builder/commands/build.py", line 31, in check_node_is_available p = subprocess.run( File "/usr/lib/python3.8/subprocess.py", line 493, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.8/subprocess.py", line 858, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'node'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/silvacarl/.local/bin/doc-builder", line 8, in sys.exit(main()) File "/home/silvacarl/.local/lib/python3.8/site-packages/doc_builder/commands/doc_builder_cli.py", line 47, in main args.func(args) File "/home/silvacarl/.local/lib/python3.8/site-packages/doc_builder/commands/preview.py", line 158, in preview_command check_node_is_available() File "/home/silvacarl/.local/lib/python3.8/site-packages/doc_builder/commands/build.py", line 40, in check_node_is_available raise EnvironmentError( OSError: Using the --html flag requires node v14 to be installed, but it was not found in your system.

any ideas?

MKhalusova commented 9 months ago

cc @mishig25 can you take a look please?

GM-git-dotcom commented 5 months ago

Hi, installing Node.js >= 14.0 worked for me: https://nodejs.org/en/download/