snappy

102 views
Skip to first unread message

enriqu...@gmail.com

unread,
Mar 17, 2021, 4:33:55 AM3/17/21
to sage-devel
I was able to install in snappy in Sage 9.3beta8. I did not test it when installed and now in beta9 I am unable to test it. 
For import snappy I get a couple of DeprecationWarnings:

local/lib/python3.9/site-packages/snappy/snap/shapes.py:4: DeprecationWarning: the complex_field module is deprecated, please use sage.rings.complex_mpf

local/lib/python3.9/site-packages/snappy/verify/verifyCanonical.py:6: DeprecationWarning: the complex_number module is deprecated, please use sage.rings.complex_mpfr

and the following error:
  from .squareExtensions import find_shapes_as_complex_sqrt_lin_combinations
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-710a7f18823c> in <module>
----> 1 import snappy

~/sage/local/lib/python3.9/site-packages/snappy/__init__.py in <module>
     5 #logging.debug('This message should go to the log file')
     6 import sys
----> 7 from .SnapPy import (AbelianGroup, HolonomyGroup, FundamentalGroup,
     8                      DirichletDomain, CuspNeighborhood, SymmetryGroup,                                               
     9                      AlternatingKnotExteriors, NonalternatingKnotExteriors,

cython/core/fundamental_group.pyx in init SnapPy()

cython/core/fundamental_group.pyx in SnapPy.HolonomyGroup.use_field_conversion()

TypeError: can't set attributes of built-in/extension type 'type'

Dima Pasechnik

unread,
Mar 17, 2021, 5:56:21 AM3/17/21
to sage-devel
did you try reinstalling it?



--
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/b92b7369-c9f4-47e1-b13f-1530ad0323acn%40googlegroups.com.

enriqu...@gmail.com

unread,
Mar 17, 2021, 11:02:06 AM3/17/21
to sage-devel
I did it a few minutes ago. The orders "sage -i snappy", "sage -f snappy", "sage -pip uninstall snappy"+"sage -pip uninstall snappy" made no change

enriqu...@gmail.com

unread,
Apr 7, 2021, 3:06:47 PM4/7/21
to sage-devel
Is there anyone using snappy inside sage? Uninstalling and stalling produce the same errors.

Neil Hoffman

unread,
Apr 7, 2021, 3:43:57 PM4/7/21
to sage-...@googlegroups.com
Yes, I use snappy inside of sage quite frequently as do a number of my
co-authors. One of the reasons we run sage is for the added capability
that snappy has in it regarding verified computations. This is the
part of the software that is relying on deprecated packages.

Nathan Dunfield, Mattias Goerner and Marc Culler actively maintain
the snappy software.
______________________
Neil R. Hoffman
Assistant Professor
Department of Mathematics
523 Math Science Building
Oklahoma State University
Stillwater, OK 74078-1058
405-744-7791
http://math.okstate.edu/people/nhoffman
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/b5bec710-46dd-413d-85ee-2bc56d2bd889n%40googlegroups.com.

Vincent Delecroix

unread,
Apr 7, 2021, 3:46:59 PM4/7/21
to sage-...@googlegroups.com

Vincent Delecroix

unread,
Apr 7, 2021, 3:48:37 PM4/7/21
to sage-...@googlegroups.com

enriqu...@gmail.com

unread,
Apr 7, 2021, 5:43:58 PM4/7/21
to sage-devel
Thanks!

enriqu...@gmail.com

unread,
Apr 7, 2021, 5:50:53 PM4/7/21
to sage-devel
The error disappeared with 
Reply all
Reply to author
Forward
0 new messages