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

[BUG] build GR fails on windows julia 1.9.0 #4755

Closed
mackrol opened this issue May 21, 2023 · 2 comments
Closed

[BUG] build GR fails on windows julia 1.9.0 #4755

mackrol opened this issue May 21, 2023 · 2 comments
Labels

Comments

@mackrol
Copy link

mackrol commented May 21, 2023

Details

]build GR fails to build on windows julia 1.9 due to wrong path to 7z. In official julia 1.9 distribution for windows 7z is located in .\libexec\julia while GR expects 7z to be in .\libexec.

[ Info: Downloading pre-compiled GR 0.49.0 Windows binary
ERROR: LoadError: IOError: could not spawn `'d:\Apps\julia\bin\..\libexec/7z' x downloads/gr-0.49.0-Windows-x86_64.tar.gz -y`: no such file or directory (ENOENT)
Stacktrace:
 [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Union{RawFD, Base.Libc.WindowsRawSocket, IO}})
   @ Base .\process.jl:128
 [2] #760
   @ .\process.jl:139 [inlined]
 [3] setup_stdios(f::Base.var"#760#761"{Cmd}, stdios::Vector{Union{RawFD, Base.Libc.WindowsRawSocket, IO}})
   @ Base .\process.jl:223
 [4] _spawn
   @ .\process.jl:138 [inlined]
 [5] _spawn
   @ .\process.jl:133 [inlined]
 [6] success(cmd::Cmd)
   @ Base .\process.jl:536
 [7] top-level scope
   @ d:\Apps\julia\local\share\julia\packages\GR\cRdXQ\deps\build.jl:128
 [8] include(fname::String)
   @ Base.MainInclude .\client.jl:478
 [9] top-level scope
   @ none:5
in expression starting at d:\Apps\julia\local\share\julia\packages\GR\cRdXQ\deps\build.jl:74

Copying 7z to .\libexec "fixes" the problem.

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pythonplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: [91a5bcdd] Plots v1.15.2
Backend version (]st -m GR): [28b8d3ca] GR v0.49.1
Output of versioninfo():

Julia Version 1.9.0
Commit 8e63055292 (2023-05-07 11:25 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, haswell)
  Threads: 1 on 8 virtual cores
Environment:
  JULIA_IMAGE_THREADS = 1
  JULIA_DEPOT_PATH = d:\Apps\julia\local\share\julia;D:\Apps\julia\share\julia
@mackrol mackrol added the bug label May 21, 2023
@mackrol
Copy link
Author

mackrol commented May 21, 2023

Upgrade to [91a5bcdd] Plots v1.38.12 fixed the problem

@mackrol mackrol closed this as completed May 21, 2023
@niclasmattsson
Copy link

For future users who find this thread and need to install older versions of Plots: another workaround is to copy the libexec folder with its 7z.exe executable and dll from a previous Julia version into the 1.9.1 folder. So like this on Windows, assuming you installed to the default path: C:\Users\myusername\AppData\Local\Programs\Julia-1.9.1\libexec\7z.exe. Then builds of GR (and Blink) should succeed.

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

No branches or pull requests

2 participants