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

build GR ERROR #263

Open
HaoxueYue opened this issue Oct 28, 2019 · 10 comments
Open

build GR ERROR #263

HaoxueYue opened this issue Oct 28, 2019 · 10 comments

Comments

@HaoxueYue
Copy link

(v1.3) pkg> ```
build GR
Building GR → C:\Users\17651\.julia\packages\GR\f1Iqi\deps\build.log
ERROR: IOError: could not spawn `'D:\Program Files\Julia-1.3.0-rc4\bin\julia.exe' -Cnative '-JD:\Program Files\Julia-1.3.0-rc4\lib\julia\sys.dll' -O3 -g1 -O0 --color=no --history-file=no --startup-file=no --compiled-modules=yes --eval 'append!(empty!(Base.DEPOT_PATH), ["C:\Users\17651\.julia", "D:\Program Files\Julia-1.3.0-rc4\local\share\julia", "D:\Program Files\Julia-1.3.0-rc4\share\julia"])
append!(empty!(Base.DL_LOAD_PATH), String[])

cd("C:\Users\17651\.julia\packages\GR\f1Iqi\deps")
include("C:\Users\17651\.julia\packages\GR\f1Iqi\deps\build.jl")
'`: no such file or directory (ENOENT)
Stacktrace:
[1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99
[2] setup_stdios(::Base.var"#558#559"{Cmd}, ::Array{Any,1}) at .\process.jl:112
[3] _spawn(::Base.CmdRedirect, ::Array{Any,1}) at .\process.jl:111
[4] _spawn(::Base.CmdRedirect, ::Array{Any,1}) at .\process.jl:139
[5] _spawn at .\process.jl:106 [inlined]
[6] success(::Base.CmdRedirect) at .\process.jl:496
[7] (::Pkg.Operations.var"#46#49"{Bool,Cmd})(::IOStream) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:635
[8] #open#271(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(open), ::Pkg.Operations.var"#46#49"{Bool,Cmd}, ::String, ::Vararg{String,N} where N) at .\io.jl:298
[9] open at .\io.jl:296 [inlined]
[10] (::Pkg.Operations.var"#45#48"{Pkg.Types.PackageSpec,Bool,String,Cmd})() at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:634
[11] #47 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:654
[inlined]
[12] #32 at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:568
[inlined]
[13] withenv(::Pkg.Operations.var"#32#39"{Pkg.Operations.var"#47#50"{Pkg.Operations.var"#45#48"{Pkg.Types.PackageSpec,Bool,String,Cmd}},Pkg.Types.Context}, ::Pair{String,String}, ::Vararg{Pair{String,B} where B,N} where N) at .\env.jl:161
[14] (::Pkg.Operations.var"#30#36"{Bool,Pkg.Operations.var"#47#50"{Pkg.Operations.var"#45#48"{Pkg.Types.PackageSpec,Bool,String,Cmd}},Pkg.Types.Context,Pkg.Types.PackageSpec,Pkg.Types.Context,Set{Base.UUID},Set{Base.UUID},Array{Pkg.Types.PackageSpec,1}})(::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:567
[15] #mktempdir#18(::String, ::typeof(mktempdir), ::Pkg.Operations.var"#30#36"{Bool,Pkg.Operations.var"#47#50"{Pkg.Operations.var"#45#48"{Pkg.Types.PackageSpec,Bool,String,Cmd}},Pkg.Types.Context,Pkg.Types.PackageSpec,Pkg.Types.Context,Set{Base.UUID},Set{Base.UUID},Array{Pkg.Types.PackageSpec,1}}, ::String) at .\file.jl:634
[16] mktempdir(::Function, ::String) at .\file.jl:632 (repeats 2 times)
[17] #with_dependencies_loadable_at_toplevel#27(::Bool, ::typeof(Pkg.Operations.with_dependencies_loadable_at_toplevel), ::Pkg.Operations.var"#47#50"{Pkg.Operations.var"#45#48"{Pkg.Types.PackageSpec,Bool,String,Cmd}}, ::Pkg.Types.Context, ::Pkg.Types.PackageSpec) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:516
[18] (::Pkg.Operations.var"#kw##with_dependencies_loadable_at_toplevel")(::NamedTuple{(:might_need_to_resolve,),Tuple{Bool}}, ::typeof(Pkg.Operations.with_dependencies_loadable_at_toplevel), ::Function, ::Pkg.Types.Context, ::Pkg.Types.PackageSpec) at .\none:0
[19] backwards_compat_for_build(::Pkg.Types.Context, ::Pkg.Types.PackageSpec, ::String, ::Bool, ::Bool, ::Int64) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:652
[20] #build_versions#97(::Bool, ::Bool, ::typeof(Pkg.Operations.build_versions), ::Pkg.Types.Context, ::Array{Base.UUID,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:838
[21] #build_versions at .\none:0 [inlined]
[22] build(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Bool) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\Operations.jl:758
[23] #build#106(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.build), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:657
[24] build at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\API.jl:640 [inlined]
[25] do_build!(::Dict{Symbol,Any}, ::Array{Pkg.Types.PackageSpec,1}, ::Dict{Symbol,Any}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:483
[26] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Base.invokelatest), ::Any, ::Any, ::Vararg{Any,N} where N) at .\essentials.jl:709
[27] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at .\essentials.jl:708
[28] do_cmd!(::Pkg.REPLMode.Command, ::REPL.LineEditREPL) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:412
[29] #do_cmd#23(::Bool, ::typeof(Pkg.REPLMode.do_cmd), ::REPL.LineEditREPL, ::String) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:391
[30] do_cmd at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:387 [inlined]
[31] (::Pkg.REPLMode.var"#28#31"{REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\REPLMode.jl:619
[32] #invokelatest#1 at .\essentials.jl:709 [inlined]
[33] invokelatest at .\essentials.jl:708 [inlined]
[34] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\LineEdit.jl:2306
[35] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\REPL.jl:1045
[36] run_repl(::REPL.AbstractREPL, ::Any) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\REPL\src\REPL.jl:201
[37] (::Base.var"#774#776"{Bool,Bool,Bool,Bool})(::Module) at .\client.jl:390
[38] #invokelatest#1 at .\essentials.jl:709 [inlined]
[39] invokelatest at .\essentials.jl:708 [inlined]
[40] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at .\client.jl:374
[41] exec_options(::Base.JLOptions) at .\client.jl:312
[42] _start() at .\client.jl:468


julia> versioninfo()

Julia Version 1.3.0-rc4.1
Commit 8c4656b97a (2019-10-15 14:08 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
JULIA_EDITOR = "C:\Users\17651\AppData\Local\atom\app-1.41.0\atom.exe" -a
JULIA_NUM_THREADS = 4
JULIA_PKGDIR = D:\Program Files\Julia-1.3.0-rc1\pkg

@jheinen
Copy link
Owner

jheinen commented Oct 28, 2019

What is the location of Base.DEPOT_PATH and why is JULIA_PKGDIR set in your environment?

@PaulSoderlind
Copy link

Here is another data point, from Win10 (64b), Julia 1.3.0-rc4.1 while trying to update GR.jl 0.42.0:

IOError: could not spawn `'D:\Julia\Julia-1.3.0\bin/7z' x downloads/gr-0.42.0-Windows-x86_64.tar.gz

I would guess this is related to JuliaLang/julia#33470 and JuliaLang/julia#33630?

@crbinz
Copy link

crbinz commented Nov 20, 2019

Seeing this as well, on Windows 10

(v1.3) pkg> build GR
  Building GR → `C:\Users\cbinz\.julia\packages\GR\f1Iqi\deps\build.log`
┌ Error: Error building `GR`: 
│ [ Info: Downloading pre-compiled GR 0.42.0 Windows binary
│ ERROR: LoadError: IOError: could not spawn `'C:\Users\cbinz\AppData\Local\Julia-1.3.0-rc5\bin/7z' x downloads/gr-0.42.0-Windows-x86_64.tar.gz -y`: no such file or directory (ENOENT)
│ Stacktrace:
│  [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99
│  [2] setup_stdios(::Base.var"#552#553"{Cmd}, ::Array{Any,1}) at .\process.jl:112
│  [3] success(::Cmd) at .\process.jl:111
│  [4] top-level scope at C:\Users\cbinz\.julia\packages\GR\f1Iqi\deps\build.jl:123
│  [5] include at .\boot.jl:328 [inlined]
│  [6] include_relative(::Module, ::String) at .\loading.jl:1105
│  [7] include(::Module, ::String) at .\Base.jl:31
│  [8] include(::String) at .\client.jl:424
│  [9] top-level scope at none:5
│ in expression starting at C:\Users\cbinz\.julia\packages\GR\f1Iqi\deps\build.jl:66
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:649

julia> versioninfo()
Julia Version 1.3.0-rc5.1
Commit 36c4eb251e (2019-11-17 19:04 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Xeon(R) W-2133 CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
Environment:
  JULIA = /c/Users/cbinz/Code/julia

@PaulSoderlind
Copy link

'C:\Users\cbinz\AppData\Local\Julia-1.3.0-rc5\bin/7z

because 7z is now in Julia-1.3.0-rc5\libexec

@heliosdrm
Copy link
Contributor

Is this already fixed with GR 0.43 or 0.44?

@jheinen
Copy link
Owner

jheinen commented Nov 28, 2019

Yes - 0.43 and 0.44 should work. In Julia 1.3 (for Windows), both 7z.exe and 7z.dll reside in libexec (which makes sense).

@IndOLiviaStrong
Copy link

I have the same problem. How to solve it?

@IndOLiviaStrong
Copy link

┌ Error: Error building GR:
│ [ Info: Downloading pre-compiled GR 0.42.0 Windows binary
│ ERROR: LoadError: IOError: could not spawn 'C:\Users\yijin\AppData\Local\Julia-1.3.0\bin/7z' x downloads/gr-0.42.0-Windows-x86_64.tar.gz -y: no such file or directory (ENOENT)
│ Stacktrace:
│ [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99
│ [2] setup_stdios(::Base.var"#554#555"{Cmd}, ::Array{Any,1}) at .\process.jl:112
│ [3] success(::Cmd) at .\process.jl:111
│ [4] top-level scope at C:\Users\yijin.julia\packages\GR\f1Iqi\deps\build.jl:123
│ [5] include at .\boot.jl:328 [inlined]
│ [6] include_relative(::Module, ::String) at .\loading.jl:1105
│ [7] include(::Module, ::String) at .\Base.jl:31
│ [8] include(::String) at .\client.jl:424
│ [9] top-level scope at none:5
│ in expression starting at C:\Users\yijin.julia\packages\GR\f1Iqi\deps\build.jl:66
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:649

@jheinen
Copy link
Owner

jheinen commented Dec 8, 2019

Pleaae ] up GR

GR 0.43 or higher should work in Julia 1.3.

@IndOLiviaStrong
Copy link

Pleaae ] up GR

GR 0.43 or higher should work in Julia 1.3.

Thank you very much for your help. I am new to Julia. It works now.

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

No branches or pull requests

6 participants