root@server:~/Downloads# python3 -c "import sling; sling.which()"
SLING API version 3.0.0 (Sat Feb 4 11:59:11 2023) in /usr/local/lib/python3.9/dist-packages/sling
root@server:~/Downloads# sling fetch --dataset caspar
[2023-02-04 11:59:34.807193: I sling/pyapi/pytask.cc:525] Start HTTP server on port 6767
[2023-02-04 11:59:34.813720: I run.py:341] Execute command fetch
*** Signal 11 (Segmentation fault) at 0x0000020b26f0 for 0x0000020b26f0
@ 0x0000020b26f0 (unknown)
**Segmentation fault**
root@server:~/Downloads# cat /etc/*release
PRETTY_NAME="**Debian GNU/Linux 11** (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
It seems like there are some incompatibilities in the C extension API between python 3.8 and 3.9, so there is little hope that you can make one version which works with both.
I have now added a check to tools/buildall.sh which detects the python3 version and sets the PYVER variable. This will compile a pysling.so which is compatiable with your python version.
I’m in the process up upgrading my systems to Ubuntu 22, which uses python 3.10 by default. When this has been done, I will deprecate support for python versions before 3.9.
In the meantime, I have made a version available that can be used with Python >= 3.9 here:
https://ringgaard.com/data/dist/sling-3.0.1-py3-none-linux_x86_64.whl
NB: Please notice that this version is not updated daily.