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

ZMQ.jl does not precompile on Ubuntu running CUDA drivers #233

Closed
pszufe opened this issue May 27, 2024 · 2 comments · Fixed by #234
Closed

ZMQ.jl does not precompile on Ubuntu running CUDA drivers #233

pszufe opened this issue May 27, 2024 · 2 comments · Fixed by #234

Comments

@pszufe
Copy link

pszufe commented May 27, 2024

The default CUDA installation on AWS Ubuntu image utilizes the port 5555.
Unfortunately this seems that this port is needed during precompilation of ZMQ.jl

The workaround is sudo pkill -f nvidia and than trying to install ZMQ.jl (which is required by other very common Julia packages such as IJulia). This is however more than ugly workaround. Perhaps ZMQ could not try to start a server while precompiling or could be able to fallback to another port if 5555 is in use?

julia> using ZMQ
Precompiling ZMQ
        Info Given ZMQ was explicitly requested, output will be shown live
ERROR: LoadError: ZMQ.StateError("Address already in use")
Stacktrace:
 [1] bind
   @ ~/.julia/packages/ZMQ/4Jw8C/src/socket.jl:106 [inlined]
 [2] macro expansion
   @ ~/.julia/packages/ZMQ/4Jw8C/src/ZMQ.jl:61 [inlined]
 [3] macro expansion
   @ ~/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:78 [inlined]
 [4] top-level scope
   @ ~/.julia/packages/ZMQ/4Jw8C/src/ZMQ.jl:47
 [5] include
   @ ./Base.jl:495 [inlined]
 [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
   @ Base ./loading.jl:2222
 [7] top-level scope
   @ stdin:3
in expression starting at /home/ubuntu/.julia/packages/ZMQ/4Jw8C/src/ZMQ.jl:3
in expression starting at stdin:3
  ✗ ZMQ
  0 dependencies successfully precompiled in 3 seconds. 5 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

ZMQ [c2297ded-f4af-51ae-bb23-16f91089e4e1]
@pszufe
Copy link
Author

pszufe commented May 27, 2024

This was fast :D

@JamesWrigley
Copy link
Member

Thanks for the report, I've merged a fix and tagged a new release which should be available soon: JuliaRegistries/General#107730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants