#28697 closed defect (duplicate)

missing latte optional tag in three doctests

Reported by: slabbe Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: geometry Keywords:
Cc: Merged in:
Authors: Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

With pynormalize installed but without latte installed, the command

sage -t --long src/sage/geometry/polyhedron/base_QQ.py

gives

**********************************************************************
File "src/sage/geometry/polyhedron/base_QQ.py", line 483, in sage.geometry.polyhedron.base_QQ.Polyhedron_QQ.?
Failed example:
    ts.integral_points_count()                # optional - pynormaliz
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.geometry.polyhedron.base_QQ.Polyhedron_QQ.?[13]>", line 1, in <module>
        ts.integral_points_count()                # optional - pynormaliz
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base_QQ.py", line 218, in integral_points_count
        **kwds)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/interfaces/latte.py", line 116, in count
        Latte().require()
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/features/__init__.py", line 158, in require
        raise FeatureNotPresentError(self, presence.reason, presence.resolution)
    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 https://www.math.ucdavis.edu/~latte/software.php.
**********************************************************************
File "src/sage/geometry/polyhedron/base_QQ.py", line 515, in sage.geometry.polyhedron.base_QQ.Polyhedron_QQ.?
Failed example:
    simplex.ehrhart_polynomial()                                                            # optional - pynormaliz
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.geometry.polyhedron.base_QQ.Polyhedron_QQ.?[24]>", line 1, in <module>
        simplex.ehrhart_polynomial()                                                            # optional - pynormaliz
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base_QQ.py", line 363, in ehrhart_polynomial
        **kwds)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base_QQ.py", line 761, in _ehrhart_polynomial_latte
        return count(ine, cdd=True, ehrhart_polynomial=True, verbose=verbose, **kwds)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/interfaces/latte.py", line 116, in count
        Latte().require()
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/features/__init__.py", line 158, in require
        raise FeatureNotPresentError(self, presence.reason, presence.resolution)
    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 https://www.math.ucdavis.edu/~latte/software.php.
**********************************************************************
File "src/sage/geometry/polyhedron/base_QQ.py", line 581, in sage.geometry.polyhedron.base_QQ.Polyhedron_QQ._ehrhart_quasipolynomial_normaliz
Failed example:
    ts.integral_points_count()                        # optional - pynormaliz
Exception raised:
    Traceback (most recent call last):
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.geometry.polyhedron.base_QQ.Polyhedron_QQ._ehrhart_quasipolynomial_normaliz[8]>", line 1, in <module>
        ts.integral_points_count()                        # optional - pynormaliz
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base_QQ.py", line 218, in integral_points_count
        **kwds)
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/interfaces/latte.py", line 116, in count
        Latte().require()
      File "/home/slabbe/GitBox/sage/local/lib/python2.7/site-packages/sage/features/__init__.py", line 158, in require
        raise FeatureNotPresentError(self, presence.reason, presence.resolution)
    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 https://www.math.ucdavis.edu/~latte/software.php.
**********************************************************************
2 items had failures:
   2 of  59 in sage.geometry.polyhedron.base_QQ.Polyhedron_QQ.?
   1 of  14 in sage.geometry.polyhedron.base_QQ.Polyhedron_QQ._ehrhart_quasipolynomial_normaliz
    30 latte_int tests not run
    0 tests not run because we ran out of time
    [79 tests, 3 failures, 0.11 s]
sage -t --long src/sage/symbolic/integration/external.py
    8 fricas tests not run
    0 tests not run because we ran out of time
    [36 tests, 20.85 s]

Change History (4)

comment:1 Changed 17 months ago by jipilab

Damn, I missed this ticket when I opened #28700. Sorry for the duplication. There is already a proposed fix over there.

Last edited 17 months ago by jipilab (previous) (diff)

comment:2 Changed 17 months ago by tscrim

  • Milestone changed from sage-9.0 to sage-duplicate/invalid/wontfix
  • Reviewers set to Travis Scrimshaw
  • Status changed from new to needs_review

comment:3 Changed 17 months ago by tscrim

  • Status changed from needs_review to positive_review

comment:4 Changed 17 months ago by chapoton

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.