-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gmic-py prints exception on display-less system even without display command being invoked #99
Comments
Maybe a setting to run G'MIC in a silent mode would be an option to pass to a G'MIC instance when creating one. That way, the import gmic
gmicInstance = gmic.Gmic(silent=True) As a temporary fix, I redirect both import gmic
import contextlib
import io
f = io.StringIO()
with contextlib.redirect_stderr(f):
with contextlib.redirect_stdout(f):
gmic.run("sp lena blur 10 output lena.png") |
When running the following G'MIC commands on a display-less system (
WSL Ubuntu 20.04
),gmic-py
(2.9.2 from PyPI) still prints a message out about not being able to display images because of missingmatplotlib
oripython
dependenciesOutputs
The text was updated successfully, but these errors were encountered: