build error due to change of position of `7z.exe`

#70 · closed · 6 comments

View on GitHub ↗

islent

`7z.exe` is under `libexec/julia/` instead of `libexec/` Problem is solve by manually copying files from `libexec/julia/` to `libexec/` ```julia (@v1.9) pkg> build Taro Building Taro → `E:\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\f987540c99daee40ce79d0557ccf98d5cc0145af\build.log` ERROR: Error building `Taro`: ERROR: LoadError: IOError: could not spawn `'E:\julia-1.9.2\bin\..\libexec\7z.exe' x 'E:\.julia\packages\Taro\7MUCw\deps\fop-2.3-bin.tar.gz' -y -so`: 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] _spawn(cmd::Cmd, stdios::Vector{Union{RawFD, Base.Libc.WindowsRawSocket, IO}}, chain::Base.ProcessChain) @ Base .\process.jl:208 [3] _spawn(cmds::Base.OrCmds, stdios::Vector{Union{RawFD, Base.Libc.WindowsRawSocket, IO}}, chain::Base.ProcessChain) @ Base .\process.jl:176 [4] #762 @ .\process.jl:147 [inlined] [5] setup_stdios(f::Base.var"#762#763"{Base.OrCmds}, stdios::Vector{Union{RawFD, Base.Libc.WindowsRawSocket, IO}}) @ Base .\process.jl:223 [6] _spawn @ .\process.jl:146 [inlined] [7] run(::Base.OrCmds; wait::Bool) @ Base .\process.jl:479 [8] run(::Base.OrCmds) @ Base .\process.jl:477 [9] top-level scope @ E:\.julia\packages\Taro\7MUCw\deps\build.jl:27 [10] include(fname::String) @ Base.MainInclude .\client.jl:478 [11] top-level scope @ none:5 in expression starting at E:\.julia\packages\Taro\7MUCw\deps\build.jl:17 julia> versioninfo() Julia Version 1.9.2 Commit e4ee485e90 (2023-07-05 09:39 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: 16 × Intel(R) Xeon(R) W-10885M CPU @ 2.40GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-14.0.6 (ORCJIT, skylake) Threads: 8 on 16 virtual cores Environment: JULIA_DEPOT_PATH = E:\.julia JULIA_NUM_THREADS = 8 JULIA_PKG_SERVER = https://mirrors.ustc.edu.cn/julia/ ```

Comments

mkitti

Does #71 fix this?

islent

The file seems not exist: ```julia (@v1.9) pkg> build Taro Building Taro → `E:\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\2772dc99f153cf7c3c2e5f5dcee145c54ce7aadd\build.log` ERROR: Error building `Taro`: [ Info: Downloading fop-2.3 binary from Apache OSUOSL Mirror ERROR: LoadError: RequestError: HTTP/1.1 404 Not Found while requesting https://apache.osuosl.org/xmlgraphics/fop/binaries/fop-2.3-bin.tar.gz Stacktrace: [1] #3 @ E:\julia-1.9.2\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:245 [inlined] [2] open(f::Downloads.var"#3#4"{Nothing, Vector{Pair{String, String}}, Float64, Nothing, Bool, Nothing, Nothing, String}, args::String; kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol, Symbol}, NamedTuple{(:write, :lock), Tuple{Bool, Bool}}}) @ Base .\io.jl:395 [3] #open_nolock#1 @ E:\julia-1.9.2\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:35 [inlined] [4] open_nolock @ E:\julia-1.9.2\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:35 [inlined] [5] arg_write(f::Function, arg::String) @ ArgTools E:\julia-1.9.2\share\julia\stdlib\v1.9\ArgTools\src\ArgTools.jl:103 [6] #download#2 @ E:\julia-1.9.2\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:232 [inlined] [7] download(url::String, output::String) @ Downloads E:\julia-1.9.2\share\julia\stdlib\v1.9\Downloads\src\Downloads.jl:221 [8] #invokelatest#2 @ .\essentials.jl:816 [inlined] [9] invokelatest @ .\essentials.jl:813 [inlined] [10] do_download(url::String, path::String) @ Base .\download.jl:24 [11] download(url::String, path::String) @ Base .\download.jl:19 [12] top-level scope @ E:\.julia\packages\Taro\8lwuB\deps\build.jl:15 [13] include(fname::String) @ Base.MainInclude .\client.jl:478 [14] top-level scope @ none:5 in expression starting at E:\.julia\packages\Taro\8lwuB\deps\build.jl:13 ``` ![image](https://github.com/aviks/Taro.jl/assets/31057826/dea1452e-df8a-4fff-a2f6-44c4412650b4)

mkitti

Wehre is that coming from? https://github.com/aviks/Taro.jl/blob/e583bafe35d8e8fc32feb479bafdbfd8a147a6a1/deps/build.jl#L15C14-L15C89 We use this URL: https://archive.apache.org/dist/xmlgraphics/fop/binaries/fop-2.3-bin.tar.gz

islent

> Wehre is that coming from? I'm using this branch: https://github.com/aviks/Taro.jl/pull/71 No idea why redirected to `osuosl.org` ![image](https://github.com/aviks/Taro.jl/assets/31057826/ac6d090e-33d7-45d4-b4b8-4f473b2d05ed) Nevertheless, I manually downloaded `fop-2.3-bin.tar.gz` and the problem is not solved: ![image](https://github.com/aviks/Taro.jl/assets/31057826/910daeb7-7a68-4295-902a-14bb793977d6)

mkitti

It does not seem that you are using the branch. In fact, it seems to me that you are using an old version of Taro.jl, not even the latest master. Please confirm your project status. Additionally, I have some concerns that you are using the default v1.9 environment to do this. Try this in Pkg REPL mode. ``` (@v1.9) pkg> activate --temp Activating new project at `/tmp/jl_uAwFqJ` (jl_uAwFqJ) pkg> add https://github.com/mkitti/Taro.jl#mkitti/fix_70 (jl_uAwFqJ) pkg> status Status `/tmp/jl_uAwFqJ/Project.toml` [61d0e4fa] Taro v0.8.5 `https://github.com/mkitti/Taro.jl#mkitti/fix_70` ```

islent

Oh, I see. I changed my clone of `mkitti/Taro.jl` to `fix_70` branch and installed it. However, Julia is chosing the master branch by default. https://github.com/aviks/Taro.jl/pull/71 does solve the problem: ![image](https://github.com/aviks/Taro.jl/assets/31057826/1ef7cb7b-c061-416e-bfb5-8ae368d9972e)