When closing the old CMD and opening it again, this happens:
(@v1.6) pkg> add Images ImageMagick
Updating registry at `C:\Users\Hermesr\.julia\registries\General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:980
Resolving package versions...
Cloning [efe28fd5-8261-553b-a9e1-b2916fc3738e] OpenSpecFun_jll from https://github.com/JuliaBinaryWrappers/OpenSpecFun_jll.jl.git
ERROR: failed to clone from https://github.com/JuliaBinaryWrappers/OpenSpecFun_jll.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)
(@v1.6) pkg>
'''
oheil
May 18, 2021, 12:41pm
22
Of course, the environment variables are lost, when you close the CMD.
You need to set them permanently.
E.g. How do I set Windows Environment variables permanently? - Stack Overflow
oheil:
Opening the Command Prompt again and repeating the previous steps:
set JULIA_NO_VERIFY_HOSTS = **
set http_proxy = http: //fproxy2.ecp.elco.co.il : 8080
set https_proxy = http: //fproxy2.ecp.elco.co.il : 8080
julia
It is possible to link with the proxy again and add new packages
set JULIA_NO_VERIFY_HOSTS=**
set http_proxy=http://fproxy2.ecp.elco.co.il:8080
set https_proxy=http://fproxy2.ecp.elco.co.il:8080
Microsoft Windows [Version 10.0.16299.15]
(c) 2017 Microsoft Corporation. All rights reserved.
Z:\>set JULIA_NO_VERIFY_HOSTS=**
Z:\>set http_proxy=http://fproxy2.ecp.elco.co.il:8080
Z:\>set https_proxy=http://fproxy2.ecp.elco.co.il:8080
Z:\>julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.1 (2021-04-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.6) pkg> add Roots
Updating registry at `C:\Users\Hermesr\.julia\registries\General`
Resolving package versions...
No Changes to `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
No Changes to `C:\Users\Hermesr\.julia\environments\v1.6\Manifest.toml`
[4b11ee91] Gaston v1.0.4
[dc211083] Gnuplot v1.4.0
[682c06a0] JSON v0.21.1
[91a5bcdd] Plots v1.15.0
[438e738f] PyCall v1.92.3
[d330b81b] PyPlot v2.9.0
[b873ce64] ReplMaker v0.2.5
[f2b01f46] Roots v1.0.9
[44dac47c] VMLS v0.3.0 `C:\Users\Hermesr\Documents\GitHub\VMLS.jl#master`
[ade2ca70] Dates
[37e2e46d] LinearAlgebra
[de0858da] Printf
[3fa0cd96] REPL
[2f01184e] SparseArrays
(@v1.6) pkg> add ImageMagick Images
Resolving package versions...
Installed OpenSpecFun_jll ── v0.5.4+0
Installed Distances ──────── v0.10.3
Installed FFTW ───────────── v1.4.1
Installed ColorVectorSpace ─ v0.9.5
Downloaded artifact: OpenSpecFun
Updating `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
[6218d12a] + ImageMagick v1.2.1
[916415d5] + Images v0.24.1
Updating `C:\Users\Hermesr\.julia\environments\v1.6\Manifest.toml`
[621f4979] + AbstractFFTs v1.0.1
[4fba245c] + ArrayInterface v3.1.14
[13072b0f] + AxisAlgorithms v1.0.0
[39de3d68] + AxisArrays v0.4.3
[fa961155] + CEnum v0.4.1
[aafaddc9] + CatIndices v0.2.2
[d360d2e6] + ChainRulesCore v0.9.43
[c3611d14] + ColorVectorSpace v0.9.5
[ed09eef8] + ComputationalResources v0.3.2
[150eb455] + CoordinateTransformations v0.6.1
[dc8bdbbb] + CustomUnitRanges v1.0.1
[b4f34e82] + Distances v0.10.3
[ffbed154] + DocStringExtensions v0.8.4
[da5c29d0] + EllipsisNotation v1.1.0
[4f61f5a4] + FFTViews v0.3.1
[7a1cc6ca] + FFTW v1.4.1
[5789e2e9] + FileIO v1.9.0
[a2bd30eb] + Graphics v1.1.0
[bbac6d45] + IdentityRanges v0.3.1
[615f187c] + IfElse v0.1.0
[2803e5a7] + ImageAxes v0.6.9
[f332f351] + ImageContrastAdjustment v0.3.7
[a09fc81d] + ImageCore v0.8.22
[51556ac3] + ImageDistances v0.2.13
[6a3955dd] + ImageFiltering v0.6.21
[82e4d734] + ImageIO v0.4.1
[6218d12a] + ImageMagick v1.2.1
[bc367c6b] + ImageMetadata v0.9.5
[787d08f9] + ImageMorphology v0.2.11
[2996bd0c] + ImageQualityIndexes v0.2.2
[4e3cecfd] + ImageShow v0.3.1
[02fcd773] + ImageTransformations v0.8.12
[916415d5] + Images v0.24.1
[9b13fd28] + IndirectArrays v0.5.1
[a98d9a8b] + Interpolations v0.13.2
[8197267c] + IntervalSets v0.5.3
[2ab3a3ac] + LogExpFunctions v0.2.3
[dbb5928d] + MappedArrays v0.4.0
[e94cdb99] + MosaicViews v0.3.3
[f09324ee] + Netpbm v1.0.1
[6fe1bfb0] + OffsetArrays v1.8.0
[f57f5aa1] + PNGFiles v0.3.7
[5432bcbf] + PaddedViews v0.5.8
[d96e819e] + Parameters v0.12.2
[b3c3ace0] + RangeArrays v0.3.2
[c84ed2f1] + Ratios v0.4.0
[6038ab10] + Rotations v1.0.2
[699a6c99] + SimpleTraits v0.9.3
[276daf66] + SpecialFunctions v1.4.0
[cae243ae] + StackViews v0.1.1
[aedffcd0] + Static v0.2.4
[62fd8b95] + TensorCore v0.1.1
[06e1c1a7] + TiledIteration v0.3.0
[3a884ed6] + UnPack v1.0.2
[efce3f68] + WoodburyMatrices v0.5.3
[f5851436] + FFTW_jll v3.3.9+7
[c73af94c] + ImageMagick_jll v6.9.10-12+3
[1d5cc7b8] + IntelOpenMP_jll v2018.0.3+2
[856f044c] + MKL_jll v2021.1.1+1
[efe28fd5] + OpenSpecFun_jll v0.5.4+0
[4af54fe1] + LazyArtifacts
Precompiling project...
60 dependencies successfully precompiled in 52 seconds (131 already precompiled)
(@v1.6) pkg>
However from the shortcut created by Julia and entering the Shell mode is not achieved, as you can see in the attachment. What am I doing wrong?
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.1 (2021-04-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
shell> powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\Hermesr> set JULIA_NO_VERIFY_HOSTS=**
PS C:\Users\Hermesr> set http_proxy=http://fproxy2.ecp.elco.co.il:8080
PS C:\Users\Hermesr> set https_proxy=http://fproxy2.ecp.elco.co.il:8080
PS C:\Users\Hermesr>
PS C:\Users\Hermesr> ^C
PS C:\Users\Hermesr> julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.1 (2021-04-23)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.6) pkg> add Colors
Updating registry at `C:\Users\Hermesr\.julia\registries\General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:980
Resolving package versions...
Updating `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
[5ae59095] + Colors v0.12.8
No Changes to `C:\Users\Hermesr\.julia\environments\v1.6\Manifest.toml`
(@v1.6) pkg> add AbstractPlotting
Resolving package versions...
Cloning [79098fc4-a85e-5d69-aa6a-4863f24498fa] Rmath from https://github.com/JuliaStats/Rmath.jl.git
ERROR: failed to clone from https://github.com/JuliaStats/Rmath.jl.git, error: GitError(Code:ERROR, Class:OS, failed to send request: The connection with the server was terminated abnormally
)
(@v1.6) pkg>
oheil
May 18, 2021, 12:43pm
24
Have you seen my answer above?
After doing the recommended in the link:
https://stackoverflow.com/questions/17312348/how-do-i-set-windows-environment-variables-permanently
But I am getting the following alert:
Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:980
julia> ENV
Base.EnvDict with 49 entries:
"=::" => "::\\"
"ALLUSERSPROFILE" => "C:\\ProgramData"
"APPDATA" => "C:\\Users\\Hermesr\\AppData\\Roaming"
"CHOCOLATEYLASTPATHUPDATE" => "132652732277150141"
"CHOCOLATEYTOOLSLOCATION" => "C:\\tools"
"COMMONPROGRAMFILES" => "C:\\Program Files\\Common Files"
"COMMONPROGRAMFILES(X86)" => "C:\\Program Files (x86)\\Common Files"
"COMMONPROGRAMW6432" => "C:\\Program Files\\Common Files"
"COMPUTERNAME" => "HERMES"
"COMSPEC" => "C:\\Windows\\system32\\cmd.exe"
"DADIR" => "C:\\Program Files (x86)\\CheckPoint\\Endpoint Security\\Endpoint Common"
"FPS_BROWSER_APP_PROFILE_STRING" => "Internet Explorer"
"FPS_BROWSER_USER_PROFILE_STRING" => "Default"
"GNUPLOT_LIB" => "C:\\Program Files\\gnuplot\\demo;C:\\Program Files\\gnuplot\\demo\\games;C:\\Pr…
"HOMEDRIVE" => "Z:"
"HOMEPATH" => "\\"
"HOMESHARE" => "\\\\ecpfs\\users\\hermesr.ELECTRA_CON"
"HTTP_PROXY" => "http://fproxy2.ecp.elco.co.il:8080"
"JULIA_NO_VERIFY_HOSTS" => "**"
"LOCALAPPDATA" => "C:\\Users\\Hermesr\\AppData\\Local"
"LOGONSERVER" => "\\\\DCECP01"
"NUMBER_OF_PROCESSORS" => "4"
"ONEDRIVE" => "C:\\Users\\Hermesr\\OneDrive"
"OPENBLAS_MAIN_FREE" => "1"
"OS" => "Windows_NT"
⋮ => ⋮
(@v1.6) pkg> st
Status `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
[35d6a980] ColorSchemes v3.12.1
[5ae59095] Colors v0.12.8
[a93c6f00] DataFrames v1.1.1
[4b11ee91] Gaston v1.0.4
[dc211083] Gnuplot v1.4.0
[6218d12a] ImageMagick v1.2.1
[916415d5] Images v0.24.1
[682c06a0] JSON v0.21.1
[91a5bcdd] Plots v1.15.0
[438e738f] PyCall v1.92.3
[d330b81b] PyPlot v2.9.0
[b873ce64] ReplMaker v0.2.5
[f2b01f46] Roots v1.0.9
[44dac47c] VMLS v0.3.0 `C:\Users\Hermesr\Documents\GitHub\VMLS.jl#master`
[ade2ca70] Dates
[37e2e46d] LinearAlgebra
[de0858da] Printf
[3fa0cd96] REPL
[2f01184e] SparseArrays
(@v1.6) pkg> add XLSX
Updating registry at `C:\Users\Hermesr\.julia\registries\General`
┌ Warning: could not download https://pkg.julialang.org/registries
└ @ Pkg.Types C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Types.jl:980
Resolving package versions...
Updating `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
[fdbf4ff8] + XLSX v0.7.6
Updating `C:\Users\Hermesr\.julia\environments\v1.6\Manifest.toml`
[8f5d6c58] + EzXML v1.1.0
[fdbf4ff8] + XLSX v0.7.6
[a5390f91] + ZipFile v0.9.3
Precompiling project...
3 dependencies successfully precompiled in 9 seconds (191 already precompiled)
(@v1.6) pkg> add Polynomials
Resolving package versions...
Updating `C:\Users\Hermesr\.julia\environments\v1.6\Project.toml`
[f27b6e38] + Polynomials v2.0.10
Updating `C:\Users\Hermesr\.julia\environments\v1.6\Manifest.toml`
[e2ba6199] + ExprTools v0.1.3
[d8418881] + Intervals v1.5.0
[78c3b35d] + Mocking v0.7.1
[d8a4904e] + MutableArithmetics v0.2.19
[f27b6e38] + Polynomials v2.0.10
[f269a46b] + TimeZones v1.5.5
Precompiling project...
6 dependencies successfully precompiled in 10 seconds (194 already precompiled)
(@v1.6) pkg>
oheil
May 18, 2021, 1:35pm
27
It seems that you forgot to set the
https_proxy
environment variable permanently. It’s missing in the Julia ENV dict.
Only
"HTTP_PROXY" => "http://fproxy2.ecp.elco.co.il:8080"
shows up.
You need
"HTTPS_PROXY" => "http://fproxy2.ecp.elco.co.il:8080"
also.
3 Likes