Hi, On lun, 2023-12-04 at 14:20 +0100, Axel Braun wrote:
Hi,
I'm trying to compile the new OHIF-plugin for Orthanc and run into the following problem (Leap only, TW is fine):
[ 26s] make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/OrthancOHIF-1.1/build' [ 26s] [ 3%] Generating AUTOGENERATED/StaticAssets.cpp [ 26s] /usr/bin/python3.6 /home/abuild/rpmbuild/BUILD/OrthancOHIF- 1.1/Resources/EmbedStaticAssets.py /home/abuild/rpmbuild/BUILD/OrthancOHIF-1.1/OHIF/dist /home/abuild/rpmbuild/BUILD/OrthancOHIF- 1.1/build/AUTOGENERATED/StaticAssets.cpp [ 26s] Traceback (most recent call last): [ 26s] File "/home/abuild/rpmbuild/BUILD/OrthancOHIF- 1.1/Resources/EmbedStaticAssets.py", line 116, in <module> [ 26s] compressed = gzip.compress(content, mtime=0)
Is this an issue of make, or of the ancient python version?
Yes, the problem is exactly that, the gzip.compress mtime parameter was added in 3.8 [1]. I would recommend to try to use python3.11 for leap, it should be available there for leap 15.4 and greater. In other case you'll need to patch that script just for leap to be able to run it with python 3.6. The python311 package doesn't override the /usr/bin/python3, so in any case you'll need to configure the cmake scripts to use the /usr/bin/python3.11 binary instead of the current /usr/bin/python3. [1] https://docs.python.org/3/library/gzip.html#gzip.compress