Pkg.add("SymEngine") fails

package

#1

Installing SymEngine fails with the following error on Julia 0.6, Ubuntu 16.04:

julia> Pkg.build("SymEngine")
INFO: Building Conda
INFO: Building SymEngine
ERROR requests.packages.urllib3.connection:_match_hostname(360): Certificate did not match expected hostname: conda.binstar.org. Certificate: {'subjectAltName': [('DNS', 'anaconda.com'), ('DNS', 'anacondacloud.com'), ('DNS', 'anacondacloud.org'), ('DNS', 'binstar.org'), ('DNS', 'wakari.io')], 'subject': ((('commonName', u'anaconda.com'),),)}

CondaHTTPError: HTTP None None for url <https://conda.binstar.org/chria/linux-64/repodata.json>
Elapsed: None

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.
SSLError(SSLError(CertificateError("hostname 'conda.binstar.org' doesn't match either of 'anaconda.com', 'anacondacloud.com', 'anacondacloud.org', 'binstar.org', 'wakari.io'",),),)


=============================================================================================[ ERROR: SymEngine ]=============================================================================================

LoadError: failed process: Process(setenv(`/home/ufechner/.julia/v0.6/Conda/deps/usr/bin/conda create -y -p /home/ufechner/.julia/v0.6/SymEngine/deps/usr zlib`,String["PATH=/home/ufechner/bin:/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin", "SESSION=ubuntu", "INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=0", "DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path", "INFINALITY_FT_BOLD_EMBOLDEN_Y_VALUE=0", "QT_ACCESSIBILITY=1", "UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/3115", "PAPERSIZE=a4", "UPSTART_JOB=unity7", "DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3ls6kV1eI3", "XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0", "INFINALITY_FT_GLOBAL_EMBOLDEN_Y_VALUE=0", "INFINALITY_FT_BRIGHTNESS=0", "INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=10", "XDG_SESSION_DESKTOP=ubuntu", "INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=25", "SSH_AGENT_PID=3268", "INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true", "XDG_SESSION_TYPE=x11", "INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=25", "LC_TIME=de_DE.UTF-8", "QT_IM_MODULE=ibus", "LC_NUMERIC=de_DE.UTF-8", "XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg", "USER=ufechner", "JAVA_HOME=/usr/lib/jvm/java-8-oracle", "LC_MEASUREMENT=de_DE.UTF-8", "SESSIONTYPE=gnome-session", "INSTANCE=", "GDMSESSION=ubuntu", "INFINALITY_FT_FRINGE_FILTER_STRENGTH=0", "LC_TELEPHONE=de_DE.UTF-8", "CLUTTER_IM_MODULE=xim", "XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/home/ufechner/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop", "SHELL=/bin/bash", "XDG_SEAT=seat0", "XAUTHORITY=/home/ufechner/.Xauthority", "XDG_MENU_PREFIX=gnome-", "CONDARC=/home/ufechner/.julia/v0.6/Conda/deps/usr/condarc-julia.yml", "J2SDKDIR=/usr/lib/jvm/java-8-oracle", "GTK_MODULES=gail:atk-bridge:unity-gtk-module", "GNOME_KEYRING_PID=", "GTK_IM_MODULE=ibus", "INFINALITY_FT_GLOBAL_EMBOLDEN_X_VALUE=0", "QT_QPA_PLATFORMTHEME=appmenu-qt5", "XMODIFIERS=@im=ibus", "INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=100", "INFINALITY_FT_STEM_FITTING_STRENGTH=25", "INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=10", "HOME=/home/ufechner", "TERM=xterm-256color", "VTE_VERSION=4205", "GTK2_MODULES=overlay-scrollbar", "KIGITHUB=https://github.com/KiCad", "J2REDIR=/usr/lib/jvm/java-8-oracle/jre", "IM_CONFIG_PHASE=1", "UPSTART_INSTANCE=", "COMPIZ_CONFIG_PROFILE=ubuntu", "INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=40", "KICAD_PATH=/usr/share/kicad", "XDG_CURRENT_DESKTOP=Unity", "LANG=en_GB.UTF-8", "LOGNAME=ufechner", "GNOME_DESKTOP_SESSION_ID=this-is-deprecated", "XDG_RUNTIME_DIR=/run/user/1000", "LC_MONETARY=de_DE.UTF-8", "SHLVL=0", "SSH_AUTH_SOCK=/tmp/ssh-c1XCJ7l5Mxsn/agent.3252", "DESKTOP_SESSION=ubuntu", "GDM_LANG=en_GB", "LC_PAPER=de_DE.UTF-8", "LC_ADDRESS=de_DE.UTF-8", "CONDA_DEFAULT_ENV=/home/ufechner/.julia/v0.6/Conda/deps/usr", "GPG_AGENT_INFO=/home/ufechner/.gnupg/S.gpg-agent:0:1", "INFINALITY_FT_USE_VARIOUS_TWEAKS=true", "U1404=1", "INFINALITY_FT_CONTRAST=0", "INFINALITY_FT_FILTER_PARAMS=11 22 38 22 11", "PWD=/home/ufechner", "DISPLAY=:0", "INFINALITY_FT_BOLD_EMBOLDEN_X_VALUE=0", "UPSTART_EVENTS=xsession started", "COMPIZ_BIN_PATH=/usr/bin/", "LANGUAGE=en_GB:en", "XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/ufechner", "XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0", "XDG_VTNR=7", "WINDOWID=81789032", "MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path", "XDG_SESSION_ID=c2", "LC_NAME=de_DE.UTF-8", "CONDA_PREFIX=/home/ufechner/.julia/v0.6/Conda/deps/usr", "LC_IDENTIFICATION=de_DE.UTF-8", "INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=0", "QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1", "SSH_AGENT_LAUNCHER=upstart", "INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=true", "QT4_IM_MODULE=xim", "DERBY_HOME=/usr/lib/jvm/java-8-oracle/db", "OPENBLAS_MAIN_FREE=1", "JOB=unity-settings-daemon", "INFINALITY_FT_GAMMA_CORRECTION=0 100", "GNOME_KEYRING_CONTROL="]), ProcessExited(1)) [1]
while loading /home/ufechner/.julia/v0.6/SymEngine/deps/build.jl, in expression starting on line 50

==============================================================================================================================================================================================================

===============================================================================================[ BUILD ERRORS ]===============================================================================================

WARNING: SymEngine had build errors.

 - packages with build errors remain installed in /home/ufechner/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("SymEngine")`
 - build a single package by running its `deps/build.jl` script

==============================================================================================================================================================================================================


Any ideas, how to fix this error?


#2

You can try retrying as the error message says.

HTTP errors are often intermittent, and a simple retry will get you on your way.

Did you add this channel https://conda.binstar.org/chria manually to your conda environment? If so, can you try removing this channel by doing,

using Conda
Conda.rm_channel("https://conda.binstar.org/chria")

#3

I tried your suggestion, but it doesn’t help:

julia> using Conda

julia> Conda.rm_channel("https://conda.binstar.org/chria")
CondaKeyError: 'channels': u'https://conda.binstar.org/chria' is not in the u'channels' key of the config file

Furthermore, this is an SSL error: "SSLError(SSLError(CertificateError(“hostname ‘conda.binstar.org’ doesn’t match either of ‘anaconda.com’, ‘anacondacloud.com’, ‘anacondacloud.org’, ‘binstar.org’, ‘wakari.io’”,),),)
"
It is not an error saying the web server would be unavailable. I thing this is a bug, but I don’t know where. Any idea? Could anybody else who is using Linux try to install this package and tell, if the installation works?


#4

I tried:

Conda.update()

and it fails with the same error.


#5

Can you post the output of the following?

using Conda
Conda.runconda(`info`)

#6

Ok, I found a solution. I opened a terminal and removed all but the default channel from my local minicoda installation.
I used conda config --get channels to list my channels and used conda config --remove channels ‘X’ to remove channel X.
It is annoying that Julia packages depend on a different package manager, that was installed outside of Julia.

Thank you for your help anyway!