Failed to install peanut

Down loaded from https://bitbucket.org/johanneskoester/peanut/get/fe2df128044f.zip

No python

Work around

Add /opt/Python/Python-3.4.1/bin to your PATH environment variable.
setenv PATH /opt/Python/Python-3.4.1/bin:"$PATH"

python3: can't open file 'setup.py': [Errno 2] No such file or directory

Work around

You may be in the wrong directory.

Try something like

cd johanneskoester-peanut-fe2df128044f

ImportError: No module named 'Cython'

python3 setup.py install --user
Traceback (most recent call last):
  File "setup.py", line 30, in 
    from Cython.Build import cythonize
ImportError: No module named 'Cython'
peanut needs the C interface for python.

Be aware that --user creates a pile of junk hidden in your user root directory ~/.local

Work around

Install Cython from http://cython.org/release/Cython-0.23.1.tar.gz

When trying to install cython you may get errors, such as:

src/wrapper/wrap_cl.hpp:28:19: fatal error: CL/cl.h: No such file or directory
#include <CL/cl.h>

ld: cannot find -lzlib

ld: cannot find -lvirtodbc

ld: warning: cannot find entry symbol _start; not setting start address

ld: cannot find -lOpenCL
which may be overcome by defining unix environment variables before attempting to install Cython-0.23.1
gunzip -c Cython-0.23.1.tar.gz | tar xvf -
setenv PYTHONPATH ~/peanut/Cython-0.23.1/
setenv CL_INC_DIR /usr/local/cuda/include
setenv CL_LIB_DIR /usr/local/cuda/lib
setenv LDFLAGS "-L/usr/lib64/nvidia"

python3 setup.py install --user

Helpful tools

The ld --verbose option, eg:

ld -lz --verbose > ~/t
ld -L/usr/lib64/nvidia/ -lOpenCL --verbose
can be useful, especially if piped into a temporary file.

ImportError: No module named 'h5py'

peanut needs h5py

Work around

None. This is where I gave up.


W.B.Langdon Back 10 September 2015