Skip to content
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

dyld[17157]: Library not loaded: '@rpath/QtWidgets' on macOS with v1.35.0 Plots.jl #4415

Closed
singularitti opened this issue Oct 2, 2022 · 5 comments
Labels
bug GR macOS upstream julia or dependencies

Comments

@singularitti
Copy link
Contributor

Details

julia> plot(1:10, 2:11)
dyld[17157]: Library not loaded: '@rpath/QtWidgets'
  Referenced from: '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/gksqt'
  Reason: tried: '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtGui.framework/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtWidgets.framework/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtCore.framework/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtNetwork.framework/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtGui.framework/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtWidgets.framework/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtCore.framework/QtWidgets' (no such file), '/Users/xxxxx/.julia/artifacts/9132d749fdc5f1fad9d2663ab3577028060824b5/Applications/gksqt.app/Contents/MacOS/../../../../lib/QtNetwork.framework/QtWidgets' (no such file), '/usr/local/lib/QtWidgets' (no such file), '/usr/lib/QtWidgets' (no such file)
connect: Connection refused
GKS: can't connect to GKS socket application

GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine FILLAREA
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine TEXT
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x

Versions

Plots.jl version: v1.35.0
Backend version (]st -m GR): v0.69.2
Output of versioninfo():

Julia Version 1.8.2
Commit 36034abf260 (2022-09-29 15:21 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin21.3.0)
  CPU: 10 × Apple M1 Pro
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, apple-m1)
  Threads: 1 on 8 virtual cores
@singularitti
Copy link
Contributor Author

singularitti commented Oct 2, 2022

I just updated Plots.jl (from v1.34) & its backend and have this error.

@singularitti singularitti changed the title dyld[17157]: Library not loaded: '@rpath/QtWidgets' dyld[17157]: Library not loaded: '@rpath/QtWidgets' on macOS with v1.35.0 Plots.jl Oct 2, 2022
@t-bltg
Copy link
Member

t-bltg commented Oct 3, 2022

@jheinen

@t-bltg
Copy link
Member

t-bltg commented Oct 4, 2022

@singularitti, can you try to latest release Plots@1.35.1 ?

@jheinen
Copy link
Member

jheinen commented Oct 4, 2022

@singularitti, can you try to latest release Plots@1.35.1 ?

If it errors, it would be helpful to start gksqt form the command line and watch possible error message. The path is Plots.GR.GRPreferences.gksqt.

If Windows complains about any missing libraries, the following command might give more information:

tasklist /m /fi "imagename eq gksqt.exe"

or, if you have installed VSCode: dumpbin gksqt.exe

@singularitti
Copy link
Contributor Author

@singularitti, can you try to latest release Plots@1.35.1 ?

It seems to be working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug GR macOS upstream julia or dependencies
Projects
None yet
Development

No branches or pull requests

3 participants