You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.
The initial error is the same as issue #13 (EDIT: sorry, it's not; see exact error below), but unlike that issue, separate tests of Vega work as desired. Any suggestions? Thank you very much -- I'm a big fan of Altair.
Reproduce the behavior:
import altair as alt
import altair_saver
alt.Chart().mark_point().save("temp.html") # works
alt.Chart().mark_point().save("temp.pdf") # fails
I've tried reinstalling altair and altair-saver with conda, and I've tried reinstalling deps with npm install -g --force vega-lite vega-cli canvas. No change in the error message.
The exact error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair/vegalite/v4/api.py", line 488, in save
result = save(**kwds)
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair/utils/save.py", line 116, in save
mimebundle = spec_to_mimebundle(
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair/utils/mimebundle.py", line 60, in spec_to_mimebundle
return altair_saver.render(spec, format, mode=mode, **kwargs)
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair_saver/_core.py", line 255, in render
Saver = _select_saver(method, mode=mode, fmt=fmt)
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair_saver/_core.py", line 67, in _select_saver
if s.enabled() and fmt in s.valid_formats[mode]:
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair_saver/savers/_node.py", line 103, in enabled
return bool(exec_path("vl2vg") and exec_path("vg2png"))
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair_saver/savers/_node.py", line 29, in exec_path
for path in [None, npm_bin(global_=True), npm_bin(global_=False)]:
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair_saver/savers/_node.py", line 24, in npm_bin
return check_output_with_stderr(cmd).decode().strip()
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/site-packages/altair_saver/_utils.py", line 198, in check_output_with_stderr
ps = subprocess.run(
File "/home/ekernf01/.local/share/r-miniconda/envs/ggrn/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/ekernf01/.nvm/versions/node/v19.3.0/bin/npm', 'bin', '--global']' returned non-zero exit status 1.
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.
The initial error is the same as issue #13 (EDIT: sorry, it's not; see exact error below), but unlike that issue, separate tests of Vega work as desired. Any suggestions? Thank you very much -- I'm a big fan of Altair.
Reproduce the behavior:
Vega commands that do work:
Stuff I have done
I've tried reinstalling
altair
andaltair-saver
with conda, and I've tried reinstalling deps withnpm install -g --force vega-lite vega-cli canvas
. No change in the error message.The exact error message:
Excerpt from full conda environment details:
Conda environment details:
The text was updated successfully, but these errors were encountered: