xeus-cling: Package Missing - can't install

On macOS 10.13.1: I’ve installed jupyter by installing Anaconda, installing cling when fine. But when I try to install xeus-cling I get the following:

$ conda install xeus-cling -c QuantStack -c conda-forge
Fetching package metadata ...............

PackageNotFoundError: Packages missing in current channels:
            
  - xeus-cling

We have searched for the packages in the following channels:
            
  - https://conda.anaconda.org/QuantStack/osx-64
  - https://conda.anaconda.org/QuantStack/noarch
  - https://conda.anaconda.org/conda-forge/osx-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.continuum.io/pkgs/main/osx-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/osx-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/osx-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/osx-64
  - https://repo.continuum.io/pkgs/pro/noarch

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 41 (22 by maintainers)

Most upvoted comments

We don’t already have the conda package of xeus-cling for macOS.

But I’m working on it and I hope it will be available soon !

@andrewnc @sean-parent xeus-cling is now available on macOS.

You need to install a fresh miniconda environment

conda create -n cling
source activate cling

And then install xeus-cling

conda install xeus-cling -c gouarin -c conda-forge
conda install notebook -c conda-forge

The conda channel gouarin is provisional and should change to QuantStack in the next few days.

xeus-cling package and its dependencies have been uploaded on QuantStack channel for Linux, OS X and Windows. From a fresh conda install, the following one-liner should get you a working xeus-cling kernel:

conda install xeus-cling -c QuantStack -c conda-forge

The support of Windows is still experimental.

Grrr… Trying to setup a new machine and it is failing. I’ve tried with both miniconda3 and anaconda3 - with anaconda the jupyter notebook launches but the only language choice is Python 3. With miniconda, the notebook fails to launch.

Here are my installation steps after installing miniconda:

conda create -n cling
source activate cling

# This line is not required
# conda install cling -c QuantStack -c conda-forge

# This line doesn't work yet - use next line as temporary fix
# conda install xeus-cling -c QuantStack -c conda-forge
conda install xeus-cling -c gouarin -c conda-forge

conda install notebook -c conda-forge
# To launch
jupyter notebook

And here is the result and my conda info…

(cling) seans-mbp-2:jupyter sean-parent$ jupyter notebook
Traceback (most recent call last):
  File "/Users/sean-parent/miniconda3/envs/cling/bin/jupyter-notebook", line 4, in <module>
    import notebook.notebookapp
  File "/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/notebook/notebookapp.py", line 42, in <module>
    from zmq.eventloop import ioloop
  File "/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/__init__.py", line 34, in <module>
    from zmq import backend
  File "/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/backend/__init__.py", line 40, in <module>
    reraise(*exc_info)
  File "/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/utils/sixcerpt.py", line 34, in reraise
    raise value
  File "/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/backend/__init__.py", line 27, in <module>
    _ns = select_backend(first)
  File "/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/backend/select.py", line 26, in select_backend
    mod = __import__(name, fromlist=public_api)
  File "/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
    from . import (constants, error, message, context,
ImportError: dlopen(/Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/backend/cython/constants.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libzmq.5.1.1.dylib
  Referenced from: /Users/sean-parent/miniconda3/envs/cling/lib/python3.6/site-packages/zmq/backend/cython/constants.cpython-36m-darwin.so
  Reason: image not found
(cling) seans-mbp-2:jupyter sean-parent$ conda info
Current conda install:

               platform : osx-64
          conda version : 4.3.31
       conda is private : False
      conda-env version : 4.3.31
    conda-build version : not installed
         python version : 3.6.3.final.0
       requests version : 2.18.4
       root environment : /Users/sean-parent/miniconda3  (writable)
    default environment : /Users/sean-parent/miniconda3/envs/cling
       envs directories : /Users/sean-parent/miniconda3/envs
                          /Users/sean-parent/.conda/envs
          package cache : /Users/sean-parent/miniconda3/pkgs
                          /Users/sean-parent/.conda/pkgs
           channel URLs : https://repo.continuum.io/pkgs/main/osx-64
                          https://repo.continuum.io/pkgs/main/noarch
                          https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
            config file : /Users/sean-parent/.condarc
             netrc file : None
           offline mode : False
             user-agent : conda/4.3.31 requests/2.18.4 CPython/3.6.3 Darwin/17.3.0 OSX/10.13.2    
                UID:GID : 501:20

Do you have xcode installed on your machine ?

@SylvainCorlay @gouarin I created a new environment, installed cling, installed xeus-cling, installed notebook and it works fine now with Miniconda3.

Thank you for your help. It seems that Python 2 and order of installation was the culprit

Andrew, can you check that you are running the right notebook server with which jupyter.

On Dec 1, 2017 8:49 PM, “Loic Gouarin” notifications@github.com wrote:

@andrewnc https://github.com/andrewnc I have to investigate because I don’t understand what could be the problem. For now, the only difference between your installation and the others is that you have a Python2 anaconda.

I will try on my laptop and I come back to you.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/QuantStack/xeus-cling/issues/84#issuecomment-348597411, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSXFrW2Dfhmifz-1iO3YghV-0P8Tq_aks5s8FhegaJpZM4Qw236 .