regina

3 views
Skip to first unread message

Enrique Artal

unread,
4:58 PM (6 hours ago) 4:58 PM
to sage-support
I wanted to take a look to regina in sagemath, but I am not able to install it. I can install it outside sage with pip (version 7.3.1.1). With sage -pip install regina I get in both10.8 and develop:

Collecting regina
 Using cached regina-6.1.0a3.tar.gz (5.5 MB)
 Preparing metadata (setup.py) ... done
Building wheels for collected packages: regina
 Building wheel for regina (setup.py) ... error
 error: subprocess-exited-with-error
  
 × python setup.py bdist_wheel did not run successfully.
  exit code: 1
 ╰─> [120 lines of output]
     /usr/local/sagedev1/local/var/lib/sage/venv-python3.14/lib64/python3.14/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
     !!
     
...
...

      running build_clib
     building 'tokyocabinet_regina' library
     creating build/temp.linux-x86_64-cpython-314/tokyocabinet-1.4.48
     gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O3 -fPIC -Ito
kyocabinet-1.4.48 -c tokyocabinet-1.4.48/tcutil.c -o build/temp.linux-x86_64-cpython-314/tokyocabinet-1.4.48/tcutil.o -std=gnu99
     tokyocabinet-1.4.48/tcutil.c:17:10: fatal error: tcutil.h: No such file or directory
        17 | #include "tcutil.h"
           |          ^~~~~~~~~~
     compilation terminated.
     error: command '/usr/bin/gcc' failed with exit code 1
     [end of output]
  
 note: This error originates from a subprocess, and is likely not a problem with pip.
 ERROR: Failed building wheel for regina
 Running setup.py clean for regina
Failed to build regina
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (regina)

And ./sage -pip install --upgrade "regina>=7.0"gives:

./sage -pip install --upgrade "regina>=7.0"
ERROR: Could not find a version that satisfies the requirement regina>=7.0 (from versions: 6.1.0a2, 6.1.0a3)
ERROR: No matching distribution found for regina>=7.0

 ERROR: Could not find a version that satisfies the requirement regina>=7.0 (from versions: 6.1.0a2, 6.1.0a3)
ERROR: No matching distribution found for regina>=7.0

Dima Pasechnik

unread,
8:12 PM (3 hours ago) 8:12 PM
to sage-s...@googlegroups.com
On Mon, Dec 22, 2025 at 3:58 PM Enrique Artal <enriqu...@gmail.com> wrote:
>
> I wanted to take a look to regina in sagemath, but I am not able to install it. I can install it outside sage with pip (version 7.3.1.1).

on 10.9.beta0 I have

$ ./sage --pip install regina
Collecting regina
Downloading regina-7.3.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
(3.9 kB)
Downloading regina-7.3.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
(17.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.9/17.9 MB 14.1 MB/s 0:00:01
Installing collected packages: regina
Successfully installed regina-7.3.1.1


So you must be on a non-manylinux platform?


./sage --pip install --no-binary regina regina
fails for me with

running build_clib
building 'tokyocabinet_regina' library
creating build/temp.linux-x86_64-cpython-313/tokyocabinet-1.4.48
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -fPIC
-Itokyocabinet-1.4.48 -c tokyocabinet-1.4.48/md5.c -o
build/temp.linux-x86_64-cpython-313/tokyocabinet-1.4.48/md5.o
-std=gnu99
tokyocabinet-1.4.48/md5.c:132:13: error: unknown type name ‘md5_state_t’
132 | md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
| ^~~~~~~~~~~
tokyocabinet-1.4.48/md5.c:132:37: error: unknown type name ‘md5_byte_t’
132 | md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
| ^~~~~~~~~~
tokyocabinet-1.4.48/md5.c:313:10: error: unknown type name ‘md5_state_t’
313 | md5_init(md5_state_t *pms)
| ^~~~~~~~~~~
tokyocabinet-1.4.48/md5.c:323:12: error: unknown type name ‘md5_state_t’
323 | md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes)
| ^~~~~~~~~~~
tokyocabinet-1.4.48/md5.c:323:36: error: unknown type name ‘md5_byte_t’
323 | md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes)
| ^~~~~~~~~~
tokyocabinet-1.4.48/md5.c:361:12: error: unknown type name ‘md5_state_t’
361 | md5_finish(md5_state_t *pms, md5_byte_t digest[16])
| ^~~~~~~~~~~
tokyocabinet-1.4.48/md5.c:361:30: error: unknown type name ‘md5_byte_t’
361 | md5_finish(md5_state_t *pms, md5_byte_t digest[16])
| ^~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for regina
Failed to build regina
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> regina


I'm not surprised that it doesn't build from source, as their build
system is very much outdated.

Dima
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-support/6044c30e-e1c1-4fdf-85d3-0107456a1f8an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages