Rpy2 -> can not find -lzma

HI all,

I am trying to install the rpy2 package with pip:

pip install rpy2

Working through the requirements, wheel building failed on gcc, installed gcc with YAST, then failed on lib pcre2, got that (devel version) with YAST. Now it needs lib lzma

/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cannot find -llzma: No such file or directory

Now, regular lib lzma is installed but as with lpcre2 I tried to install the devel version which turned out to be xz-devel. Now it could not ‘find -lz: No such file or directory’

libz1 is installed, but no devel version, no libz-devel, libz1-devel but I got zlib-devel which did the trick, Next got through libicu but now I am stuck at:

  rpy2/rinterface_lib/_bufferprotocol.c:2:10: fatal error: Python.h: No such file or directory
   #include <Python.h>
            ^~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1

zypper install python-devel → gets python 2.7
zypper install python3-devel → ‘python3-devel’ is already installed

So, anyone experienced with installing rpy2 who can shed some light on this issue?

rpy2 is available in standard Leap 15.5 repositories.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.