wayneguow commented on code in PR #47590:
URL: https://github.com/apache/spark/pull/47590#discussion_r1701999774


##########
docs/_plugins/build_api_docs.rb:
##########
@@ -194,7 +194,12 @@ def build_sql_docs
 
 def build_error_docs
   print_header "Building error docs."
-  system("python '#{SPARK_PROJECT_ROOT}/docs/util/build-error-docs.py'") \
+
+  if !system("which python3 >/dev/null 2>&1")
+    raise("Missing python3 in your path, stopping error doc generation")
+  end
+
+  system("python3 '#{SPARK_PROJECT_ROOT}/docs/util/build-error-docs.py'") \

Review Comment:
   Since users may not use python venv, I suggest changing to `python3` here.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to