How to fix 'ModuleNotFoundError: No module named 'node''?

41 views
Skip to first unread message

Ho Cheung

unread,
Jan 31, 2024, 5:50:33 PMJan 31
to Chrome DevTools
Running Python 3 presubmit upload checks ...
** Presubmit ERRORS: 1 **
Evaluation of CheckChangeOnUpload failed: No module named 'node', Traceback (most recent call last):
 File "/home/ho/depot_tools/presubmit_support.py", line 1732, in _run_check_function
   result = eval(function_name + '(*__args)', context)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "<string>", line 1, in <module>
 File "/home/ho/google/devtools-frontend/devtools-frontend/PRESUBMIT.py", line 665, in CheckChangeOnUpload
   return _RunAllChecks(checks, input_api, output_api)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/ho/google/devtools-frontend/devtools-frontend/PRESUBMIT.py", line 633, in _RunAllChecks
   result = check(input_api, output_api)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/ho/google/devtools-frontend/devtools-frontend/PRESUBMIT.py", line 337, in _CheckDevToolsStyleJS
   _checkWithNodeScript(input_api, output_api, lint_path, files_to_lint))
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/ho/google/devtools-frontend/devtools-frontend/PRESUBMIT.py", line 705, in _checkWithNodeScript
   return _ExecuteSubProcess(input_api, output_api, [devtools_paths.node_path(), script_path], script_arguments, [])
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/home/ho/google/devtools-frontend/devtools-frontend/scripts/devtools_paths.py", line 44, in node_path
   import node
ModuleNotFoundError: No module named 'node'
 
 
There were Python 3 presubmit errors.

When I run git cl upload. The above error occurs. How should I fix the error mentioned above? By the way, I have installed node using pip.
Reply all
Reply to author
Forward
0 new messages