Ask Your Question
1

how to install the package LattE on sage in ubuntu

asked 3 years ago

Ayush_Tewari gravatar image

updated 3 years ago

I am getting the following error message after initial computation when running Sage (installed from source) on Ubuntu


    ---------------------------------------------------------------------------
FeatureNotPresentError                    Traceback (most recent call last)
<ipython-input-60-45e1ce1b24fb> in <module>
      3 for T in ld_greater_one:
      4     dif = T + (-T)
----> 5     print(successive_minimum(dif))
      6     #if s_min < 1/4:
      7     #if successive_minimum(dif) < 1/4:

<string> in successive_minimum(P)

/usr/lib/python3/dist-packages/sage/geometry/polyhedron/base_QQ.py in integral_points_count(self, verbose, use_Hrepresentation, explicit_enumeration_threshold, preprocess, **kwds)
    212 
    213         from sage.interfaces.latte import count
--> 214         return count(
    215                 p.cdd_Hrepresentation() if use_Hrepresentation else p.cdd_Vrepresentation(),
    216                 cdd=True,

/usr/lib/python3/dist-packages/sage/interfaces/latte.py in count(arg, ehrhart_polynomial, multivariate_generating_function, raw_output, verbose, **kwds)
    114     """
    115     # Check that LattE is present
--> 116     Latte().require()
    117 
    118     arg = str_to_bytes(arg)

/usr/lib/python3/dist-packages/sage/features/__init__.py in require(self)
    189         presence = self.is_present()
    190         if not presence:
--> 191             raise FeatureNotPresentError(self, presence.reason, presence.resolution)
    192 
    193     def __repr__(self):

FeatureNotPresentError: LattE is not available.
Executable 'count' not found on PATH.
To install count you can try to run 'sage -i latte_int'.
Further installation instructions might be available at ......

How to install the package LattE in sage. I get an error message for the command 'sage -i latte_int'. stating

sage-run received unknown option: -i usage: sage [options] Try 'sage -h' for more information.

Preview: (hide)

Comments

1

What version of Sage do you use? Try to install Latte package by running sage -pip install latte_int

Max Alekseyev gravatar imageMax Alekseyev ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 3 years ago

slelievre gravatar image

When installing from source, one can add configure options to select extra packages to be installed.

For example, to install Sage with the latte_int package:

$ make -s V=0 configure
$ ./configure --enable-latte_int -q
$ make -s V=0

The -s, V=0 and -q parts are to set "silent mode", "low verbosity", and "quiet mode", skip them if you prefer more verbose output.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 3 years ago

Seen: 335 times

Last updated: Sep 12 '21