Hi,

I can not reproduce (I am using Linux). Let me copy your traceback
that was a mess because of linebreaks

---------------------------------------------------------------------------
SignalError                               Traceback (most recent call last)
<ipython-input-35-801031bbe3a3> in <module>()
1 aa=Integer(109604757131194562205071319966444535807)---->
2 print is_squarefree(aa)
/opt/sagemath-8.6/local/lib/python2.7/site-packages/sage/arith/misc.pyc in is_squarefree(n)
2850
2851     try:->
2852         return e.is_squarefree()
2853     except AttributeError:
2854         pass
/opt/sagemath-8.6/local/lib/python2.7/site-packages/sage/rings/integer.pyx in sage.rings.integer.Integer.is_squarefree (build/cythonized/sage/rings/integer.c:35954)()
5857             False
5858         """->
5859         return self.__pari__().issquarefree()
5860
5861     cpdef __pari__(self):
cypari2/gen.pyx in cypari2.gen.Gen.issquarefree()
SignalError: Segmentation fault

This seems to be a problem with cypari2 in cygwin (could you confirm
that you are using cygwin?). If so, you should try to reproduce the
problem without Sage by launching Python inside cygwin and then

>>> import cypari2
>>> pari = cypari2.Pari()
>>> pari(109604757131194562205071319966444535807).issquarefree()

Vincent

Le 03/03/2019 à 11:44, Rolandb a écrit :
Hi, the following result is probably not intended:

Sage 8.6 Windows

aa=109604757131194562205071319966444535807
print is_squarefree(aa)

---------------------------------------------------------------------------SignalError         
                      Traceback (most recent call last)<ipython-input-35-801031bbe3a3> 
in <module>()      1 aa=Integer(109604757131194562205071319966444535807)----> 2 print 
is_squarefree(aa)
/opt/sagemath-8.6/local/lib/python2.7/site-packages/sage/arith/misc.pyc in 
is_squarefree(n)   2850    2851     try:-> 2852         return 
e.is_squarefree()   2853     except AttributeError:   2854         pass
/opt/sagemath-8.6/local/lib/python2.7/site-packages/sage/rings/integer.pyx in 
sage.rings.integer.Integer.is_squarefree (build/cythonized/sage/rings/integer.c:35954)()   5857   
          False   5858         """-> 5859         return 
self.__pari__().issquarefree()   5860    5861     cpdef __pari__(self):
cypari2/gen.pyx in cypari2.gen.Gen.issquarefree()
SignalError: Segmentation fault


Roland



--
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+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to