-
Notifications
You must be signed in to change notification settings - Fork 33
Unable to save to png / svg with Selenium with chrome driver on Ubuntu 20.04 and Python 3.8.10 #101
Comments
Sorry this isn't working for you. https://stackoverflow.com/q/50642308 suggests that this might be due to running selenium as the root user, and can be remedied by running from another user account. |
Fortunately, Firefox webdriver works :) I am using Selenium 4.1.0 - (2). Chrome binaries are installed by apt / snap in I did not found how to "run Chrome as a regular user", I may be missing something. Now I am trying to simply instantiate a chrome webdriver but I still get a Thanks Jake for your prompt reply and for your help. |
I have to admit that selenium remains mostly mysterious to me. I cobbled together this package in a way that seems to work much of the time, but I apologize that I can't be of more help in debugging selenium issues. |
I try to dig the Selenium / Chromium problem and I found some information that I shared in the Selenium issue : SeleniumHQ/selenium#10341 (comment) I noticed that on Ubuntu, Chromium was installed with a chromedriver (chromium.chromedriver) with Snap in Unfortunately, it is not found automatically and I had to specify the executable_path. Don't apologize, it is not an Altair issue in fact :) |
I just stumbled upon the same issue ( What helped for me was adding an option Using the original chromedriver installed with Snap didn't help but resulted in an error All these are not really issues of |
Since Altair 5.2, the functionality of Altair Saver is now available in Altair via the vl-convert package. Most of the functionality has been available since 5.0, and the main addition in 5.2 was PDF export. See the docs on how to save charts for more details We are going to archive this repo, so I'm closing all the open issues and PRs before doing so. Try out the new options for saving charts mentioned above and if you run into issues, please open an issue directly in the altair or vl-convert repo. |
Hi everyone,
I am using selenium and I get a traceback when I try to save my chart to a png / svg file with chrome driver.
I get a
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist
errorThe chart is successfully saved with geckodriver.
The drivers are in my virtualenv "bin" folder, so they are in the path.
My code is the following : https://gist.github.com/fconil/b75c8eef479bb205ff226a13f0aeac62
I noticed there were many
DevToolsActivePort
issues on Selenium : https://github.com/SeleniumHQ/selenium/issues?q=is%3Aissue+DevToolsActivePort+is%3AclosedRegards
The text was updated successfully, but these errors were encountered: