dosubot[bot] commented on issue #36448:
URL: https://github.com/apache/superset/issues/36448#issuecomment-3622379580

   <!-- Answer -->
   This is a known limitation: Selenium Manager does not support ARM64, so 
Superset fails to generate screenshots for Alerts & Reports on ARM 
environments, even if you manually install the browser and driver. Superset 
does not currently expose a config to override the WebDriver executable path to 
bypass Selenium Manager, so manual driver installation alone is not enough 
[[source]](https://github.com/apache/superset/issues/34849).
   
   The recommended and robust solution is to switch to Playwright for 
screenshot generation. Playwright supports ARM64 and is now the preferred 
backend for Superset screenshots 
[[source]](https://github.com/apache/superset/discussions/35327):
   
   1. In your worker container, run:
      ```
      pip install playwright && playwright install chromium
      ```
   2. In your `config.py`, add:
      ```python
      SUPERSET_FEATURE_PLAYWRIGHT_REPORTS_AND_THUMBNAILS = True
      ```
      (Setting this as an environment variable will not work.)
   
   No other configuration changes are needed. Alerts & Reports will continue to 
work as usual, and screenshot-based formats (PNG, PDF) will be functional on 
ARM64.
   
   If you need to stick with Selenium, there is currently no supported way to 
bypass Selenium Manager for the driver executable in Superset’s config. 
Playwright is the recommended path forward for ARM environments.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/187cf3a5-f769-4224-b95e-b7be80a34723?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/187cf3a5-f769-4224-b95e-b7be80a34723?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/187cf3a5-f769-4224-b95e-b7be80a34723?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/187cf3a5-f769-4224-b95e-b7be80a34723?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/187cf3a5-f769-4224-b95e-b7be80a34723?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/187cf3a5-f769-4224-b95e-b7be80a34723?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/187cf3a5-f769-4224-b95e-b7be80a34723?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20limitation%3A%20Selenium%20Manager%20does%20not%20support%20ARM64%2C%20so%20Superset%20fails%20to%20generate%20screenshots%20for%20Alerts%20%26%20Reports%20on%20ARM%20environments%2C%20even%20if%20you%20manually%20install%20the%20browser%20and%20driver.%20Superset%20does%20not%20currently%20expose%20a%20config%20to%20override%20the%20WebDriver%20executable%20path%20to%20bypass%20Selenium%20Manager%2C%20so%20manual%20driver%20installation%20alone%20is%20not%20enough%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/issues/34849%29.%0A%0AThe%20recommended%20and%20robust%20solution%20is%20to%20switch%20to%20Playwright%20for%20screenshot%20generation.%20Playwright%20supports%20ARM64%20and%20is%20now%20the%20preferred%2
 
0backend%20for%20Superset%20screenshots%20%5B%5Bsource%5D%5D%28https%3A//github.com/apache/superset/discussions/35327%29%3A%0A%0A1.%20In%20your%20worker%20container%2C%20run%3A%0A%20%20%20%60%60%60%0A%20%20%20pip%20install%20playwright%20%26%26%20playwright%20install%20chromium%0A%20%20%20%60%60%60%0A2.%20In%20your%20%60config.py%60%2C%20add%3A%0A%20%20%20%60%60%60python%0A%20%20%20SUPERSET_FEATURE_PLAYWRIGHT_REPORTS_AND_THUMBNAILS%20%3D%20True%0A%20%20%20%60%60%60%0A%20%20%20%28Setting%20this%20as%20an%20environment%20variable%20will%20not%20work.%29%0A%0ANo%20other%20configuration%20changes%20are%20needed.%20Alerts%20%26%20Reports%20will%20continue%20to%20work%20as%20usual%2C%20and%20screenshot-based%20formats%20%28PNG%2C%20PDF%29%20will%20be%20functional%20on%20ARM64.%0A%0AIf%20you%20need%20to%20stick%20with%20Selenium%2C%20there%20is%20currently%20no%20supported%20way%20to%20bypass%20Selenium%20Manager%20for%20the%20driver%20executable%20in%20Superset%E2%80%99s%20config.%20Playw
 
right%20is%20the%20recommended%20path%20forward%20for%20ARM%20environments.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/36448)


-- 
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