Using topcom after install (Sage 8.9, Mac Catalina)

35 views
Skip to first unread message

moep

unread,
Feb 7, 2020, 5:31:05 AM2/7/20
to sage-support
Hi,

I have a problem using the package topcom on my Mac (running Catalina).
After installing it (as I confirmation, I checked:

sage: is_package_installed('topcom')

True
), I wanted to run some older notebooks with polytope triangulations. However, I get the error shown below.

Is this related to the new app security settings in Catalina? Or is there some more subtle issue with the installation?

Thanks!

ValueError                                Traceback (most recent call last)
<ipython-input-13-fddeb80e2e65> in <module>()
----> 1 load('/xxxxx.sage')

/Applications/SageMath/local/lib/python2.7/site-packages/sage/misc/persist.pyx in sage.misc.persist.load (build/cythonized/sage/misc/persist.c:2483)()
    143 
    144     if sage.repl.load.is_loadable_filename(filename):
--> 145         sage.repl.load.load(filename, globals())
    146         return
    147 

/Applications/SageMath/local/lib/python2.7/site-packages/sage/repl/load.pyc in load(filename, globals, attach)
    270                 add_attached_file(fpath)
    271             with open(fpath) as f:
--> 272                 exec(preparse_file(f.read()) + "\n", globals)
    273     elif ext == '.spyx' or ext == '.pyx':
    274         if attach:

<string> in <module>()

/Applications/SageMath/local/lib/python2.7/site-packages/sage/geometry/triangulation/point_configuration.pyc in triangulations(self, verbose)
   1010                 raise ValueError('Need TOPCOM to find disconnected triangulations.')
   1011             if (self._regular is not None):
-> 1012                 raise ValueError('Need TOPCOM to test for regularity.')
   1013             ci = ConnectedTriangulationsIterator(self, star=self._star, fine=self._fine)
   1014             for encoded_triangulation in ci:

ValueError: Need TOPCOM to test for regularity.

Dima Pasechnik

unread,
Feb 7, 2020, 6:06:01 AM2/7/20
to sage-support
It's hard to say, but the root of the filesystem, as in '/xxxxx.sage'
is a very weird location to have any work files in, and it would be
not unusual for the OS to be suspicious
of something fishy going on. Normally one would keep everything in the
home directory, i.e. in ~/.
> --
> 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 on the web visit https://groups.google.com/d/msgid/sage-support/ef99163c-9503-4912-9a99-8436f1428ac0%40googlegroups.com.

moep

unread,
Feb 9, 2020, 2:51:26 PM2/9/20
to sage-support
Sorry, if there is a confusion regarding the file location, but I simply replaced the actual path with "xxxxx" for privacy reason.

The same kind of error message also pops up if I create a new file in the home directory. For example, if P is a point configuration, then let
p1 = P.restrict_to_regular_triangulations(True). Computing its triangulation then throws the analogous message:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-13-eada405664c7> in <module>()
----> 1 tria1=p1.triangulations_list()

/Applications/SageMath/local/lib/python2.7/site-packages/sage/geometry/triangulation/point_configuration.pyc in triangulations_list(self, verbose)
   1043             sage: p.set_engine('internal')     # optional - topcom
   1044         """
-> 1045         return list(self.triangulations(verbose))
   1046 
   1047 

/Applications/SageMath/local/lib/python2.7/site-packages/sage/geometry/triangulation/point_configuration.pyc in triangulations(self, verbose)
   1010                 raise ValueError('Need TOPCOM to find disconnected triangulations.')
   1011             if (self._regular is not None):
-> 1012                 raise ValueError('Need TOPCOM to test for regularity.')
   1013             ci = ConnectedTriangulationsIterator(self, star=self._star, fine=self._fine)
   1014             for encoded_triangulation in ci:

ValueError: Need TOPCOM to test for regularity.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.

moep

unread,
Feb 11, 2020, 7:28:11 AM2/11/20
to sage-support
The issue has a simple resolution, which I overlooked:
One has to set the internal machine to topcom, using PointConfiguration.set_engine('topcom'). 

I'm not sure why I didn't have to include it explicitly in every notebook on older versions. But it's not a big deal.
Reply all
Reply to author
Forward
0 new messages