Request for help with python-sabyenc

I am trying to install & run SABnzbd on Leap15
I have SABnzbd running, but i cannot get python-sabyenc v3.3.5 installed.
I have managed to install v3.0.2 from openSUSE Software
But SABnzbd is asking for a later version.

SABYenc disabled: no correct version found! (Found v3.0.2, expecting v3.3.5)

following the instructions on this page:
https://sabnzbd.org/wiki/installation/sabyenc.html
I have also tried to compile it myself, but being an absolute Python noob I get errors

I have installed everything I could find on those pages but no luck.
The error fatal error: Python.h: Bestand of map bestaat niet (file or map does not exist)
But as far as I know python is installed in leap15 and SABnzb (also Python) is running

Is the some kind soul that would help me out , or somebody who can update the package in the openSUSE downloads.
The error when compiling :

  linux-v1ws:/home/me/bin/SABnzbd-2.3.5 # pip install sabyenc --upgrade                 
Collecting sabyenc 
  Using cached https://files.pythonhosted.org/packages/4f/30/a1a313ee4d9881cc5e119fcefb9f746df71f1b4fa6d3b53cc334799dbfd8/sabyenc-3.3.5.tar.gz 
Installing collected packages: sabyenc 
  Running setup.py install for sabyenc ... error 
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2d2iw3mm/sabyenc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.re
ad().replace('
', '
');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jzsuaojs/install-record.txt --single-version-externally-managed --compile: 
    running install 
    running build 
    running build_ext 
    building 'sabyenc' extension 
    creating build 
    creating build/temp.linux-x86_64-3.6 
    creating build/temp.linux-x86_64-3.6/src 
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwin
d-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fwrapv -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-
unwind-tables -fstack-clash-protection -g -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-c
lash-protection -g -fPIC -I/usr/include/python3.6m -c src/sabyenc.c -o build/temp.linux-x86_64-3.6/src/sabyenc.o 
    In file included from src/sabyenc.c:22:0: 
    src/sabyenc.h:22:10: fatal error: Python.h: Bestand of map bestaat niet 
     #include <Python.h> 
              ^~~~~~~~~~ 
    compilation terminated. 
    error: command 'gcc' failed with exit status 1 
     
    ---------------------------------------- 
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-2d2iw3mm/sabyenc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
', '

');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-jzsuaojs/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp
/pip-install-2d2iw3mm/sabyenc/                                                                                                                                                                   
linux-v1ws:/home/me/bin/SABnzbd-2.3.5 # exit

You may need python3-devel

Thanks, that did the trick
Confusing stuff that Python.

It would only work when I used pip2 (Python2 ? )
so you need Python3 to compile Python2.
I am getting to old for this modern developing :frowning:

But a short test and SABnzbd seems to be working now without errors!

@Knurpht
By the way, also thanks for the latest version of par2cmdline (0.8.0) in the downloads
Was also a blocker in SABnzbd when installed on Leap15.

Graag gedaan :slight_smile: