On Thursday, April 18, 2019 at 10:57:11 AM UTC+2, Dima Pasechnik wrote:
>
> On Thu, Apr 18, 2019 at 7:35 AM Oliver Thiel <[email protected] 
> <javascript:>> wrote: 
> > 
> > More information: 
> > sage: k=0 
> > ....: for k in range(1,j-1,1): 
> > ....:     z=float(A[k][1]) 
> > ....:     s=s+z 
> > ....:     
> print(k)------------------------------------------------------------------------
>  
>
> > An error occurred during signal handling. 
> > This probably occurred because a *compiled* module has a bug 
> > in it and is not properly wrapped with sig_on(), sig_off(). 
> > Python will now terminate. 
> > ------------------------------------------------------------------------ 
> > this error occurs before i "enter" the command. Do not laugh about my 
> simple code, i am real new to sage. :-D 
> > 
> I assume your A is already defined, right? 
> As well, I guess this code seems to mean to compute s as a sum of 
> float(A[k][1]) 
> but did you set s=0 to begin with? 
> (you did set k=0, which makes no sense, as you immediately use k as a 
> loop variable) 
>
>
I don't think that's relevant.  Oliver stated earlier that the problem 
happens simply while typing in code, and without even pressing enter (if 
I've understood correctly).

Oliver, no one here will laugh at your code (I hope! :) and if I understand 
the problem it's nothing to do with anything specifically you wrote 
anyways. 

A couple more questions.  You wrote

> i used "Sage Mirror" to download the program and installed it with 
adminstration rights

When you installed did you select the "Install for all users" or "Install 
just for the current user" option?  If the latter, you shouldn't need 
Administrator permissions to install, unless this company machine has 
additional policies configured restricting your ability to install 
arbitrary software.  It shouldn't matter much here but I'm just curious you 
say you installed with with Admin rights.

Another question: If you run the "SageMath 8.6 Shell" shortcut, and run the 
command `sage -ipython` (this starts the IPython prompt without any 
Sage-specific code loaded) do you have any problems?  Are you able to enter 
and run pure Python code like in your example above?

Finally, do you know if there are any active virus scanners like McAffee or 
Symantic. Basically anything on this list: 
https://cygwin.com/faq/faq.html#faq.using.bloda   (note: Windows Defender 
is normally not actually a problem, but it might be if it's in the middle 
of performing a scan).

-- 
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 [email protected].
To post to this group, send email to [email protected].
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