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

Error building PyCall #742

Closed
kumarbal opened this issue Jan 25, 2020 · 2 comments
Closed

Error building PyCall #742

kumarbal opened this issue Jan 25, 2020 · 2 comments

Comments

@kumarbal
Copy link

kumarbal commented Jan 25, 2020

Hi

I am getting the following errors on Windows 10, with Python 3.7.6

build PyCall
  Building Conda ─→ `C:\Users\euskuba\.julia\packages\Conda\kLXeC\deps\build.log`
  Building PyCall → `C:\Users\euskuba\.julia\packages\PyCall\ttONZ\deps\build.log`
┌ Error: Error building `PyCall`:
│ Collecting package metadata (current_repodata.json): ...working... failed
│ 
│ CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/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.
│ 
│ If your current network has https://www.anaconda.com blocked, please file
│ a support request with your network engineering team.
│ 
│ 'https://repo.anaconda.com/pkgs/main/win-64'

Retrieving the current_repodata.json fails, as does the URL. I am able to access the URL in my browser.

The rest of the error log reads so:


│ ┌ Info: Using the Python distribution in the Conda package by default.
│ └ To use a different Python version, set ENV["PYTHON"]="pythoncommand" and re-run Pkg.build("PyCall").
│ [ Info: Running `conda install -y numpy` in root environment
│ ERROR: LoadError: failed process: Process(setenv(`'C:\Users\euskuba\.julia\conda\3\Scripts\conda.exe' install -y numpy`,["HDF5_USE_FILE_LOCKING=FALSE", "PATH=C:\\anaconda3;C:\\anaconda3\\bin;C:\\anaconda3\\condabin;C:\\ProgramData\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Intel\\WiFi\\bin\\;C:\\Program Files\\Common Files\\Intel\\WirelessCommon\\;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Adaptiva\\AdaptivaClient\\bin\\x32;C:\\Program Files (x86)\\Adaptiva\\AdaptivaClient\\bin\\x64;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PuTTY\\;C:\\Users\\euskuba\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\euskuba\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\euskuba\\AppData\\Local\\atom\\bin;C:\\Users\\euskuba\\.julia\\packages\\MKL\\9dWbC\\deps\\usr\\bin;C:\\Users\\euskuba\\.julia\\packages\\MKL\\9dWbC\\deps\\usr\\bin", "USERDOMAIN_ROAMINGPROFILE=ERICSSON", "HOMEPATH=\\", "ADAPTIVACLIENT=C:\\Program Files (x86)\\Adaptiva\\AdaptivaClient", "MKL_INTERFACE_LAYER=ILP64", "PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL", "NODE_ENV=production", "SESSIONNAME=Console", "GKS_USE_CAIRO_PNG=true"  …  "LOGONSERVER=\\\\USDOIWEGAD00001", "DRIVERDATA=C:\\Windows\\System32\\Drivers\\DriverData", "CONDA_PREFIX=C:\\Users\\euskuba\\.julia\\conda\\3", "ATOM_HOME=C:\\Users\\euskuba\\.atom", "FPS_BROWSER_USER_PROFILE_STRING=Default", "JULIA_LOAD_PATH=@;C:\\Users\\euskuba\\AppData\\Local\\Temp\\jl_I38W5d", "SYSTEMDRIVE=C:", "FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer", "PROCESSOR_ARCHITECTURE=AMD64", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]
│ 
│ Stacktrace:
│  [1] pipeline_error at .\process.jl:525 [inlined]
│  [2] #run#565(::Bool, ::typeof(run), ::Cmd) at .\process.jl:440
│  [3] run at .\process.jl:438 [inlined]
│  [4] runconda(::Cmd, ::String) at C:\Users\euskuba\.julia\packages\Conda\kLXeC\src\Conda.jl:113
│  [5] #add#1(::String, ::typeof(Conda.add), ::String, ::String) at C:\Users\euskuba\.julia\packages\Conda\kLXeC\src\Conda.jl:184
│  [6] add at C:\Users\euskuba\.julia\packages\Conda\kLXeC\src\Conda.jl:183 [inlined] (repeats 2 times)
│  [7] top-level scope at C:\Users\euskuba\.julia\packages\PyCall\ttONZ\deps\build.jl:84
│  [8] include at .\boot.jl:328 [inlined]
│  [9] include_relative(::Module, ::String) at .\loading.jl:1105
│  [10] include(::Module, ::String) at .\Base.jl:31
│  [11] include(::String) at .\client.jl:424
│  [12] top-level scope at none:5
│ in expression starting at C:\Users\euskuba\.julia\packages\PyCall\ttONZ\deps\build.jl:43
└ @ Pkg.Operations C:\Users\euskuba\AppData\Local\Julia-1.3.0\share\julia\stdlib\v1.3\Pkg\src\backwards_compatible_isolation.jl:649

conda version is 4.8.1

@stevengj
Copy link
Member

This problem is from Conda.jl, not PyCall per se. You should see the same error if you pkg> add Conda and then

using Conda
Conda.add("numpy")

for example.

As someone commented on discourse (https://discourse.julialang.org/t/pycall-installation-problems/33832), it is a network problem, probably caused by some kind of firewall or proxy setting that is defeating the Anaconda installer.

You could try installing Anaconda Python manually (i.e. downloading and running the Anaconda installer) and telling PyCall to use it.

@Himscipy
Copy link

Himscipy commented Mar 6, 2021

Hi @stevengj,

How to tell Pycall to build using the installed Anaconda Python ? Could you share some details about it, I am a newbie with PyCall. Thank you

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

3 participants