-
Notifications
You must be signed in to change notification settings - Fork 214
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
psconvert [ERROR]: Cannot execute Ghostscript (gs). #393
Comments
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct. |
Is it possible that GMT cannot find the Ghostscript executable? I wonder if there is a way of passing the location of my Ghostscript executable to fig.show() as a kwarg?
|
By hardcoding Line 160 in 320a728
I'm happy to submit a PR that allows the location of the Ghostscript executable to be found by GMT. One way is to pass **kwargs to fig.show(), but I doubt this is the best way. Another way is to set another environment variable. Any thoughts on how to best approach this? Or is there already another solution that I do not know about? Thanks! |
It's really weird. Your gs is in your PATH, and GMT should be able to find it without any extra settings. |
I'm not sure what we see in the Jupyterlab terminal window is the environment seen by a notebook when using conda environments inside Jupyterlab. |
Maybe you could try following steps:
|
Well, I am running this on Pangeo, which is built on a z2jh foundation using Kubernetes in the cloud. So opening a terminal separate from Jupyterlab isn't quite possible the way it would be if I was running all this locally. I'm switching to the conda environment using nb_conda_kernels. You are probably right that I just need to figure out how to set up my environment correctly. We don't normally use/need conda environments on Pangeo, but I am unable to conda install gmt==6.0.0 on Pangeo because all sorts of conflicts and I decided to try inside a conda environment. I can at least install GMT, but now we have environment issues. Another solution is to figure out why gmt==6.0.0 cannot be installed on Pangeo. |
@ocefpaf, hope you are doing well. One potential solution to the issue here is figuring out how to conda install gmt==6.0.0 on Pangeo. Any suggestions on how to make this work? |
Sure. I can help you debug that. Can you open an issue outside of (It may be as simple as a re-render/rebuild of gmt. But probably not that easy ;-p) |
Thank you for the quick response @ocefpaf! New issue here: pangeo-data/pangeo-cloud-federation#525 |
Working with @ocefpaf, I figured out how to install gmt=6 using conda inside Pangeo without a conda env, and this configuration issue was resolved. Thank you! |
After a fresh install in a conda environment as per the installation instructions, I get the following error when trying to make my first figure:
Here is the output from conda list:
Any thoughts on what might be going on? Thanks!
The text was updated successfully, but these errors were encountered: