Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-16 Thread Mariel Supina
Hello Dima,

Sorry for taking awhile to respond -- I have been away from my work 
computer. Re-installing cypari as you suggested did work. The problem 
appears to be fixed. Thank you very much for all of your help!

Best,
Mariel

On Wednesday, September 11, 2019 at 5:41:47 PM UTC+2, Dima Pasechnik wrote:
>
> On Wed, Sep 11, 2019 at 4:09 PM Mariel Supina 
> > wrote: 
> > 
> > 
> > 
> > On Wednesday, September 11, 2019 at 12:18:37 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> 
> >> OK, thanks, let's do more debugging of cypari: 
> >> 
> >>cd /srv/public/shared/sage/upstream 
> >>tar xf  cypari2-2.1.1.tar.gz 
> >>cd cypari2-2.1.1/ 
> >> 
> >> now, start Sage's Python: 
> >> 
> >>../../sage -python 
> >> 
> >> and at its prompt, do 
> >> 
> >>import autogen 
> >>autogen.pari_share() 
> >> 
> >> 
> >> Post the result of the last 3 commands. 
> > 
> > 
> > '/srv/public/shared/sage/local/share/pari' 
> > 
> >> 
> >> 
> >> Similarly, staying at this directory, start system's Python 
> >> 
> >> python 
> >> 
> >> and at its prompt, do 
> >> 
> >>import autogen 
> >>autogen.pari_share() 
> >> 
> >> Post the result of the last 3 commands. 
> > 
> > 
> > '/usr/share/pari' 
> > 
> >> 
> >> 
> ok, this is all as expected. 
>
> >> --- 
> >> I suspect that cypari invokes system's Python rather than Sage's 
> >> Python at this point. 
> >> 
> >> To check this, let us try putting Sage's Python 1st in the PATH and 
> >> re-run the installation of Cypari. Thus, try the following: 
> >> 
> >> cd /srv/public/shared/sage/ 
> >> PATH=/srv/public/shared/sage/bin:$PATH ./sage -i cypari 
> >> 
> >> and tell us whether this worked or not... 
> > 
> > 
> > This worked! 
> OK, good. At least from this point on you should be able to continue 
> building, just by 
> typing 
>
>  make 
>
> The remaining question is whether the problem is reproducible. 
> That is, what happens if you try to re-install cypari wthout the PATH 
> hack, i.e. just by 
>
>   ./sage -f cypari 
>
> Does this work? If yes, then the problem (which in this case would be 
> that the installation of Pari/GP was not ready at the point building 
> of cypai kicked in) is gone, more or less. 
>
> If it doesn't then it's a problem I cannot really pin down to anything 
> in particular, and it appears very limited in scope, i.e. I can't 
> reproduce it on other machines... 
> Anyway, 
>
> PATH=/srv/public/shared/sage/bin:$PATH ./sage -i cypari 
>
> should allow you to proceed. 
>
> HTH 
> Dima 
>
> > 
> >> 
> >> 
> >> Thanks. 
> >> 
> >> 
> >> On Wed, Sep 11, 2019 at 10:49 AM Mariel Supina 
> >>  wrote: 
> >> > 
> >> > Attached is the output of 
> >> > 
> >> > set 
> >> > 
> >> > On Tuesday, September 10, 2019 at 7:16:23 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> >> 
> >> >> On Tue, Sep 10, 2019 at 5:30 PM Mariel Supina 
> >> >>  wrote: 
> >> >> > 
> >> >> > On Tuesday, September 10, 2019 at 5:50:53 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> >> >> 
> >> >> >> Thanks. OK, I see that you're supposed to be building Pari, 
> anyway, 
> >> >> >> amd then the rest should have worked. Strange. 
> >> >> >> 
> >> >> >> To make sure bulding Pari worked, could you do the following: 
> >> >> >> In the directory you're building Sage, 
> >> >> 
> >> >> as you are building in /srv/public/shared/sage/ everything appears 
> to 
> >> >> be in order. 
> >> >> 
> >> >> Something is telling cypari to ignore the Pari/GP already installed 
> in 
> >> >> /srv/public/shared/sage/local/ 
> >> >> and to use the system Pari/GP, which is not only incompatible, but 
> broken 
> >> >> (as /usr/share/pari/pari.desc is a part of the package, but it's 
> missing) too. 
> >> >> On the other hand I checked how cypari discovers the Pari/GP 
> installation, and 
> >> >> it appears it should work as expected. 
> >> >> 
> >> >> I cc the main authors of cypari package. 
> >> >> 
> >> >> Are you setting any environment variables by hand? No pre-set 
> SAGE_ROOT? 
> >> >> Or perhaps something 
> >> >> that you get by default, and this breaks things? 
> >> >> 
> >> >> Could you post the output of 
> >> >> 
> >> >>   set 
> >> >> 
> >> >> >  run 
> >> >> >> 
> >> >> >>   ./sage --gp --version 
> >> >> >> 
> >> >> >> and post the output. 
> >> >> > 
> >> >> > 
> >> >> >GP/PARI CALCULATOR Version 2.11.1 (released) 
> >> >> >amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit 
> version 
> >> >> > compiled: Sep 10 2019, gcc version 6.3.0 20170516 (Debian 
> 6.3.0-18+deb9u1) 
> >> >> >  threading engine: single 
> >> >> > (readline not compiled in, extended help enabled) 
> >> >> > 
> >> >> > 
> >> >> >> 
> >> >> >> Also, please post the output of 
> >> >> >> 
> >> >> >>   echo 'default(datadir)' | ./sage --gp -qf 
> >> >> > 
> >> >> > 
> >> >> >  "/srv/public/shared/sage/local/share/pari" 
> >> >> > 
> >> >> >> 
> >> >> >> Also, at the same directory, start Sage's Python by typing 
> >> >> 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-11 Thread Dima Pasechnik
On Wed, Sep 11, 2019 at 4:09 PM Mariel Supina
 wrote:
>
>
>
> On Wednesday, September 11, 2019 at 12:18:37 PM UTC+2, Dima Pasechnik wrote:
>>
>> OK, thanks, let's do more debugging of cypari:
>>
>>cd /srv/public/shared/sage/upstream
>>tar xf  cypari2-2.1.1.tar.gz
>>cd cypari2-2.1.1/
>>
>> now, start Sage's Python:
>>
>>../../sage -python
>>
>> and at its prompt, do
>>
>>import autogen
>>autogen.pari_share()
>>
>>
>> Post the result of the last 3 commands.
>
>
> '/srv/public/shared/sage/local/share/pari'
>
>>
>>
>> Similarly, staying at this directory, start system's Python
>>
>> python
>>
>> and at its prompt, do
>>
>>import autogen
>>autogen.pari_share()
>>
>> Post the result of the last 3 commands.
>
>
> '/usr/share/pari'
>
>>
>>
ok, this is all as expected.

>> ---
>> I suspect that cypari invokes system's Python rather than Sage's
>> Python at this point.
>>
>> To check this, let us try putting Sage's Python 1st in the PATH and
>> re-run the installation of Cypari. Thus, try the following:
>>
>> cd /srv/public/shared/sage/
>> PATH=/srv/public/shared/sage/bin:$PATH ./sage -i cypari
>>
>> and tell us whether this worked or not...
>
>
> This worked!
OK, good. At least from this point on you should be able to continue
building, just by
typing

 make

The remaining question is whether the problem is reproducible.
That is, what happens if you try to re-install cypari wthout the PATH
hack, i.e. just by

  ./sage -f cypari

Does this work? If yes, then the problem (which in this case would be
that the installation of Pari/GP was not ready at the point building
of cypai kicked in) is gone, more or less.

If it doesn't then it's a problem I cannot really pin down to anything
in particular, and it appears very limited in scope, i.e. I can't
reproduce it on other machines...
Anyway,

PATH=/srv/public/shared/sage/bin:$PATH ./sage -i cypari

should allow you to proceed.

HTH
Dima

>
>>
>>
>> Thanks.
>>
>>
>> On Wed, Sep 11, 2019 at 10:49 AM Mariel Supina
>>  wrote:
>> >
>> > Attached is the output of
>> >
>> > set
>> >
>> > On Tuesday, September 10, 2019 at 7:16:23 PM UTC+2, Dima Pasechnik wrote:
>> >>
>> >> On Tue, Sep 10, 2019 at 5:30 PM Mariel Supina
>> >>  wrote:
>> >> >
>> >> > On Tuesday, September 10, 2019 at 5:50:53 PM UTC+2, Dima Pasechnik 
>> >> > wrote:
>> >> >>
>> >> >> Thanks. OK, I see that you're supposed to be building Pari, anyway,
>> >> >> amd then the rest should have worked. Strange.
>> >> >>
>> >> >> To make sure bulding Pari worked, could you do the following:
>> >> >> In the directory you're building Sage,
>> >>
>> >> as you are building in /srv/public/shared/sage/ everything appears to
>> >> be in order.
>> >>
>> >> Something is telling cypari to ignore the Pari/GP already installed in
>> >> /srv/public/shared/sage/local/
>> >> and to use the system Pari/GP, which is not only incompatible, but broken
>> >> (as /usr/share/pari/pari.desc is a part of the package, but it's missing) 
>> >> too.
>> >> On the other hand I checked how cypari discovers the Pari/GP 
>> >> installation, and
>> >> it appears it should work as expected.
>> >>
>> >> I cc the main authors of cypari package.
>> >>
>> >> Are you setting any environment variables by hand? No pre-set SAGE_ROOT?
>> >> Or perhaps something
>> >> that you get by default, and this breaks things?
>> >>
>> >> Could you post the output of
>> >>
>> >>   set
>> >>
>> >> >  run
>> >> >>
>> >> >>   ./sage --gp --version
>> >> >>
>> >> >> and post the output.
>> >> >
>> >> >
>> >> >GP/PARI CALCULATOR Version 2.11.1 (released)
>> >> >amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version
>> >> > compiled: Sep 10 2019, gcc version 6.3.0 20170516 (Debian 
>> >> > 6.3.0-18+deb9u1)
>> >> >  threading engine: single
>> >> > (readline not compiled in, extended help enabled)
>> >> >
>> >> >
>> >> >>
>> >> >> Also, please post the output of
>> >> >>
>> >> >>   echo 'default(datadir)' | ./sage --gp -qf
>> >> >
>> >> >
>> >> >  "/srv/public/shared/sage/local/share/pari"
>> >> >
>> >> >>
>> >> >> Also, at the same directory, start Sage's Python by typing
>> >> >>
>> >> >>   ./sage --python
>> >> >>
>> >> >> and at the Python's prompt, type the following 2 commands:
>> >> >>
>> >> >>   from distutils.spawn import find_executable
>> >> >>   find_executable("gp")
>> >> >>
>> >> >> and post the output.
>> >> >
>> >> >
>> >> > '/srv/public/shared/sage/local/bin/gp'
>> >> >
>> >> >>
>> >> >>
>> >> >> In the same directory, run
>> >> >>
>> >> >>   ls -l local/share/pari/pari.desc
>> >> >>
>> >> >> and post the output.
>> >> >>
>> >> >>
>> >> >
>> >> > -rw-r--r-- 1 mjsupina ag_discgeom 1425197 Sep 10 14:55 
>> >> > local/share/pari/pari.desc
>> >> >
>> >> >>
>> >> >> -
>> >> >>
>> >> >> finally, please post the output of
>> >> >>
>> >> >>   ls -l /usr/share/pari/pari.desc
>> >> >>
>> >> >
>> >> 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-11 Thread Mariel Supina


On Wednesday, September 11, 2019 at 12:18:37 PM UTC+2, Dima Pasechnik wrote:
>
> OK, thanks, let's do more debugging of cypari: 
>
>cd /srv/public/shared/sage/upstream 
>tar xf  cypari2-2.1.1.tar.gz 
>cd cypari2-2.1.1/ 
>
> now, start Sage's Python: 
>
>../../sage -python 
>
> and at its prompt, do 
>
>import autogen 
>autogen.pari_share()  


> Post the result of the last 3 commands. 
>

'/srv/public/shared/sage/local/share/pari'
 

>
> Similarly, staying at this directory, start system's Python 
>
> python 
>
> and at its prompt, do 
>
>import autogen 
>autogen.pari_share() 
>
> Post the result of the last 3 commands. 
>

'/usr/share/pari'
 

>
> --- 
> I suspect that cypari invokes system's Python rather than Sage's 
> Python at this point. 
>
> To check this, let us try putting Sage's Python 1st in the PATH and 
> re-run the installation of Cypari. Thus, try the following: 
>
> cd /srv/public/shared/sage/ 
> PATH=/srv/public/shared/sage/bin:$PATH ./sage -i cypari 
>
> and tell us whether this worked or not... 
>

This worked!
 

>
> Thanks. 
>
>
> On Wed, Sep 11, 2019 at 10:49 AM Mariel Supina 
> > wrote: 
> > 
> > Attached is the output of 
> > 
> > set 
> > 
> > On Tuesday, September 10, 2019 at 7:16:23 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> 
> >> On Tue, Sep 10, 2019 at 5:30 PM Mariel Supina 
> >>  wrote: 
> >> > 
> >> > On Tuesday, September 10, 2019 at 5:50:53 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> >> 
> >> >> Thanks. OK, I see that you're supposed to be building Pari, anyway, 
> >> >> amd then the rest should have worked. Strange. 
> >> >> 
> >> >> To make sure bulding Pari worked, could you do the following: 
> >> >> In the directory you're building Sage, 
> >> 
> >> as you are building in /srv/public/shared/sage/ everything appears to 
> >> be in order. 
> >> 
> >> Something is telling cypari to ignore the Pari/GP already installed in 
> >> /srv/public/shared/sage/local/ 
> >> and to use the system Pari/GP, which is not only incompatible, but 
> broken 
> >> (as /usr/share/pari/pari.desc is a part of the package, but it's 
> missing) too. 
> >> On the other hand I checked how cypari discovers the Pari/GP 
> installation, and 
> >> it appears it should work as expected. 
> >> 
> >> I cc the main authors of cypari package. 
> >> 
> >> Are you setting any environment variables by hand? No pre-set 
> SAGE_ROOT? 
> >> Or perhaps something 
> >> that you get by default, and this breaks things? 
> >> 
> >> Could you post the output of 
> >> 
> >>   set 
> >> 
> >> >  run 
> >> >> 
> >> >>   ./sage --gp --version 
> >> >> 
> >> >> and post the output. 
> >> > 
> >> > 
> >> >GP/PARI CALCULATOR Version 2.11.1 (released) 
> >> >amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit 
> version 
> >> > compiled: Sep 10 2019, gcc version 6.3.0 20170516 (Debian 
> 6.3.0-18+deb9u1) 
> >> >  threading engine: single 
> >> > (readline not compiled in, extended help enabled) 
> >> > 
> >> > 
> >> >> 
> >> >> Also, please post the output of 
> >> >> 
> >> >>   echo 'default(datadir)' | ./sage --gp -qf 
> >> > 
> >> > 
> >> >  "/srv/public/shared/sage/local/share/pari" 
> >> > 
> >> >> 
> >> >> Also, at the same directory, start Sage's Python by typing 
> >> >> 
> >> >>   ./sage --python 
> >> >> 
> >> >> and at the Python's prompt, type the following 2 commands: 
> >> >> 
> >> >>   from distutils.spawn import find_executable 
> >> >>   find_executable("gp") 
> >> >> 
> >> >> and post the output. 
> >> > 
> >> > 
> >> > '/srv/public/shared/sage/local/bin/gp' 
> >> > 
> >> >> 
> >> >> 
> >> >> In the same directory, run 
> >> >> 
> >> >>   ls -l local/share/pari/pari.desc 
> >> >> 
> >> >> and post the output. 
> >> >> 
> >> >> 
> >> > 
> >> > -rw-r--r-- 1 mjsupina ag_discgeom 1425197 Sep 10 14:55 
> local/share/pari/pari.desc 
> >> > 
> >> >> 
> >> >> - 
> >> >> 
> >> >> finally, please post the output of 
> >> >> 
> >> >>   ls -l /usr/share/pari/pari.desc 
> >> >> 
> >> > 
> >> > ls: Zugriff auf '/usr/share/pari/pari.desc' nicht möglich: Datei oder 
> Verzeichnis nicht gefunden 
> >> > 
> >> > (Translation to English: 
> >> > ls: Unable to access '/usr/share/pari/pari.desc': file or directory 
> not found) 
> >> 
> >> Vielen dank, ich weiss es auch ohne deine ueberzetsung ;-) 
> >> 
> >> Could it be that German locale is breaking something? I don't know... 
> >> 
> >> Dima 
> >> 
> >> > 
> >> >> 
> >> >> Thanks. 
> >> >> 
> >> >> On Tue, Sep 10, 2019 at 3:07 PM Mariel Supina 
> >> >>  wrote: 
> >> >> > 
> >> >> > I have attached the output of ./configure --with-python=3. 
> >> >> > 
> >> >> > On Tuesday, September 10, 2019 at 3:53:06 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> >> >> 
> >> >> >> On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina 
> >> >> >>  wrote: 
> >> >> >> > 
> >> >> >> > Hi, 
> >> >> >> > 
> >> >> >> > On Tuesday, September 10, 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-11 Thread Dima Pasechnik
OK, thanks, let's do more debugging of cypari:

   cd /srv/public/shared/sage/upstream
   tar xf  cypari2-2.1.1.tar.gz
   cd cypari2-2.1.1/

now, start Sage's Python:

   ../../sage -python

and at its prompt, do

   import autogen
   autogen.pari_share()

Post the result of the last 3 commands.

Similarly, staying at this directory, start system's Python

python

and at its prompt, do

   import autogen
   autogen.pari_share()

Post the result of the last 3 commands.

---
I suspect that cypari invokes system's Python rather than Sage's
Python at this point.

To check this, let us try putting Sage's Python 1st in the PATH and
re-run the installation of Cypari. Thus, try the following:

cd /srv/public/shared/sage/
PATH=/srv/public/shared/sage/bin:$PATH ./sage -i cypari

and tell us whether this worked or not...

Thanks.


On Wed, Sep 11, 2019 at 10:49 AM Mariel Supina
 wrote:
>
> Attached is the output of
>
> set
>
> On Tuesday, September 10, 2019 at 7:16:23 PM UTC+2, Dima Pasechnik wrote:
>>
>> On Tue, Sep 10, 2019 at 5:30 PM Mariel Supina
>>  wrote:
>> >
>> > On Tuesday, September 10, 2019 at 5:50:53 PM UTC+2, Dima Pasechnik wrote:
>> >>
>> >> Thanks. OK, I see that you're supposed to be building Pari, anyway,
>> >> amd then the rest should have worked. Strange.
>> >>
>> >> To make sure bulding Pari worked, could you do the following:
>> >> In the directory you're building Sage,
>>
>> as you are building in /srv/public/shared/sage/ everything appears to
>> be in order.
>>
>> Something is telling cypari to ignore the Pari/GP already installed in
>> /srv/public/shared/sage/local/
>> and to use the system Pari/GP, which is not only incompatible, but broken
>> (as /usr/share/pari/pari.desc is a part of the package, but it's missing) 
>> too.
>> On the other hand I checked how cypari discovers the Pari/GP installation, 
>> and
>> it appears it should work as expected.
>>
>> I cc the main authors of cypari package.
>>
>> Are you setting any environment variables by hand? No pre-set SAGE_ROOT?
>> Or perhaps something
>> that you get by default, and this breaks things?
>>
>> Could you post the output of
>>
>>   set
>>
>> >  run
>> >>
>> >>   ./sage --gp --version
>> >>
>> >> and post the output.
>> >
>> >
>> >GP/PARI CALCULATOR Version 2.11.1 (released)
>> >amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version
>> > compiled: Sep 10 2019, gcc version 6.3.0 20170516 (Debian 
>> > 6.3.0-18+deb9u1)
>> >  threading engine: single
>> > (readline not compiled in, extended help enabled)
>> >
>> >
>> >>
>> >> Also, please post the output of
>> >>
>> >>   echo 'default(datadir)' | ./sage --gp -qf
>> >
>> >
>> >  "/srv/public/shared/sage/local/share/pari"
>> >
>> >>
>> >> Also, at the same directory, start Sage's Python by typing
>> >>
>> >>   ./sage --python
>> >>
>> >> and at the Python's prompt, type the following 2 commands:
>> >>
>> >>   from distutils.spawn import find_executable
>> >>   find_executable("gp")
>> >>
>> >> and post the output.
>> >
>> >
>> > '/srv/public/shared/sage/local/bin/gp'
>> >
>> >>
>> >>
>> >> In the same directory, run
>> >>
>> >>   ls -l local/share/pari/pari.desc
>> >>
>> >> and post the output.
>> >>
>> >>
>> >
>> > -rw-r--r-- 1 mjsupina ag_discgeom 1425197 Sep 10 14:55 
>> > local/share/pari/pari.desc
>> >
>> >>
>> >> -
>> >>
>> >> finally, please post the output of
>> >>
>> >>   ls -l /usr/share/pari/pari.desc
>> >>
>> >
>> > ls: Zugriff auf '/usr/share/pari/pari.desc' nicht möglich: Datei oder 
>> > Verzeichnis nicht gefunden
>> >
>> > (Translation to English:
>> > ls: Unable to access '/usr/share/pari/pari.desc': file or directory not 
>> > found)
>>
>> Vielen dank, ich weiss es auch ohne deine ueberzetsung ;-)
>>
>> Could it be that German locale is breaking something? I don't know...
>>
>> Dima
>>
>> >
>> >>
>> >> Thanks.
>> >>
>> >> On Tue, Sep 10, 2019 at 3:07 PM Mariel Supina
>> >>  wrote:
>> >> >
>> >> > I have attached the output of ./configure --with-python=3.
>> >> >
>> >> > On Tuesday, September 10, 2019 at 3:53:06 PM UTC+2, Dima Pasechnik 
>> >> > wrote:
>> >> >>
>> >> >> On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina
>> >> >>  wrote:
>> >> >> >
>> >> >> > Hi,
>> >> >> >
>> >> >> > On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik 
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina
>> >> >> >>  wrote:
>> >> >> >> >
>> >> >> >> > On Debian stretch, I get a compilation error making sage 
>> >> >> >> > 8.9.beta9. The problem is in the package "cypari", the relevant 
>> >> >> >> > log is attached:
>> >> >> >>
>> >> >> >> Are you upgrading? Building from scratch?
>> >> >> >
>> >> >> >
>> >> >> > I am building from scratch with python3.
>> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >> The interesting line is
>> >> >> >>
>> >> >> >> error: [Errno 2] No such file or directory: 
>> >> >> 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Dima Pasechnik
On Tue, Sep 10, 2019 at 5:30 PM Mariel Supina
 wrote:
>
> On Tuesday, September 10, 2019 at 5:50:53 PM UTC+2, Dima Pasechnik wrote:
>>
>> Thanks. OK, I see that you're supposed to be building Pari, anyway,
>> amd then the rest should have worked. Strange.
>>
>> To make sure bulding Pari worked, could you do the following:
>> In the directory you're building Sage,

as you are building in /srv/public/shared/sage/ everything appears to
be in order.

Something is telling cypari to ignore the Pari/GP already installed in
/srv/public/shared/sage/local/
and to use the system Pari/GP, which is not only incompatible, but broken
(as /usr/share/pari/pari.desc is a part of the package, but it's missing) too.
On the other hand I checked how cypari discovers the Pari/GP installation, and
it appears it should work as expected.

I cc the main authors of cypari package.

Are you setting any environment variables by hand? No pre-set SAGE_ROOT?
Or perhaps something
that you get by default, and this breaks things?

Could you post the output of

  set

>  run
>>
>>   ./sage --gp --version
>>
>> and post the output.
>
>
>GP/PARI CALCULATOR Version 2.11.1 (released)
>amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version
> compiled: Sep 10 2019, gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
>  threading engine: single
> (readline not compiled in, extended help enabled)
>
>
>>
>> Also, please post the output of
>>
>>   echo 'default(datadir)' | ./sage --gp -qf
>
>
>  "/srv/public/shared/sage/local/share/pari"
>
>>
>> Also, at the same directory, start Sage's Python by typing
>>
>>   ./sage --python
>>
>> and at the Python's prompt, type the following 2 commands:
>>
>>   from distutils.spawn import find_executable
>>   find_executable("gp")
>>
>> and post the output.
>
>
> '/srv/public/shared/sage/local/bin/gp'
>
>>
>>
>> In the same directory, run
>>
>>   ls -l local/share/pari/pari.desc
>>
>> and post the output.
>>
>>
>
> -rw-r--r-- 1 mjsupina ag_discgeom 1425197 Sep 10 14:55 
> local/share/pari/pari.desc
>
>>
>> -
>>
>> finally, please post the output of
>>
>>   ls -l /usr/share/pari/pari.desc
>>
>
> ls: Zugriff auf '/usr/share/pari/pari.desc' nicht möglich: Datei oder 
> Verzeichnis nicht gefunden
>
> (Translation to English:
> ls: Unable to access '/usr/share/pari/pari.desc': file or directory not found)

Vielen dank, ich weiss es auch ohne deine ueberzetsung ;-)

Could it be that German locale is breaking something? I don't know...

Dima

>
>>
>> Thanks.
>>
>> On Tue, Sep 10, 2019 at 3:07 PM Mariel Supina
>>  wrote:
>> >
>> > I have attached the output of ./configure --with-python=3.
>> >
>> > On Tuesday, September 10, 2019 at 3:53:06 PM UTC+2, Dima Pasechnik wrote:
>> >>
>> >> On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina
>> >>  wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik 
>> >> > wrote:
>> >> >>
>> >> >> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina
>> >> >>  wrote:
>> >> >> >
>> >> >> > On Debian stretch, I get a compilation error making sage 8.9.beta9. 
>> >> >> > The problem is in the package "cypari", the relevant log is attached:
>> >> >>
>> >> >> Are you upgrading? Building from scratch?
>> >> >
>> >> >
>> >> > I am building from scratch with python3.
>> >> >
>> >> >>
>> >> >>
>> >> >> The interesting line is
>> >> >>
>> >> >> error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc'
>> >> >>
>> >> >> This appears to be related to
>> >> >> https://trac.sagemath.org/ticket/28242
>> >> >> Perhaps it ought to be improved.
>> >> >
>> >> >
>> >> > The compilation used to work fine on the machines, so that could be it?
>> >> >
>> >> >>
>> >> >>
>> >> >> It looks like you're trying to use a system installation of Pari/GP, 
>> >> >> rather
>> >> >> than build Sage's Pari. What parts of Pari (Pari-related packages?)
>> >> >> do you have on your Debian system?
>> >> >
>> >> >
>> >> > The computer on which I try to compile is maintained by my department's 
>> >> > IT, so I am not completely aware of all the packages that might or 
>> >> > might not be installed.
>> >> >
>> >> > How can I figure out which pari (and which packages) are installed?
>> >>
>> >> what is the output of
>> >>
>> >>   gp --version
>> >
>> >
>> >   GP/PARI CALCULATOR Version 2.9.1 (released)
>> >   amd64 running linux (x86-64/GMP-6.1.1 kernel) 64-bit version
>> >compiled: Dec  1 2016, gcc version 6.2.1 20161124 (Debian 6.2.1-5)
>> >threading engine: pthread
>> > (readline v7.0 disabled, extended help enabled)
>> >
>> >
>> >>
>> >>
>> >> and of
>> >>
>> >>   echo 'default(datadir)' | gp -qf
>> >
>> >
>> > "/usr/share/pari"
>> >
>> >>
>> >>
>> >> And what is the output of
>> >>
>> >>   which gp
>> >
>> >
>> > /usr/bin/gp
>> >
>> >>
>> >>
>> >> Thanks.
>> >>
>> >> >>
>> >> >>

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Mariel Supina


On Tuesday, September 10, 2019 at 5:50:53 PM UTC+2, Dima Pasechnik wrote:
>
> Thanks. OK, I see that you're supposed to be building Pari, anyway, 
> amd then the rest should have worked. Strange. 
>
> To make sure bulding Pari worked, could you do the following: 
> In the directory you're building Sage,  run 
>
>   ./sage --gp --version 
>
> and post the output. 


   GP/PARI CALCULATOR Version 2.11.1 (released)
   amd64 running linux (x86-64/GMP-6.1.2 kernel) 64-bit version
compiled: Sep 10 2019, gcc version 6.3.0 20170516 (Debian 
6.3.0-18+deb9u1)
 threading engine: single
(readline not compiled in, extended help enabled)

 

> Also, please post the output of 
>
>   echo 'default(datadir)' | ./sage --gp -qf 
>

 "/srv/public/shared/sage/local/share/pari"


> Also, at the same directory, start Sage's Python by typing 
>
>   ./sage --python 
>
> and at the Python's prompt, type the following 2 commands: 
>
>   from distutils.spawn import find_executable 
>   find_executable("gp") 
>
> and post the output. 
>

'/srv/public/shared/sage/local/bin/gp'
 

>
> In the same directory, run 
>
>   ls -l local/share/pari/pari.desc 
>
> and post the output. 
>
>
>
-rw-r--r-- 1 mjsupina ag_discgeom 1425197 Sep 10 14:55 
local/share/pari/pari.desc
 

> - 
>
> finally, please post the output of 
>
>   ls -l /usr/share/pari/pari.desc 
>
>
ls: Zugriff auf '/usr/share/pari/pari.desc' nicht möglich: Datei oder 
Verzeichnis nicht gefunden

(Translation to English: 
ls: Unable to access '/usr/share/pari/pari.desc': file or directory not 
found) 
 

> Thanks. 
>
> On Tue, Sep 10, 2019 at 3:07 PM Mariel Supina 
> > wrote: 
> > 
> > I have attached the output of ./configure --with-python=3. 
> > 
> > On Tuesday, September 10, 2019 at 3:53:06 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> 
> >> On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina 
> >>  wrote: 
> >> > 
> >> > Hi, 
> >> > 
> >> > On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> >> 
> >> >> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina 
> >> >>  wrote: 
> >> >> > 
> >> >> > On Debian stretch, I get a compilation error making sage 
> 8.9.beta9. The problem is in the package "cypari", the relevant log is 
> attached: 
> >> >> 
> >> >> Are you upgrading? Building from scratch? 
> >> > 
> >> > 
> >> > I am building from scratch with python3. 
> >> > 
> >> >> 
> >> >> 
> >> >> The interesting line is 
> >> >> 
> >> >> error: [Errno 2] No such file or directory: 
> '/usr/share/pari/pari.desc' 
> >> >> 
> >> >> This appears to be related to 
> >> >> https://trac.sagemath.org/ticket/28242 
> >> >> Perhaps it ought to be improved. 
> >> > 
> >> > 
> >> > The compilation used to work fine on the machines, so that could be 
> it? 
> >> > 
> >> >> 
> >> >> 
> >> >> It looks like you're trying to use a system installation of Pari/GP, 
> rather 
> >> >> than build Sage's Pari. What parts of Pari (Pari-related packages?) 
> >> >> do you have on your Debian system? 
> >> > 
> >> > 
> >> > The computer on which I try to compile is maintained by my 
> department's IT, so I am not completely aware of all the packages that 
> might or might not be installed. 
> >> > 
> >> > How can I figure out which pari (and which packages) are installed? 
> >> 
> >> what is the output of 
> >> 
> >>   gp --version 
> > 
> > 
> >   GP/PARI CALCULATOR Version 2.9.1 (released) 
> >   amd64 running linux (x86-64/GMP-6.1.1 kernel) 64-bit version 
> >compiled: Dec  1 2016, gcc version 6.2.1 20161124 (Debian 
> 6.2.1-5) 
> >threading engine: pthread 
> > (readline v7.0 disabled, extended help enabled) 
> > 
> > 
> >> 
> >> 
> >> and of 
> >> 
> >>   echo 'default(datadir)' | gp -qf 
> > 
> > 
> > "/usr/share/pari" 
> > 
> >> 
> >> 
> >> And what is the output of 
> >> 
> >>   which gp 
> > 
> > 
> > /usr/bin/gp 
> > 
> >> 
> >> 
> >> Thanks. 
> >> 
> >> >> 
> >> >> 
> >> >> Anyhow, Pari in Stretch is too old, but you should be able to use 
> the 
> >> >> one from backports: 
> >> >> 
> >> >> https://packages.debian.org/stretch-backports/libpari-dev 
> >> > 
> >> > 
> >> > I am afraid that I do not have the rights to install libpari 
> systemwide. Hmm. 
> >> > 
> >> >> 
> >> >> 
> >> >> 
> >> >> Thanks 
> >> >> Dima 
> >> >> > 
> >> >> > Found local metadata for cypari-2.1.1 
> >> >> > Attempting to download package cypari2-2.1.1.tar.gz from mirrors 
> >> >> > 
> https://mirror.koddos.net/sagemath/spkg/upstream/cypari/cypari2-2.1.1.tar.gz 
> >> >> > 
> [..] 
> >> >> > cypari-2.1.1 
> >> >> >  
> >> >> > Setting up build directory for cypari-2.1.1 
> >> >> > Finished extraction 
> >> >> > Applying patches from ../patches... 
> >> >> > Applying ../patches/trashcan.patch 
> >> >> > 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Dima Pasechnik
Thanks. OK, I see that you're supposed to be building Pari, anyway,
amd then the rest should have worked. Strange.

To make sure bulding Pari worked, could you do the following:
In the directory you're building Sage,  run

  ./sage --gp --version

and post the output. Also, please post the output of

  echo 'default(datadir)' | ./sage --gp -qf

Also, at the same directory, start Sage's Python by typing

  ./sage --python

and at the Python's prompt, type the following 2 commands:

  from distutils.spawn import find_executable
  find_executable("gp")

and post the output.

In the same directory, run

  ls -l local/share/pari/pari.desc

and post the output.


-

finally, please post the output of

  ls -l /usr/share/pari/pari.desc

Thanks.

On Tue, Sep 10, 2019 at 3:07 PM Mariel Supina
 wrote:
>
> I have attached the output of ./configure --with-python=3.
>
> On Tuesday, September 10, 2019 at 3:53:06 PM UTC+2, Dima Pasechnik wrote:
>>
>> On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina
>>  wrote:
>> >
>> > Hi,
>> >
>> > On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik wrote:
>> >>
>> >> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina
>> >>  wrote:
>> >> >
>> >> > On Debian stretch, I get a compilation error making sage 8.9.beta9. The 
>> >> > problem is in the package "cypari", the relevant log is attached:
>> >>
>> >> Are you upgrading? Building from scratch?
>> >
>> >
>> > I am building from scratch with python3.
>> >
>> >>
>> >>
>> >> The interesting line is
>> >>
>> >> error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc'
>> >>
>> >> This appears to be related to
>> >> https://trac.sagemath.org/ticket/28242
>> >> Perhaps it ought to be improved.
>> >
>> >
>> > The compilation used to work fine on the machines, so that could be it?
>> >
>> >>
>> >>
>> >> It looks like you're trying to use a system installation of Pari/GP, 
>> >> rather
>> >> than build Sage's Pari. What parts of Pari (Pari-related packages?)
>> >> do you have on your Debian system?
>> >
>> >
>> > The computer on which I try to compile is maintained by my department's 
>> > IT, so I am not completely aware of all the packages that might or might 
>> > not be installed.
>> >
>> > How can I figure out which pari (and which packages) are installed?
>>
>> what is the output of
>>
>>   gp --version
>
>
>   GP/PARI CALCULATOR Version 2.9.1 (released)
>   amd64 running linux (x86-64/GMP-6.1.1 kernel) 64-bit version
>compiled: Dec  1 2016, gcc version 6.2.1 20161124 (Debian 6.2.1-5)
>threading engine: pthread
> (readline v7.0 disabled, extended help enabled)
>
>
>>
>>
>> and of
>>
>>   echo 'default(datadir)' | gp -qf
>
>
> "/usr/share/pari"
>
>>
>>
>> And what is the output of
>>
>>   which gp
>
>
> /usr/bin/gp
>
>>
>>
>> Thanks.
>>
>> >>
>> >>
>> >> Anyhow, Pari in Stretch is too old, but you should be able to use the
>> >> one from backports:
>> >>
>> >> https://packages.debian.org/stretch-backports/libpari-dev
>> >
>> >
>> > I am afraid that I do not have the rights to install libpari systemwide. 
>> > Hmm.
>> >
>> >>
>> >>
>> >>
>> >> Thanks
>> >> Dima
>> >> >
>> >> > Found local metadata for cypari-2.1.1
>> >> > Attempting to download package cypari2-2.1.1.tar.gz from mirrors
>> >> > https://mirror.koddos.net/sagemath/spkg/upstream/cypari/cypari2-2.1.1.tar.gz
>> >> > [..]
>> >> > cypari-2.1.1
>> >> > 
>> >> > Setting up build directory for cypari-2.1.1
>> >> > Finished extraction
>> >> > Applying patches from ../patches...
>> >> > Applying ../patches/trashcan.patch
>> >> > patching file cypari2/gen.pxd
>> >> > patching file cypari2/gen.pyx
>> >> > Hunk #1 succeeded at 141 (offset 6 lines).
>> >> > patching file cypari2/pari_instance.pyx
>> >> > 
>> >> > Host system:
>> >> > Linux ural 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) 
>> >> > x86_64 GNU/Linux
>> >> > 
>> >> > C compiler: gcc
>> >> > C compiler version:
>> >> > Using built-in specs.
>> >> > COLLECT_GCC=gcc
>> >> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
>> >> > Target: x86_64-linux-gnu
>> >> > Configured with: ../src/configure -v --with-pkgversion='Debian 
>> >> > 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs 
>> >> > --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ 
>> >> > --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- 
>> >> > --enable-shared --enable-linker-build-id --libexecdir=/usr/lib 
>> >> > --without-included-gettext --enable-threads=posix --libdir=/usr/lib 
>> >> > --enable-nls --with-sysroot=/ --enable-clocale=gnu 
>> >> > --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
>> >> > 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Mariel Supina
I have attached the output of ./configure --with-python=3.

On Tuesday, September 10, 2019 at 3:53:06 PM UTC+2, Dima Pasechnik wrote:

> On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina 
> > wrote: 
> > 
> > Hi, 
> > 
> > On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik 
> wrote: 
> >> 
> >> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina 
> >>  wrote: 
> >> > 
> >> > On Debian stretch, I get a compilation error making sage 8.9.beta9. 
> The problem is in the package "cypari", the relevant log is attached: 
> >> 
> >> Are you upgrading? Building from scratch? 
> > 
> > 
> > I am building from scratch with python3. 
> > 
> >> 
> >> 
> >> The interesting line is 
> >> 
> >> error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc' 
> >> 
> >> This appears to be related to 
> >> https://trac.sagemath.org/ticket/28242 
> >> Perhaps it ought to be improved. 
> > 
> > 
> > The compilation used to work fine on the machines, so that could be it? 
> > 
> >> 
> >> 
> >> It looks like you're trying to use a system installation of Pari/GP, 
> rather 
> >> than build Sage's Pari. What parts of Pari (Pari-related packages?) 
> >> do you have on your Debian system? 
> > 
> > 
> > The computer on which I try to compile is maintained by my department's 
> IT, so I am not completely aware of all the packages that might or might 
> not be installed. 
> > 
> > How can I figure out which pari (and which packages) are installed? 
>
> what is the output of 
>
>   gp --version 
>

  GP/PARI CALCULATOR Version 2.9.1 (released)
  amd64 running linux (x86-64/GMP-6.1.1 kernel) 64-bit version
   compiled: Dec  1 2016, gcc version 6.2.1 20161124 (Debian 6.2.1-5)
   threading engine: pthread
(readline v7.0 disabled, extended help enabled)

 

>
> and of 
>
>   echo 'default(datadir)' | gp -qf 
>

"/usr/share/pari"
 

>
> And what is the output of 
>
>   which gp 
>

/usr/bin/gp
 

>
> Thanks. 
>
> >> 
> >> 
> >> Anyhow, Pari in Stretch is too old, but you should be able to use the 
> >> one from backports: 
> >> 
> >> https://packages.debian.org/stretch-backports/libpari-dev 
> > 
> > 
> > I am afraid that I do not have the rights to install libpari systemwide. 
> Hmm. 
> > 
> >> 
> >> 
> >> 
> >> Thanks 
> >> Dima 
> >> > 
> >> > Found local metadata for cypari-2.1.1 
> >> > Attempting to download package cypari2-2.1.1.tar.gz from mirrors 
> >> > 
> https://mirror.koddos.net/sagemath/spkg/upstream/cypari/cypari2-2.1.1.tar.gz 
> >> > 
> [..] 
> >> > cypari-2.1.1 
> >> >  
> >> > Setting up build directory for cypari-2.1.1 
> >> > Finished extraction 
> >> > Applying patches from ../patches... 
> >> > Applying ../patches/trashcan.patch 
> >> > patching file cypari2/gen.pxd 
> >> > patching file cypari2/gen.pyx 
> >> > Hunk #1 succeeded at 141 (offset 6 lines). 
> >> > patching file cypari2/pari_instance.pyx 
> >> >  
> >> > Host system: 
> >> > Linux ural 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) 
> x86_64 GNU/Linux 
> >> >  
> >> > C compiler: gcc 
> >> > C compiler version: 
> >> > Using built-in specs. 
> >> > COLLECT_GCC=gcc 
> >> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper 
> >> > Target: x86_64-linux-gnu 
> >> > Configured with: ../src/configure -v --with-pkgversion='Debian 
> 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs 
> --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
> --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared 
> --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext 
> --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ 
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object 
> --disable-vtable-verify --enable-libmpx --enable-plugin 
> --enable-default-pie --with-system-zlib --disable-browser-plugin 
> --enable-java-awt=gtk --enable-gtk-cairo 
> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home 
> --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 
> --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 
> --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
> --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch 
> --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 
> --enable-multilib --with-tune=generic --enable-checking=release 
> --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu 
> >> > Thread model: posix 
> >> > gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) 
> >> >  
> >> > Package 'cypari' is 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Dima Pasechnik
On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina
 wrote:
>
> Hi,
>
> On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik wrote:
>>
>> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina
>>  wrote:
>> >
>> > On Debian stretch, I get a compilation error making sage 8.9.beta9. The 
>> > problem is in the package "cypari", the relevant log is attached:
>>
>> Are you upgrading? Building from scratch?
>
>
> I am building from scratch with python3.
>
>>
>>
>> The interesting line is
>>
>> error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc'
>>
>> This appears to be related to
>> https://trac.sagemath.org/ticket/28242
>> Perhaps it ought to be improved.
>
>
> The compilation used to work fine on the machines, so that could be it?
>
>>
>>
>> It looks like you're trying to use a system installation of Pari/GP, rather
>> than build Sage's Pari. What parts of Pari (Pari-related packages?)
>> do you have on your Debian system?
>
>
> The computer on which I try to compile is maintained by my department's IT, 
> so I am not completely aware of all the packages that might or might not be 
> installed.
>
> How can I figure out which pari (and which packages) are installed?

what is the output of

  gp --version

and of

  echo 'default(datadir)' | gp -qf

And what is the output of

  which gp

Thanks.

>>
>>
>> Anyhow, Pari in Stretch is too old, but you should be able to use the
>> one from backports:
>>
>> https://packages.debian.org/stretch-backports/libpari-dev
>
>
> I am afraid that I do not have the rights to install libpari systemwide. Hmm.
>
>>
>>
>>
>> Thanks
>> Dima
>> >
>> > Found local metadata for cypari-2.1.1
>> > Attempting to download package cypari2-2.1.1.tar.gz from mirrors
>> > https://mirror.koddos.net/sagemath/spkg/upstream/cypari/cypari2-2.1.1.tar.gz
>> > [..]
>> > cypari-2.1.1
>> > 
>> > Setting up build directory for cypari-2.1.1
>> > Finished extraction
>> > Applying patches from ../patches...
>> > Applying ../patches/trashcan.patch
>> > patching file cypari2/gen.pxd
>> > patching file cypari2/gen.pyx
>> > Hunk #1 succeeded at 141 (offset 6 lines).
>> > patching file cypari2/pari_instance.pyx
>> > 
>> > Host system:
>> > Linux ural 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) 
>> > x86_64 GNU/Linux
>> > 
>> > C compiler: gcc
>> > C compiler version:
>> > Using built-in specs.
>> > COLLECT_GCC=gcc
>> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
>> > Target: x86_64-linux-gnu
>> > Configured with: ../src/configure -v --with-pkgversion='Debian 
>> > 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs 
>> > --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
>> > --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared 
>> > --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext 
>> > --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ 
>> > --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
>> > --with-default-libstdcxx-abi=new --enable-gnu-unique-object 
>> > --disable-vtable-verify --enable-libmpx --enable-plugin 
>> > --enable-default-pie --with-system-zlib --disable-browser-plugin 
>> > --enable-java-awt=gtk --enable-gtk-cairo 
>> > --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre 
>> > --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 
>> > --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 
>> > --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
>> > --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch 
>> > --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 
>> > --enable-multilib --with-tune=generic --enable-checking=release 
>> > --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
>> > Thread model: posix
>> > gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
>> > 
>> > Package 'cypari' is currently not installed
>> > No legacy uninstaller found for 'cypari'; nothing to do
>> > Installing cypari-2.1.1
>> > Installing package cypari2 using pip2
>> > Ignoring indexes: https://pypi.org/simple
>> > Created temporary directory: /tmp/pip-ephem-wheel-cache-EMVpJz
>> > Created temporary directory: /tmp/pip-req-tracker-wfmzIV
>> > Created requirements tracker '/tmp/pip-req-tracker-wfmzIV'
>> > Created temporary directory: /tmp/pip-install-HkyCL2
>> > Processing 
>> > /srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src
>> >   Created temporary directory: /tmp/pip-req-build-MoH_HZ
>> >   Added 
>> > file:///srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src 
>> > to build tracker 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Dima Pasechnik
On Tue, Sep 10, 2019 at 2:16 PM Mariel Supina
 wrote:
>
> Hi,
>
> On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik wrote:
>>
>> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina
>>  wrote:
>> >
>> > On Debian stretch, I get a compilation error making sage 8.9.beta9. The 
>> > problem is in the package "cypari", the relevant log is attached:
>>
>> Are you upgrading? Building from scratch?
>
>
> I am building from scratch with python3.
>

could you post the output of ./configure --with-python=3 ?
(I guess that's what you ran before starting to build)

In case you don't know how,  run
./configure --with-python=3 >/tmp/foo

and post the resulting /tmp/foo file

Thanks.

I suspect you have a broken in a interesting way system-wide
installation of pari/gp...

---

you can build and use Sage's pari e.g. by
doing

make pari

and then doing

make




>>
>>
>> The interesting line is
>>
>> error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc'
>>
>> This appears to be related to
>> https://trac.sagemath.org/ticket/28242
>> Perhaps it ought to be improved.
>
>
> The compilation used to work fine on the machines, so that could be it?
>
>>
>>
>> It looks like you're trying to use a system installation of Pari/GP, rather
>> than build Sage's Pari. What parts of Pari (Pari-related packages?)
>> do you have on your Debian system?
>
>
> The computer on which I try to compile is maintained by my department's IT, 
> so I am not completely aware of all the packages that might or might not be 
> installed.
>
> How can I figure out which pari (and which packages) are installed?
>
>>
>>
>> Anyhow, Pari in Stretch is too old, but you should be able to use the
>> one from backports:
>>
>> https://packages.debian.org/stretch-backports/libpari-dev
>
>
> I am afraid that I do not have the rights to install libpari systemwide. Hmm.
>
>>
>>
>>
>> Thanks
>> Dima
>> >
>> > Found local metadata for cypari-2.1.1
>> > Attempting to download package cypari2-2.1.1.tar.gz from mirrors
>> > https://mirror.koddos.net/sagemath/spkg/upstream/cypari/cypari2-2.1.1.tar.gz
>> > [..]
>> > cypari-2.1.1
>> > 
>> > Setting up build directory for cypari-2.1.1
>> > Finished extraction
>> > Applying patches from ../patches...
>> > Applying ../patches/trashcan.patch
>> > patching file cypari2/gen.pxd
>> > patching file cypari2/gen.pyx
>> > Hunk #1 succeeded at 141 (offset 6 lines).
>> > patching file cypari2/pari_instance.pyx
>> > 
>> > Host system:
>> > Linux ural 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) 
>> > x86_64 GNU/Linux
>> > 
>> > C compiler: gcc
>> > C compiler version:
>> > Using built-in specs.
>> > COLLECT_GCC=gcc
>> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
>> > Target: x86_64-linux-gnu
>> > Configured with: ../src/configure -v --with-pkgversion='Debian 
>> > 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs 
>> > --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
>> > --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared 
>> > --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext 
>> > --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ 
>> > --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
>> > --with-default-libstdcxx-abi=new --enable-gnu-unique-object 
>> > --disable-vtable-verify --enable-libmpx --enable-plugin 
>> > --enable-default-pie --with-system-zlib --disable-browser-plugin 
>> > --enable-java-awt=gtk --enable-gtk-cairo 
>> > --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre 
>> > --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 
>> > --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 
>> > --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
>> > --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch 
>> > --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 
>> > --enable-multilib --with-tune=generic --enable-checking=release 
>> > --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
>> > Thread model: posix
>> > gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
>> > 
>> > Package 'cypari' is currently not installed
>> > No legacy uninstaller found for 'cypari'; nothing to do
>> > Installing cypari-2.1.1
>> > Installing package cypari2 using pip2
>> > Ignoring indexes: https://pypi.org/simple
>> > Created temporary directory: /tmp/pip-ephem-wheel-cache-EMVpJz
>> > Created temporary directory: /tmp/pip-req-tracker-wfmzIV
>> > Created requirements tracker '/tmp/pip-req-tracker-wfmzIV'
>> > Created temporary directory: 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Mariel Supina
Hi,

On Tuesday, September 10, 2019 at 2:51:27 PM UTC+2, Dima Pasechnik wrote:
>
> On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina 
> > wrote: 
> > 
> > On Debian stretch, I get a compilation error making sage 8.9.beta9. The 
> problem is in the package "cypari", the relevant log is attached: 
>
> Are you upgrading? Building from scratch? 
>

I am building from scratch with python3.
 

>
> The interesting line is 
>
> error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc' 
>
> This appears to be related to 
> https://trac.sagemath.org/ticket/28242 
> Perhaps it ought to be improved. 
>

The compilation used to work fine on the machines, so that could be it?
 

>
> It looks like you're trying to use a system installation of Pari/GP, 
> rather 
> than build Sage's Pari. What parts of Pari (Pari-related packages?) 
> do you have on your Debian system? 
>

The computer on which I try to compile is maintained by my department's IT, 
so I am not completely aware of all the packages that might or might not be 
installed. 

How can I figure out which pari (and which packages) are installed?
 

>
> Anyhow, Pari in Stretch is too old, but you should be able to use the 
> one from backports: 
>
> https://packages.debian.org/stretch-backports/libpari-dev 
> 


I am afraid that I do not have the rights to install libpari systemwide. 
Hmm.
 

>
>
> Thanks 
> Dima 
> > 
> > Found local metadata for cypari-2.1.1 
> > Attempting to download package cypari2-2.1.1.tar.gz from mirrors 
> > 
> https://mirror.koddos.net/sagemath/spkg/upstream/cypari/cypari2-2.1.1.tar.gz 
> > [..] 
> > cypari-2.1.1 
> >  
> > Setting up build directory for cypari-2.1.1 
> > Finished extraction 
> > Applying patches from ../patches... 
> > Applying ../patches/trashcan.patch 
> > patching file cypari2/gen.pxd 
> > patching file cypari2/gen.pyx 
> > Hunk #1 succeeded at 141 (offset 6 lines). 
> > patching file cypari2/pari_instance.pyx 
> >  
> > Host system: 
> > Linux ural 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) 
> x86_64 GNU/Linux 
> >  
> > C compiler: gcc 
> > C compiler version: 
> > Using built-in specs. 
> > COLLECT_GCC=gcc 
> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper 
> > Target: x86_64-linux-gnu 
> > Configured with: ../src/configure -v --with-pkgversion='Debian 
> 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs 
> --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
> --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared 
> --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext 
> --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ 
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object 
> --disable-vtable-verify --enable-libmpx --enable-plugin 
> --enable-default-pie --with-system-zlib --disable-browser-plugin 
> --enable-java-awt=gtk --enable-gtk-cairo 
> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home 
> --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 
> --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 
> --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
> --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch 
> --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 
> --enable-multilib --with-tune=generic --enable-checking=release 
> --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu 
> > Thread model: posix 
> > gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) 
> >  
> > Package 'cypari' is currently not installed 
> > No legacy uninstaller found for 'cypari'; nothing to do 
> > Installing cypari-2.1.1 
> > Installing package cypari2 using pip2 
> > Ignoring indexes: https://pypi.org/simple 
> > Created temporary directory: /tmp/pip-ephem-wheel-cache-EMVpJz 
> > Created temporary directory: /tmp/pip-req-tracker-wfmzIV 
> > Created requirements tracker '/tmp/pip-req-tracker-wfmzIV' 
> > Created temporary directory: /tmp/pip-install-HkyCL2 
> > Processing 
> /srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src 
> >   Created temporary directory: /tmp/pip-req-build-MoH_HZ 
> >   Added 
> file:///srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src to 
> build tracker '/tmp/pip-req-tracker-wfmzIV' 
> >   Running setup.py (path:/tmp/pip-req-build-MoH_HZ/setup.py) egg_info 
> for package from 
> 

Re: [sage-release] Re: Sage 8.9.beta9 released

2019-09-10 Thread Dima Pasechnik
On Tue, Sep 10, 2019 at 1:36 PM Mariel Supina
 wrote:
>
> On Debian stretch, I get a compilation error making sage 8.9.beta9. The 
> problem is in the package "cypari", the relevant log is attached:

Are you upgrading? Building from scratch?

The interesting line is

error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc'

This appears to be related to
https://trac.sagemath.org/ticket/28242
Perhaps it ought to be improved.

It looks like you're trying to use a system installation of Pari/GP, rather
than build Sage's Pari. What parts of Pari (Pari-related packages?)
do you have on your Debian system?

Anyhow, Pari in Stretch is too old, but you should be able to use the
one from backports:

https://packages.debian.org/stretch-backports/libpari-dev

Thanks
Dima
>
> Found local metadata for cypari-2.1.1
> Attempting to download package cypari2-2.1.1.tar.gz from mirrors
> https://mirror.koddos.net/sagemath/spkg/upstream/cypari/cypari2-2.1.1.tar.gz
> [..]
> cypari-2.1.1
> 
> Setting up build directory for cypari-2.1.1
> Finished extraction
> Applying patches from ../patches...
> Applying ../patches/trashcan.patch
> patching file cypari2/gen.pxd
> patching file cypari2/gen.pyx
> Hunk #1 succeeded at 141 (offset 6 lines).
> patching file cypari2/pari_instance.pyx
> 
> Host system:
> Linux ural 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) x86_64 
> GNU/Linux
> 
> C compiler: gcc
> C compiler version:
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --with-pkgversion='Debian 
> 6.3.0-18+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs 
> --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr 
> --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared 
> --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext 
> --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ 
> --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes 
> --with-default-libstdcxx-abi=new --enable-gnu-unique-object 
> --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie 
> --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk 
> --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre 
> --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 
> --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 
> --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
> --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch 
> --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 
> --enable-multilib --with-tune=generic --enable-checking=release 
> --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> Thread model: posix
> gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)
> 
> Package 'cypari' is currently not installed
> No legacy uninstaller found for 'cypari'; nothing to do
> Installing cypari-2.1.1
> Installing package cypari2 using pip2
> Ignoring indexes: https://pypi.org/simple
> Created temporary directory: /tmp/pip-ephem-wheel-cache-EMVpJz
> Created temporary directory: /tmp/pip-req-tracker-wfmzIV
> Created requirements tracker '/tmp/pip-req-tracker-wfmzIV'
> Created temporary directory: /tmp/pip-install-HkyCL2
> Processing /srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src
>   Created temporary directory: /tmp/pip-req-build-MoH_HZ
>   Added 
> file:///srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src to 
> build tracker '/tmp/pip-req-tracker-wfmzIV'
>   Running setup.py (path:/tmp/pip-req-build-MoH_HZ/setup.py) egg_info for 
> package from 
> file:///srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src
> Running command python setup.py egg_info
> running egg_info
> creating pip-egg-info/cypari2.egg-info
> writing requirements to pip-egg-info/cypari2.egg-info/requires.txt
> writing pip-egg-info/cypari2.egg-info/PKG-INFO
> writing top-level names to pip-egg-info/cypari2.egg-info/top_level.txt
> writing dependency_links to 
> pip-egg-info/cypari2.egg-info/dependency_links.txt
> writing manifest file 'pip-egg-info/cypari2.egg-info/SOURCES.txt'
> error: [Errno 2] No such file or directory: '/usr/share/pari/pari.desc'
> Cleaning up...
>   Removing source in /tmp/pip-req-build-MoH_HZ
> Removed 
> file:///srv/public/shared/sage/local/var/tmp/sage/build/cypari-2.1.1/src from 
> build tracker '/tmp/pip-req-tracker-wfmzIV'
> Removed build tracker '/tmp/pip-req-tracker-wfmzIV'
> Command "python setup.py