You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2026/05/02 02:51:47 UTC
Re: [D] Superset get screenshot occurred err:AttributeError: 'dict' object has no attribute 'path' [superset]
GitHub user dosubot[bot] edited a comment on the discussion: Superset get screenshot occurred err:AttributeError: 'dict' object has no attribute 'path'
<!-- Answer -->
The error happens because Selenium expects the service parameter to be a Service object, not a plain dict. Superset is supposed to take the service dict from WEBDRIVER_CONFIGURATION and internally convert it to a Service object before passing it to Selenium. If that conversion doesn't happen (for example, if the dict is passed directly), you'll see the AttributeError you described.
Your configuration is correct for Superset—just make sure you are not overriding or directly passing the service dict to Selenium yourself. Superset should handle the conversion internally, as shown in its codebase, by calling service_class(**driver_srv) with your dict values. Here’s a reference example of the recommended config:
```python
WEBDRIVER_TYPE = "chrome"
WEBDRIVER_CONFIGURATION = {
"service": {
"executable_path": "/usr/local/bin/chromedriver",
"log_output": "/var/log/superset",
"service_args": [],
"port": 0,
"env": {},
},
"options": {
"capabilities": {},
"preferences": {},
"binary_location": "",
},
}
WEBDRIVER_OPTION_ARGS = [
"--headless",
"--no-sandbox",
"--disable-gpu",
"--disable-dev-shm-usage",
"--disable-setuid-sandbox",
"--start-maximized",
]
```
Superset will handle the conversion if you use this pattern in superset_config.py. If you are still seeing the error, double-check that you are not customizing the instantiation logic elsewhere, and that you are running a compatible version of Superset and Selenium where this conversion is supported. For more details, see [this discussion](https://github.com/apache/superset/discussions/34053) and [the relevant code](https://github.com/apache/superset/blob/b9052fa46173b0172c7f4349ed0194e441a97ed8/superset/utils/webdriver.py).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=43fa22d6-4845-47c4-a7a7-fa8fbbfefeb3) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34061#discussioncomment-13658170
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org