-
Notifications
You must be signed in to change notification settings - Fork 33
Possible Windows-only error on save() to PNG #121
Comments
Thanks – I don't have a windows machine to debug this, so if you're able to figure out the issue and submit a fix, that would be very helpful! |
Can confirm it on my system as well. It looks to be an issue with altair_saver, not Altair itself. Also, most likely related to #70 |
Is there a workaround to this? |
I don't know of any workaround. I don't have access to a Windows machine to try it out. Perhaps someone who has access to a windows machine might volunteer to work on it? |
MAN! I have this same issue. |
Same issue with svg format. :-( |
I have the same issue after upgradig from Fedora 31 to Fedora 32. It worked perfectly with Fedora 31, but with Fedora 32, the code
goes with this error:
Thanks for any suggestions how to fix it. |
@balrog-nona This is unrealted to the windows error in this issue. You need to install additional requirements in order to save to PNG; see the installation instructions here: https://github.com/altair-viz/altair_saver#additional-requirements |
@jakevdp Thank you for the link. Looks like I'll have to configure geckodriver. |
I encountered the same issue while running the Investigating the error led me to the below code within
I originally thought that the above if statements were failing because of the file format |
I find the error @dkruszew would it be possible to share more of your code, namely the save function? |
I'm seeing the same issue right now as well. Temperamental would be the way I'd characterize it as well. |
FYI, I solved this on Win10 / WSL1 by |
Hi, ubuntu 20.04 |
@hoctro01 Try following the troubleshooting steps in the altair-saver installation instructions https://github.com/altair-viz/altair_saver/#installation |
I have installed and run code with terminal or pycharm on ubuntu ok, but i puslish systemd service ubuntu not working ("No enabled saver found that supports format='png'") [Unit] |
You need to find out the difference in your shell env vs. the systemd one -- starting with the fact you run this as root. If you try the Or look into systemd user services and run as |
I moved this issue into the altair-saver repo since altair now mainly recommends using vl-convert for saving static chart images. |
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. |
Getting an error using Altair saver when I am trying to save a chart to a PNG in Jupyter Notebook:
ValueError: Unsupported format: 'png'
Answer here on Stack Overflow suggested filing a bug report.
System info:
Windows 10
conda 4.8.2
Python 3.8.3
altair 4.1.0 py_1 conda-forge
altair_saver 0.1.0 py_0 conda-forge
vega 3.4.0 py38h32f6830_0 conda-forge
selenium 3.141.0 py38h9de7a3e_1001 conda-forge
Example Code:
Error Message:
The text was updated successfully, but these errors were encountered: