JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
520 stars 75 forks source link

cannot build on v1.3.0-rc1.0 and v1.1.1 #333

Closed JeffreySarnoff closed 5 years ago

JeffreySarnoff commented 5 years ago
              _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.0-rc1.0 (2019-08-18)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(v1.3) pkg> build Interact
  Building MbedTLS ─────→ `C:\Users\jas\.julia\packages\MbedTLS\a1JFn\deps\build.log`
  Building WebIO ───────→ `C:\Users\jas\.julia\packages\WebIO\2fDJH\deps\build.log`
  Building Knockout ────→ `C:\Users\jas\.julia\packages\Knockout\1sDlc\deps\build.log`
  Building InteractBase → `C:\Users\jas\.julia\packages\InteractBase\l8cEC\deps\build.log`
  Building Interact ────→ `C:\Users\jas\.julia\packages\Interact\0klKX\deps\build.log`
┌ Error: Error building `Interact`:
│ ┌ Error: Download failed: curl: (22) The requested URL returned error: 503 Service Unavailable
│ └ @ Base download.jl:43
│ ERROR: LoadError: failed process: Process(`'C:\WINDOWS\System32\curl.exe' -s -S -g -L -f -o 'C:\Users\jas\.julia\packages\Interact\0klKX\assets\bulma.min.css' https://www.gitcdn.xyz/repo/piever/InteractResources/v0.4.0/bulma/main.min.css`, ProcessExited(22)) [22]
│
│ Stacktrace:
│  [1] pipeline_error at .\process.jl:525 [inlined]
│  [2] download_curl(::String, ::String, ::String) at .\download.jl:44
│  [3] download(::String, ::String) at .\download.jl:62
│  [4] top-level scope at C:\Users\jas\.julia\packages\Interact\0klKX\deps\build.jl:12
│  [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:432
│  [9] top-level scope at none:5
│ in expression starting at C:\Users\jas\.julia\packages\Interact\0klKX\deps\build.jl:11
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:649
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.1 (2019-05-16)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(v1.1) pkg> build Interact
  Building MbedTLS ─────→ `C:\Users\jas\.julia\packages\MbedTLS\X4xar\deps\build.log`
  Building WebIO ───────→ `C:\Users\jas\.julia\packages\WebIO\2fDJH\deps\build.log`
  Building Knockout ────→ `C:\Users\jas\.julia\packages\Knockout\1sDlc\deps\build.log`
  Building InteractBase → `C:\Users\jas\.julia\packages\InteractBase\l8cEC\deps\build.log`
  Building Interact ────→ `C:\Users\jas\.julia\packages\Interact\0klKX\deps\build.log`
┌ Error: Error building `Interact`:
│ Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (503) Server Unavailable."
│ At line:1 char:96
│ + ... pe]::Tls12; (New-Object System.Net.Webclient).DownloadFile('https://w ...
│ +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
│     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
│     + FullyQualifiedErrorId : WebException
│
│ ERROR: LoadError: failed process: Process(`'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' -Version 3 -NoProfile -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (New-Object System.Net.Webclient).DownloadFile('https://www.gitcdn.xyz/repo/piever/InteractResources/v0.4.0/bulma/main.min.css', 'C:\Users\jas\.julia\packages\Interact\0klKX\assets\bulma.min.css')"`, ProcessExited(1)) [1]
│ Stacktrace:
│  [1] error(::String, ::Base.Process, ::String, ::Int64, ::String) at .\error.jl:42
│  [2] pipeline_error at .\process.jl:785 [inlined]
│  [3] download(::String, ::String) at .\download.jl:20
│  [4] top-level scope at C:\Users\jas\.julia\packages\Interact\0klKX\deps\build.jl:12 [inlined]
│  [5] top-level scope at .\none:0
│  [6] include at .\boot.jl:326 [inlined]
│  [7] include_relative(::Module, ::String) at .\loading.jl:1038
│  [8] include(::Module, ::String) at .\sysimg.jl:29
│  [9] include(::String) at .\client.jl:403
│  [10] top-level scope at none:0
│ in expression starting at C:\Users\jas\.julia\packages\Interact\0klKX\deps\build.jl:11
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.1\Pkg\src\Operations.jl:1075
MrUrq commented 5 years ago

Same issue here, seems like https://gitcdn.xyz/ is down. This can be solved in the mean time by altering the build process to use the raw github page for the files that can't be reached.

]dev InteractBase change build.jl "https://www.gitcdn.xyz/repo/piever/InteractResources/v0.1.0/highlight/prism.css", "https://www.gitcdn.xyz/repo/piever/InteractResources/v0.1.0/highlight/prism.js", to "https://raw.githubusercontent.com/piever/InteractResources/master/highlight/prism.css", "https://raw.githubusercontent.com/piever/InteractResources/master/highlight/prism.js", and

]dev Interact change build.jl "https://www.gitcdn.xyz/repo/piever/InteractResources/v0.4.0/bulma/main.min.css" => "bulma.min.css", "https://www.gitcdn.xyz/repo/piever/InteractResources/v0.4.0/bulma/main_confined.min.css" => "bulma_confined.min.css", to "https://raw.githubusercontent.com/piever/InteractResources/master/bulma/main.min.css" => "bulma.min.css", "https://raw.githubusercontent.com/piever/InteractResources/master/bulma/main_confined.min.css" => "bulma_confined.min.css",

piever commented 5 years ago

gitcdn seems to be getting less and less reliable, not sure what's going on. We should probably figure out a better service to download things from github in a reliable way. Maybe jsdelivr?

SimonDanisch commented 5 years ago

I think gitcdn is simply deprecated, isn't it? I have good experiences jsdelivr!

giordano commented 5 years ago

Is there a fix for this issue coming? This package seems to be making CI useless for packages depending on Interact.jl (which is not particularly fun during last week of GSoC for my student) :slightly_smiling_face:

piever commented 5 years ago

Sorry about that. I've switched InteractBase to jsdelivr, waiting for the release to be merged to General. I'm updating Interact today (it may take a little bit longer as it still has not switched to Project.toml). For CI maybe InteractBase is good enough? Interact only adds CSS styling on top.

piever commented 5 years ago

It was faster than expected, new release of Interact just got merged and things should work fine now.