Jupyter kernel dying repeatedly while woking with SHTns library

Issue #43 invalid
Former user created an issue

Hi, I am working on a model to study evolution of magnetic field on the Sun's Surface. I have installed SHTns version 3.4.2 in a anaconda (4.10.1) environment. But while working with the library after importing it in a Jupyter Notebook or spyder editor, the kernel dies everytime while running the code. I tried to work with python 3.8 and python 3.6 but the problem was'nt resolved. I installed the library using the command "conda install -c conda-forge shtns". Kindly provide a solution to the problem at the earliest.

Comments (3)

  1. Nathanaël Schaeffer repo owner

    I have never experienced any such problem.
    My guess is that the conda package (?) is broken or compiled for a machine other than yours. However, I don’t know anything about conda so I cannot help you further. I don’t know who added shtns to conda, but I think you should file a bug report there.
    Easiest solution is to install shtns yourself. It is rather straightforward and you will achieve maximum performance:

    1. download the source here: https://bitbucket.org/nschaeff/shtns/downloads/
    2. extract it
    3. run ./configure --enable-python --disable-openmp
    4. run make
    5. run python setup.py install --user

    and you’re done (hopefully!).

  2. Akash Biswas

    Thank you for the suggestion. While installing the library myself, I encountered a problem, when I run the second command “make” it says:

    make: *** No targets specified and no makefile found. Stop.

    and the installation is not being done properly.

    Kindly suggest any solution for this!

  3. Log in to comment