GitHub user OnlineProxy-io added a comment to the discussion: Superset get 
screenshot occurred exception:AttributeError: 'dict' object has no attribute 
'path

The error you’re hitting happens because Superset is handing off the service 
config as a plain old dictionary, but Selenium’s expecting a legit Service 
object with a path attribute on it. That mismatch is what’s blowing things up 
with the AttributeError. To fix it, you’ll wanna tweak your Superset WebDriver 
config to pass in a proper Service object instead of a dictionary. Just import 
the Service class from selenium.webdriver.chrome.service and wrap up your 
chromedriver path with it. That way, Selenium gets what it needs and stops 
complaining.
Once you make that change, the screenshot feature should work like a charm.

GitHub link: 
https://github.com/apache/superset/discussions/34062#discussioncomment-13667433

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


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

Reply via email to