JuliaPy / Conda.jl

Conda managing Julia binary dependencies
Other
172 stars 57 forks source link

Install from plotly channel fails #178

Closed sglyon closed 4 years ago

sglyon commented 4 years ago

I use Conda.jl to install plotly/orca for saving plotly charts to files.

My deps/build.jl script has these lines:

env = :_ORCA_jl_
Conda.add_channel("plotly", env)
Conda.add("plotly-orca", env)
Conda.update(env)

When it gets to the Conda.add("plotly-orca", env) line it fails with the following

julia> Conda.add("plotly-orca", env)
[ Info: Running `conda install -y plotly-orca` in _ORCA_jl_ environment
Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/plotly/win-64/current_repodata.json>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
'https://conda.anaconda.org/plotly/win-64'

ERROR: failed process: Process(setenv(`'C:\Users\spenc\.julia\conda\3\Scripts\conda.exe' install -y plotly-orca`,["PATH=C:\\Users\\spenc\\.julia\\conda\\3\\envs\\_ORCA_jl_\\Library\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Git\\cmd;C:\\Users\\spenc\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\spenc\\.dotnet\\tools;;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Users\\spenc\\AppData\\Local\\Microsoft\\WindowsApps;;C:\\Users\\spenc\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files\\JetBrains\\PyCharm Professional Edition with Anaconda plugin 2019.3.4\\bin;;C:\\Program Files\\JetBrains\\WebStorm 2019.3.4\\bin;", "USERDOMAIN_ROAMINGPROFILE=BARF", "HOMEPATH=\\Users\\spenc", "PYCHARM PROFESSIONAL EDITION WITH ANACONDA PLUGIN=C:\\Program Files\\JetBrains\\PyCharm Professional Edition with Anaconda plugin 2019.3.4\\bin;", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC", "SESSIONNAME=Console", "SYSTEMROOT=C:\\WINDOWS", "APPDATA=C:\\Users\\spenc\\AppData\\Roaming", "PSMODULEPATH=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules", "COMMONPROGRAMW6432=C:\\Program Files\\Common Files"  …  "LOGONSERVER=\\\\BARF", "DRIVERDATA=C:\\Windows\\System32\\Drivers\\DriverData", "CONDA_PREFIX=C:\\Users\\spenc\\.julia\\conda\\3\\envs\\_ORCA_jl_", "FPS_BROWSER_USER_PROFILE_STRING=Default", "SYSTEMDRIVE=C:", "FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer", "WEBSTORM=C:\\Program Files\\JetBrains\\WebStorm 2019.3.4\\bin;", "__COMPAT_LAYER=DetectorsAppHealth", "PROCESSOR_ARCHITECTURE=AMD64", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error at .\process.jl:525 [inlined]
 [2] run(::Cmd; wait::Bool) at .\process.jl:440
 [3] run at .\process.jl:438 [inlined]
 [4] runconda(::Cmd, ::Symbol) at C:\Users\spenc\.julia\packages\Conda\3rPhK\src\Conda.jl:114
 [5] add(::String, ::Symbol; channel::String) at C:\Users\spenc\.julia\packages\Conda\3rPhK\src\Conda.jl:188
 [6] add(::String, ::Symbol) at C:\Users\spenc\.julia\packages\Conda\3rPhK\src\Conda.jl:187
 [7] top-level scope at REPL[8]:1

I tried and this happened to me on windows, but not linux.

I'm not sure if there is anything this package can do, or if it is an upstream error with conda or plotly's use of conda.

Any suggestions on how we can resolve this issue?

(ref https://github.com/sglyon/ORCA.jl/issues/4#issuecomment-605445256)

stevengj commented 4 years ago

The https://conda.anaconda.org/plotly/win-64/current_repodata.json URL gives a 404 (not found) error if you paste it into the browser search bar, so it sounds like the plotly channel has an invalid URL?

Anyway, an upstream problem.

RoyiAvital commented 4 years ago

I also get an error, though it is different:

Conda.add("plotly")
[ Info: Running `conda install -y plotly` in root environment
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: D:\Applications\Programming\JuliaProMKL\Profile\JuliaPro_v1.4.1-1\Conda_env

  added / updated specs:
    - plotly

The following NEW packages will be INSTALLED:

  plotly             pkgs/main/noarch::plotly-4.6.0-py_0
  retrying           pkgs/main/win-64::retrying-1.3.3-py37_2

Preparing transaction: done
Verifying transaction: - WARNING conda.core.path_actions:verify(963): Unable to create environments file. Path not writable.
  environment location: C:\D:\Applications\Programming\JuliaProMKL\Profile\.conda\environments.txt

done
Executing transaction: done
Rolling back transaction: done

[Errno 22] Invalid argument: 'C:\\D:\\Applications\\Programming\\JuliaProMKL\\Profile\\.conda\\environments.txt'
()

ERROR: failed process: Process(setenv(`'D:\Applications\Programming\JuliaProMKL\Profile\JuliaPro_v1.4.1-1\Conda_env\Scripts\conda.exe' install -y plotly`,["PATH=D:\\Applications\\Programming\\JuliaProMKL\\Profile\\JuliaPro_v1.4.1-1\\Conda_env\\Library\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\MATLAB\\R2020a\\runtime\\win64;C:\\Program Files\\MATLAB\\R2020a\\bin;C:\\Program Files\\MATLAB\\R2019b\\runtime\\win64;C:\\Program Files\\MATLAB\\R2019b\\bin;C:\\Users\\Royi Avital\\AppData\\Local\\Microsoft\\WindowsApps;", "USERDOMAIN_ROAMINGPROFILE=DESKTOP-IIOBIL8", "HOMEPATH=D:\\Applications\\Programming\\JuliaProMKL\\Profile", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC", "NODE_ENV=production", "SESSIONNAME=Console", "SYSTEMROOT=C:\\WINDOWS", "APPDATA=D:\\Applications\\Programming\\JuliaProMKL\\Profile\\AppData", "PSMODULEPATH=C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules", "COMMONPROGRAMW6432=C:\\Program Files\\Common Files"  …  "LOGONSERVER=\\\\DESKTOP-IIOBIL8", "DRIVERDATA=C:\\Windows\\System32\\Drivers\\DriverData", "CONDA_PREFIX=D:\\Applications\\Programming\\JuliaProMKL\\Profile\\JuliaPro_v1.4.1-1\\Conda_env", "ATOM_HOME=D:\\Applications\\Programming\\JuliaProMKL\\.atom", "FPS_BROWSER_USER_PROFILE_STRING=Default", "SYSTEMDRIVE=C:", "FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer", "PROCESSOR_ARCHITECTURE=AMD64", "JULIPRO_HOME=\"D:\\Applications\\Programming\\JuliaProMKL\\Profile\\.juliapro\\JuliaPro_v1.4.1-1\"", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error at .\process.jl:525 [inlined]
 [2] run(::Cmd; wait::Bool) at .\process.jl:440
 [3] run at .\process.jl:438 [inlined]
 [4] runconda(::Cmd, ::String) at D:\Applications\Programming\JuliaProMKL\Profile\.juliapro\JuliaPro_v1.4.1-1\packages\Conda\3rPhK\src\Conda.jl:114
 [5] add(::String, ::String; channel::String) at D:\Applications\Programming\JuliaProMKL\Profile\.juliapro\JuliaPro_v1.4.1-1\packages\Conda\3rPhK\src\Conda.jl:188
 [6] add at D:\Applications\Programming\JuliaProMKL\Profile\.juliapro\JuliaPro_v1.4.1-1\packages\Conda\3rPhK\src\Conda.jl:187 [inlined] (repeats 2 times)
 [7] top-level scope at none:0