Closed firasm closed 5 months ago
Yup. I got this too.
File ~/.local/share/virtualenvs/news-homepages-Qlfa7zLV/lib/python3.9/site-packages/altair_saver/savers/_selenium.py:267, in SeleniumSaver._extract(self, fmt)
265 driver.get(url)
266 try:
--> 267 driver.find_element_by_id("vis")
268 except NoSuchElementException:
269 raise RuntimeError(f"Could not load {url}")
AttributeError: 'WebDriver' object has no attribute 'find_element_by_id'
This error is now surfacing in Altair's unittests.
Workaround:
pip install selenium==4.2.0
Workaround:
pip install selenium==4.2.0
thanks this fixed the issue with altair-saver = "==0.5.0"
I'm encountering AttributeError: 'Chart' object has no attribute 'get_figure'
altair_saver.__version__ = 0.5.0
selenium.__version__ = 4.8.2.
I'm working inside a conda distribution so attempting to downgrade my selenium fails
conda install selenium=4.2.0
fails:
PackagesNotFoundError: The following packages are not available from current channels:
- selenium=4.2.0
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
How can I work around this? I have chrome 110 installed and the correct chromedriver for that version of chrome.
=================
update: conda install selenium=3.141.0
succeeded and now altair-saver
is working for me
@soilstack Have you specified to use the conda-forge
channel?
https://anaconda.org/conda-forge/selenium
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,
Just filing this issue - doing
chart.save()
results in this error:The important bit is:
This seems to have shown up on StackOverflow as well and the fix seems relatively simple. Let me see if I can submit a PR with the fix.