nauty_gentourng is not available

58 views
Skip to first unread message

Jakub Sliacan

unread,
Sep 9, 2022, 6:12:22 PM9/9/22
to sage-devel
Hi!

I'm using sage 9.6 on Fedora 36, installed via dnf. I am seeing the following. The version of nauty package that I see installed is nauty-2.7.4-1.fc36.x86_64.

```
sage: for t in digraphs.tournaments_nauty(6):
....:     print(t)
....:
---------------------------------------------------------------------------
FeatureNotPresentError                    Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 for t in digraphs.tournaments_nauty(Integer(6)):
      2     print(t)

File /usr/lib64/python3.10/site-packages/sage/graphs/digraph_generators.py:532, in DiGraphGenerators.tournaments_nauty(self, n, min_out_degree, max_out_degree, strongly_connected, debug, options)
    530 import shlex
    531 from sage.features.nauty import NautyExecutable
--> 532 gentourng_path = NautyExecutable("gentourng").absolute_filename()
    534 sp = subprocess.Popen(shlex.quote(gentourng_path) + " {0}".format(nauty_input),
    535                       shell=True,
    536                       stdin=subprocess.PIPE, stdout=subprocess.PIPE,
    537                       stderr=subprocess.PIPE, close_fds=True)
    539 if debug:

File /usr/lib64/python3.10/site-packages/sage/features/__init__.py:619, in Executable.absolute_filename(self)
    617 if path is not None:
    618     return path
--> 619 raise FeatureNotPresentError(self,
    620                              reason="Executable {executable!r} not found on PATH.".format(executable=self.executable),
    621                              resolution=self.resolution())

FeatureNotPresentError: nauty_gentourng is not available.
Executable 'gentourng' not found on PATH.
No equivalent system packages for pip are known to Sage.
```
It seems like no generators based on nauty are available, as I get the same error with `geng` if I want to access items from `graphs.nauty_geng("2")`.

If I recall correctly, there were no additional (installation) steps needed for these things to work in e.g. Sage 8.3. And I can't find any notes about this afterwards. Any help is much appreciated!

Thanks in advance,
Jakub

Dima Pasechnik

unread,
Sep 9, 2022, 6:23:57 PM9/9/22
to sage-devel
Hi Jakub,
this looks like a Fedora packaging problem.
Please report it to them.
Dima


--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/73f2313f-db93-4db0-bbae-9153f0603c42n%40googlegroups.com.

Jakub Sliacan

unread,
Sep 9, 2022, 7:05:07 PM9/9/22
to sage-devel
Thanks Dima,

Opened an issue as you suggested: https://bugzilla.redhat.com/show_bug.cgi?id=2125737. I'm surprised nobody else has hit the same issue yet, I just tried sage 9.4 and I can't get nauty generators to work either (slightly different behavior though).

Anyways, thanks again.
Jakub

Jakub Sliacan

unread,
Sep 10, 2022, 12:38:48 AM9/10/22
to sage-devel
Just to update: I compiled 9.6 from source and everything's as expected. Thanks

Dima Pasechnik

unread,
Sep 11, 2022, 5:30:07 AM9/11/22
to sage-devel
Hi Jakub,

It looks that QA of Fedora packages is a part of your job now, right?

IIRC, we also have problems with pari-gp Fedora 
packaging 
TLDR; system pari's packages don't allow to build gp2c, which is an optional pari package Fedora does not provide for some reason.

Cheers
Dima

Jakub Sliacan

unread,
Sep 13, 2022, 5:46:27 AM9/13/22
to sage-devel
Hi!
 
> It looks that QA of Fedora packages is a part of your job now, right?
Not really, I haven't been involved with that at all.

> which is an optional pari package Fedora does not provide for some reason.
Is there an issue filed about this (with fedora)? Not sure how responsive they are, but without an issue they definitely won't help.

I am not sure if /usr/bin/gp2c is what you need, but on my Fedora (36) it's there since I installed the OS on Mar 27. Also, when searching for pari.cfg, I get ` -rw-r--r--. 1 root root 16K Apr  8 04:54 /usr/lib64/pari/pari.cfg`. The command `find /usr -name pari.cfg` takes 0.6s on my system. Is that issue (https://trac.sagemath.org/ticket/32359) still an issue on F36?

Best,
jakub

Reply all
Reply to author
Forward
0 new messages