Re: [sage-support] Re: Unable to include bitset.pxi

2020-02-02 Thread Dima Pasechnik
On Sun, Feb 2, 2020 at 5:51 AM Chin-Hung Lin  wrote:
>
> I am able to resolve the issue by modifying
>
> bits.limbs = (size - 1) / (8 * sizeof(mp_limb_t)) + 1
>
> to integer division
>
> bits.limbs = (size - 1) // (8 * sizeof(mp_limb_t)) + 1
>
>
> However, I doubt that this is the correct way to fix it?
> 1. If this is correct, should I send initiate a ticket to correct th code on 
> SageMath?

this appears to be a kind of bug in the %%cython magic, which fails to
take into account
that in Python 3 '/' is no longer integer division.

I've opened a ticket - probably we need to make sure that *.pxi files
do not contain Python2-only code.
https://trac.sagemath.org/ticket/29139



> 2. If not, what is the better way to avoid this error?
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/3d097abf-b27d-4d61-904b-3d55a82de578%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq332-mkjfx3iF8n8sonjh_mBt%3D5Y9J8OBUtyYhrziWKZw%40mail.gmail.com.


Re: [sage-support] Re: warning sagemath9 matplotlib plotting bug

2020-02-02 Thread Jean-François Ingenbleek
i removed 

C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;

 and it seems to work now!

Big thank you!
 
But now we have to manage the incompatibility with Miktex ...

Le vendredi 31 janvier 2020 14:43:00 UTC+1, E. Madison Bray a écrit :
>
> On Friday, January 31, 2020 at 2:04:57 PM UTC+1, Jean-François Ingenbleek 
> wrote:
>>
>> Here is the list of my $path
>>
>> C:\Program Files (x86)\Common Files\Oracle\Java\javapath;
>> C:\Program Files\ImageMagick-7.0.8-Q16;
>> C:\Program Files\ImageMagick-7.0.5-Q16;
>> C:\Program Files (x86)\Intel\iCLS Client\;
>> C:\Program Files\Intel\iCLS 
>> Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;
>> C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
>> C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;
>> C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;
>> C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;
>> C:\Program Files\Intel\WiFi\bin\;
>> C:\Program Files\Common Files\Intel\WirelessCommon\;
>> C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;
>> C:\Program Files (x86)\Druide\Antidote 9\Application\Bin64\;
>> C:\Program Files (x86)\Druide\Antidote 9\Application\Bin32\
>>
>> I do not find TexLive
>>
>> help is really welcome
>>
>
> It looks like you have MiKTeX: C:\Program Files (x86)\MiKTeX 
> 2.9\miktex\bin\;
>
> Which is strange because I also have MiKTeX, but was only able to 
> reproduce the problem when I installed texlive instead.  It's possible the 
> problem only arises in newer versions, and my MiKTeX is a bit old.
>  
>
>> Le jeu. 30 janv. 2020 à 15:46, Jean-François Ingenbleek <
>> jinge...@gmail.com> a écrit :
>>
>>> a better solution, is to remove texlive from your $PATH environment 
>>> variable  
>>>
>>> hum, hum... how to do that?
>>> thanks in advance 
>>>
>>> Le jeu. 30 janv. 2020 à 15:07, E. Madison Bray  a 
>>> écrit :
>>>
 On Thursday, January 30, 2020 at 12:36:31 PM UTC+1, E. Madison Bray 
 wrote:
>
> On Thursday, January 30, 2020 at 9:27:56 AM UTC+1, Dima Pasechnik 
> wrote:
>>
>>
>>
>> On Thu, 30 Jan 2020, 08:09 Jean-François Ingenbleek, <
>> jinge...@gmail.com> wrote:
>>
>>> indeed
>>>
>>> Norton/McAfee/Symantec antivirus or antispyware
>>>
>>> is running.
>>>
>>
> Wait, which is it?  Both?  All of these have potential to interfere in 
> unusual ways with unsigned open-source software (which many virus 
> scanners 
> attack as "evil").  Having multiple virus scanners installed is highly 
> discouraged as they are likely to interfere even with each other.
>  
>
>> and now what should i do?
>>>
>>
>> Please check that it is indeed the problem.
>> Disable it and check whether it fixes the issue.
>>
>
> For starters, please only install security software that you're sure 
> you actually need.  For virus scanners, most allow you to configure 
> exceptions.  For example, please create an exception for the SageMath 
> installation directory, as well as any LaTeX distributions you have 
> installed.
>
>  
>
>> My warning is not potentially wrong: a user under windows8 with 
>>> Mcaffee is not able to use sagemath9, no patch known to date, it is a 
>>> fact 
>>> that it is better to know to not lose his time
>>>
>>
> Maybe, but no one has confirmed yet what the actual problem is, so 
> it's not helpful to make broad pronouncements that may not apply to most 
> users.  I've seen at most 2 other reports of this issue so it clearly 
> isn't 
> just you, but please let the software developers make pronouncements like 
> this if/when we have full information.
>
>  
>
>> it is a wonder in itself that 8.9 worked with Mcaffee installed and 
>> running.
>>
>
> It's not always a problem.  I haven't seen too many problems with 
> McAffee interfering with Cygwin programs.  Avast is much worse.  But I 
> haven't done a comprehensive review of how different virus scanners 
> affect 
> Sage/Cygwin.  Perhaps I should install them one by one in a VM and see 
> but 
> it's time I don't have.  I would like to have comprehensive instructions 
> for how to add path exceptions for different virus scanners.
>


 For those not following the GitHub issue, I managed to reproduce the 
 problem: 
 https://github.com/sagemath/sage-windows/issues/42#issuecomment-580268035

 As far as I can tell it has nothing to do with virus scanners, and 
 instead impacts users of the texlive LaTeX distribution for Windows.  I 
 was 
 previously using MiKTeX, which for some reason does not exhibit the same 
 problem.  A workaround, pending a better solution, is to remove texlive 
 from your $PATH environment variable when running Sage.  I

[sage-support] Output in characteristic 2

2020-02-02 Thread Samanta
I have defined the input variables in characteristic 2. But when I assign a 
particular value to the input, output gives the result in simple algebra 
not in characteristic 2. Here is my code: 
sage: P. = GF(2)[]
: x3=0
: x2=1
: x1=0
: x0=1
: s1= x0*x2*x3 + x0*x2 + x0 + x1*x2 + x2 
: s0= x0*x1*x3 + x0*x2 + x0*x3 + x1 + 1
: print s1,s0
: 
3 2

Here I want s1, s0 as 1,0. If I don't assign any value to the input, the 
output will gives value in charateristic 2 like 
sage: P. = GF(2)[]
: print x0+x1+x0
: 
x1
Can anyone guide me how to get the output values in characteristic 2 if I 
assign a value to the input? 
Thanks in advance

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/08bf5bed-991d-4c29-907f-a5eac305e600%40googlegroups.com.