-
Notifications
You must be signed in to change notification settings - Fork 76
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
Launching GKSTerm failed. #46
Comments
What happens if you manually start GKSTerm: On rare cases, I've seen error messages like "... is not a valid executable" (for the first method, which is used by GR - the second method always worked). If you can reproduce this behavior, please try to copy the Sounds weird, but I have not figured out yet, what the real problem is ... |
Thanks, indeed the first method failed; the second work.
however, moving the application to another location and back to the folder didn't work.
|
Is |
When I visit that sys preference, I don't see a list of allowed apps, but I have the item checked "Mac App store and identified developers". In the meantime, I tried the following:
and now I get plots in Julia, hurrah! Not sure why, I just took the above from: http://stackoverflow.com/questions/2182040/the-application-cannot-be-opened-because-its-executable-is-missing/16546673#16546673 |
Thanks for your help ! 👏 👍 I will add this command to the |
ok, fingers crossed! Thanks for your help (and the package!). |
I just had this issue, and copying the app back and forth worked for me. |
I seem to have run into the same issue, but using JuilaPro how can i set a variable to where to point? GKS: file open error (/usr/local/gr/fonts/gksfont.dat) |
just a followup when I created a symbolic link all was good
|
@alanedelman : There's probably some "old" GR distribution on your machine. I'd suggest to ENV["GRDIR"]=""
Pkg.build("GR") That should fix the problem. |
@jheinen this issue is affecting visual regression tests on Travis for the OSX build only: https://travis-ci.org/juliohm/GeoStats.jl/jobs/263332499 What can be done in this case? |
I have absolutely no idea, why GKSTerm can't be loaded. The build script should fix this problem: app = joinpath("gr", "Applications", "GKSTerm.app")
run(`/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -f $app`) I just checked GR on Travis and it worked: https://travis-ci.org/jheinen/GR.jl/jobs/260065240 |
@jheinen you mean that I need to add these lines to my Travis config file? I have no idea what is happening either, I will restart the build once again to see the problem persists. |
... this is normally done during the |
I restarted the build and the error seems to be unrelated now: https://travis-ci.org/juliohm/GeoStats.jl/jobs/263332499 The Travis OSX is quite unpredictable, I wish I had access to a OSX to test GeoStats.jl locally. |
The error is persistent on OSX: https://travis-ci.org/juliohm/GeoStats.jl/jobs/263759923#L254 😢 Could you please elaborate on what is GKSTerm and what is its relation to GR? I was looking into |
GKSTerm is part of GR and the default output device on macOS X. The tests in GeoStats seem to use GR in interactive mode, which can't work in a headless environment like Travis: using Plots; gr(size=(600,400)) You could set the default output device to PDF: ENV["GKSwstype"]="pdf"; using Plots; gr(size=(600,400)) |
@jheinen all the tests were working before on MacOSX with GR, this error started happening recently. What you mean by tests in interactive mode? I am following test standards according to my .travis.yml? |
There is no "terminal" in Travis, as it runs on a headless node. So you can't connect to a graphics terminal (GKSTerm.app). Please follow the instructions above. May be it worked some time ago, when GR was not the default backend. |
I am sure it was working with GR. I was using it already for my tests since JuliaCon. I wonder if my visual regression tests with VisualRegressionTests.jl will be affected by setting |
Any recent change on the default output device in GR? I can't see another reason for this build failure on Travis OSX. What I can tell you for sure is that the build was successful some days ago. |
It's probably related to this commit - I don't know. All tests are passing in GR and in Plots. Tom's visual regression tests are done using PNGs. IMO the above workaround should work ... Did you try it? |
For reference, you can check the build history of GeoStats.jl here and check that the build number 202 was successful with GR 5 days ago: https://travis-ci.org/juliohm/GeoStats.jl/builds/262532068 I'd rather not change my test data, the issue is problably in Plots.jl configuration. But I can try the PDF output when I have some time this week. I am working on something that is demanding a lot of my time now. |
... you don't have to change your test data - just change this single line in ' |
I'll install GeoStats.jl and run the tests on my iMac when I'm back in office (tomorrow). |
Thank you @jheinen, that would be super helpful 🙂 I am trying to avoid polluting the commit history of GeoStats.jl for just checking the Travis build. I don't think this issue is serious though, probably something very simple is missing in the Plots.jl setup. |
There seems to be a problem with the In rare cases, opening the GKSTerm application by URL failed. Unfortunately, this behaviour was not reproducible - even rebuilding the LaunchServices database or repeatedly registering the GKSTerm application (using Launching the GKSTerm binary using the NSTask mechanism, however, always seems to work !? I patched the current Darwin run-time - please re-trigger the Travis CI session. |
Thanks @jheinen, that's awesome! 😊 The build status is green again. I appreciate your help. Have a good productive week. |
Does this issue appear again for Apple Silicon? I got: any workaround for that? |
You are probably using a very old GR version. Could you provide some version information (macOS, Julia, GR)? |
macOS Sonoma 14.3 Julia Version 1.10.0 Status Status and I am using Visual Studio Code. Pretty much everything up-to-date, i believe |
Could you pls try to start Julia with an explicit output device?
For any reason, |
Thanks, after starting Julia with the above command, it works! Any suggestion to fix my environment? |
Is |
I am running into the same issue from the REPL. Launching Julia with
The issue is not present if I launch julia in a project with the following
|
Sorry, still can't reproduce that behaviour. I set up the above environment, and GR uses the Qt backend (GKS QtTerm). Same in a fresh Julia 1.11.0-DEV.1398 environment:
|
The issue appears in both Plots and GR. In the console, and Visual Code's REPL, without ` ` I don't know how to check where |
I will force the |
The problem is fixed in GR 0.73.2 |
Thank you! |
On my mac, I now can't seem to get GR started:
This is with the latest version of GR installed after first deleting ~/.julia/v0.5
any clues?
The text was updated successfully, but these errors were encountered: