Re: [sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-18 Thread Dima Pasechnik
On Sat, May 18, 2019 at 3:49 AM 刘鹏  wrote:
>
> Dear my devolopers,
>
> I have tried the installation on the other PC, which is a windows 10 virtual 
> machine on my MacBook Pro.
>
> The warning message is the same as the other PC, which said the Python pcutil 
> module cannot detect the status of my hardwares.
>
> I am trying to fix this problem.

please see https://github.com/giampaolo/psutil/issues/1251
(this is in the official repository of psutil, and if you want to work
on this, please coordinate there)

Sage merely uses psutil as a Python module, and, I repeat, it is not
crucial one for Sage.

>
> Thanks. Regards
>
> Dima Pasechnik  于2019年5月17日周五 上午3:15写道:
>>
>> On Thu, May 16, 2019 at 6:15 PM 刘鹏  wrote:
>> >
>> > Dear my friend,
>> >
>> > I do the installation under your help. I reinstalled the sagemath software 
>> > with the steps:
>> > 1. download the latest version of SageMath 8.7 for Linux Ubuntu 18.04, and 
>> > mv sage-8.7-Ubuntu_18.04-x86_64.tar.bz2 /usr/local/
>> > 2. Reinstall WSL Ubuntu 18.04
>> > 3. mkdir /usr/local/SageMath && chown -R newton /usr/local/SageMath
>> > 4. cd /usr/local/ tar xjvf sage-8.7-Ubuntu_18.04-x86_64.tar.bz2
>> > 5. chown -R newton /usr/local/SageMath
>> > 6. cd SageMath/ && ./sage
>> > 7. chown -R newton /usr/local/SageMath
>> > 8. alias sage='/usr/local/SageMath/sage'
>> >
>> > when I type sage in terminal with normal user, sage can be used. But there 
>> > is still a warning:
>> >
>> > newton@Newton-PC-4:~$ sage
>> > ┌┐
>> > │ SageMath version 8.7, Release Date: 2019-03-23 │
>> > │ Using Python 2.7.15. Type "help()" for help.   │
>> > └┘
>> > /usr/local/SageMath/local/lib/python2.7/site-packages/psutil/_pslinux.py:469:
>> >  RuntimeWarning: 'sin' and 'sout' swap memory stats couldn't be determined 
>> > and were set to 0 ([Errno 2] No such file or directory: '/proc/vmstat')
>> >   warnings.warn(msg, RuntimeWarning)
>> > sage: 1 + 1
>> > 2
>> > sage:
>> >
>> > Is it the bug of WSL or there is still something wrong?
>> Most probably psutil does not work on WSL.
>>
>> psutils is a Python module to show how busy the CPU, etc. It is not
>> really essential for Sage.
>> So you can ignore this warning (I hope it is only printed once per session)
>>
>>
>>
>> Hope this helps,
>> Dmitrii
>>
>> >
>> > henri.gir...@gmail.com  于2019年5月16日周四 下午5:20写道:
>> >>
>> >> I guess he uses sudo to install the sagemath deb package as he is using
>> >> the nativ (!) one... But sorry for insisting, the last version of sage
>> >> on the web site is much more recent and can be used in home .
>> >>
>> >> Le 16/05/2019 à 10:39, Dima Pasechnik a écrit :
>> >> > On Thu, May 16, 2019 at 7:55 AM 刘鹏  wrote:
>> >> >> Q1
>> >> >>> why did you use sudo ?
>> >> >>>
>> >> >>> This appears to be completely unnecessary.
>> >> >>
>> >> >> I am sorry for showing that. But now, I can use sagemath with this 
>> >> >> command in .bashrc
>> >> >> alias sage=''sudo ~/SageMath/sage'
>> >> >> I think this is because I use sagemath the first time with sudo. I 
>> >> >> don't know what happened during I running sagemath the first time.
>> >> > This is because Sage maintains a data cache in ~/.sage/
>> >> > Running Sage with sudo created/updated files in ~/.sage/ with wrong
>> >> > (i.e. root) ownership,
>> >> > It might have also changed ownerships of some files in
>> >> > ~/SageMath/local/ - although this is less likely.
>> >> >
>> >> > You can see ownerships in ~/.sage/ by running "ls -alR  ~/.sage/", and
>> >> > similarly for ~/SageMath/
>> >> >
>> >> > You can (actually, you should) change ownerships back to your "normal" 
>> >> > user
>> >> > bu running "sudo chown -R ~/.sage/   "
>> >> > and "sudo chown -R ~/Sage/  "
>> >> > (where  should be replaced by your real username, -
>> >> > something that on "real" Linux systems
>> >> > is printed by the command "whoami")
>> >> >
>> >> > This is assuming that "chown" actually works on WSL as it should...
>> >> >
>> >> > Then it should not be necessary to use "sudo" any more.
>> >> >
>> >> > Using "sudo" is a bad idea in such a case, e.g. as in Python you have
>> >> > full access to the file system, so you can accidentally destroy your
>> >> > WSL installation.
>> >> >
>> >> > Let us know if all this makes sense and works.
>> >> >
>> >> >> Q2
>> >> >>> and does it still work if you don't use the alias?
>> >> >> alias just replace the command. There is no different between alias 
>> >> >> the the original command.
>> >> >>
>> >> >> Q3
>> >> >>> Anyhow, we need a detailed bug report if you like us to look at it
>> >> >>> ("it crashed" is not enough - we need to see error messages, relevant
>> >> >>> log files, etc)
>> >> >> I am sorry for my issue not so detailed. I use sagemath to do the 
>> >> >> experiment in my bachelor thesis. This PC for doing experiment still 
>> >> >> in the lab. I will 

Re: [sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-17 Thread 刘鹏
Dear my devolopers,

I have tried the installation on the other PC, which is a windows 10
virtual machine on my MacBook Pro.

The warning message is the same as the other PC, which said the Python
pcutil module cannot detect the status of my hardwares.

I am trying to fix this problem.

Thanks. Regards

Dima Pasechnik  于2019年5月17日周五 上午3:15写道:

> On Thu, May 16, 2019 at 6:15 PM 刘鹏  wrote:
> >
> > Dear my friend,
> >
> > I do the installation under your help. I reinstalled the sagemath
> software with the steps:
> > 1. download the latest version of SageMath 8.7 for Linux Ubuntu 18.04,
> and mv sage-8.7-Ubuntu_18.04-x86_64.tar.bz2 /usr/local/
> > 2. Reinstall WSL Ubuntu 18.04
> > 3. mkdir /usr/local/SageMath && chown -R newton /usr/local/SageMath
> > 4. cd /usr/local/ tar xjvf sage-8.7-Ubuntu_18.04-x86_64.tar.bz2
> > 5. chown -R newton /usr/local/SageMath
> > 6. cd SageMath/ && ./sage
> > 7. chown -R newton /usr/local/SageMath
> > 8. alias sage='/usr/local/SageMath/sage'
> >
> > when I type sage in terminal with normal user, sage can be used. But
> there is still a warning:
> >
> > newton@Newton-PC-4:~$ sage
> > ┌┐
> > │ SageMath version 8.7, Release Date: 2019-03-23 │
> > │ Using Python 2.7.15. Type "help()" for help.   │
> > └┘
> >
> /usr/local/SageMath/local/lib/python2.7/site-packages/psutil/_pslinux.py:469:
> RuntimeWarning: 'sin' and 'sout' swap memory stats couldn't be determined
> and were set to 0 ([Errno 2] No such file or directory: '/proc/vmstat')
> >   warnings.warn(msg, RuntimeWarning)
> > sage: 1 + 1
> > 2
> > sage:
> >
> > Is it the bug of WSL or there is still something wrong?
> Most probably psutil does not work on WSL.
>
> psutils is a Python module to show how busy the CPU, etc. It is not
> really essential for Sage.
> So you can ignore this warning (I hope it is only printed once per session)
>
>
>
> Hope this helps,
> Dmitrii
>
> >
> > henri.gir...@gmail.com  于2019年5月16日周四 下午5:20写道:
> >>
> >> I guess he uses sudo to install the sagemath deb package as he is using
> >> the nativ (!) one... But sorry for insisting, the last version of sage
> >> on the web site is much more recent and can be used in home .
> >>
> >> Le 16/05/2019 à 10:39, Dima Pasechnik a écrit :
> >> > On Thu, May 16, 2019 at 7:55 AM 刘鹏  wrote:
> >> >> Q1
> >> >>> why did you use sudo ?
> >> >>>
> >> >>> This appears to be completely unnecessary.
> >> >>
> >> >> I am sorry for showing that. But now, I can use sagemath with this
> command in .bashrc
> >> >> alias sage=''sudo ~/SageMath/sage'
> >> >> I think this is because I use sagemath the first time with sudo. I
> don't know what happened during I running sagemath the first time.
> >> > This is because Sage maintains a data cache in ~/.sage/
> >> > Running Sage with sudo created/updated files in ~/.sage/ with wrong
> >> > (i.e. root) ownership,
> >> > It might have also changed ownerships of some files in
> >> > ~/SageMath/local/ - although this is less likely.
> >> >
> >> > You can see ownerships in ~/.sage/ by running "ls -alR  ~/.sage/", and
> >> > similarly for ~/SageMath/
> >> >
> >> > You can (actually, you should) change ownerships back to your
> "normal" user
> >> > bu running "sudo chown -R ~/.sage/   "
> >> > and "sudo chown -R ~/Sage/  "
> >> > (where  should be replaced by your real username, -
> >> > something that on "real" Linux systems
> >> > is printed by the command "whoami")
> >> >
> >> > This is assuming that "chown" actually works on WSL as it should...
> >> >
> >> > Then it should not be necessary to use "sudo" any more.
> >> >
> >> > Using "sudo" is a bad idea in such a case, e.g. as in Python you have
> >> > full access to the file system, so you can accidentally destroy your
> >> > WSL installation.
> >> >
> >> > Let us know if all this makes sense and works.
> >> >
> >> >> Q2
> >> >>> and does it still work if you don't use the alias?
> >> >> alias just replace the command. There is no different between alias
> the the original command.
> >> >>
> >> >> Q3
> >> >>> Anyhow, we need a detailed bug report if you like us to look at it
> >> >>> ("it crashed" is not enough - we need to see error messages,
> relevant
> >> >>> log files, etc)
> >> >> I am sorry for my issue not so detailed. I use sagemath to do the
> experiment in my bachelor thesis. This PC for doing experiment still in the
> lab. I will come back to run the installation again and get the log file.
> >> >>
> >> >> Thanks.
> >> >>
> >> >> Dima Pasechnik  于2019年5月15日周三 下午3:14写道:
> >> >>> On Tue, May 14, 2019 at 10:16 PM 刘鹏 
> wrote:
> >>  Dear my friends,
> >> 
> >>  After I installed the sagemath 8.7 in Windows Subsystem for Linux
> Ubuntu 18.04, crash happend.
> >> 
> >>  (decomperssed ==> move folder to my home directory ==> sudo
> ./sage).
> >> >>> why did you use sudo ?
> >> >>> This 

Re: [sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-16 Thread 刘鹏
Dear my friend,

I do the installation under your help. I reinstalled the sagemath software
with the steps:
1. download the latest version of SageMath 8.7 for Linux Ubuntu 18.04, and *mv
sage-8.7-Ubuntu_18.04-x86_64.tar.bz2 /usr/local/*
2. Reinstall WSL Ubuntu 18.04
3. *mkdir /usr/local/SageMath && chown -R newton /usr/local/SageMath*
4. *cd /usr/local/ tar xjvf sage-8.7-Ubuntu_18.04-x86_64.tar.bz2*
*5. chown -R newton /usr/local/SageMath*

*6. cd SageMath/ && ./sage*
*7. chown -R newton /usr/local/SageMath*

*8. alias sage='/usr/local/SageMath/sage'*

when I type sage in terminal with normal user*,* sage can be used. But
there is still a warning:

newton@Newton-PC-4:~$ sage
┌┐
│ SageMath version 8.7, Release Date: 2019-03-23 │
│ Using Python 2.7.15. Type "help()" for help.   │
└┘
/usr/local/SageMath/local/lib/python2.7/site-packages/psutil/_pslinux.py:469:
RuntimeWarning: 'sin' and 'sout' swap memory stats couldn't be determined
and were set to 0 ([Errno 2] No such file or directory: '/proc/vmstat')
  warnings.warn(msg, RuntimeWarning)
*sage*: 1 + 1
2
*sage*:

Is it the bug of WSL or there is still something wrong?

henri.gir...@gmail.com  于2019年5月16日周四 下午5:20写道:

> I guess he uses sudo to install the sagemath deb package as he is using
> the nativ (!) one... But sorry for insisting, the last version of sage
> on the web site is much more recent and can be used in home .
>
> Le 16/05/2019 à 10:39, Dima Pasechnik a écrit :
> > On Thu, May 16, 2019 at 7:55 AM 刘鹏  wrote:
> >> Q1
> >>> why did you use sudo ?
> >>>
> >>> This appears to be completely unnecessary.
> >>
> >> I am sorry for showing that. But now, I can use sagemath with this
> command in .bashrc
> >> alias sage=''sudo ~/SageMath/sage'
> >> I think this is because I use sagemath the first time with sudo. I
> don't know what happened during I running sagemath the first time.
> > This is because Sage maintains a data cache in ~/.sage/
> > Running Sage with sudo created/updated files in ~/.sage/ with wrong
> > (i.e. root) ownership,
> > It might have also changed ownerships of some files in
> > ~/SageMath/local/ - although this is less likely.
> >
> > You can see ownerships in ~/.sage/ by running "ls -alR  ~/.sage/", and
> > similarly for ~/SageMath/
> >
> > You can (actually, you should) change ownerships back to your "normal"
> user
> > bu running "sudo chown -R ~/.sage/   "
> > and "sudo chown -R ~/Sage/  "
> > (where  should be replaced by your real username, -
> > something that on "real" Linux systems
> > is printed by the command "whoami")
> >
> > This is assuming that "chown" actually works on WSL as it should...
> >
> > Then it should not be necessary to use "sudo" any more.
> >
> > Using "sudo" is a bad idea in such a case, e.g. as in Python you have
> > full access to the file system, so you can accidentally destroy your
> > WSL installation.
> >
> > Let us know if all this makes sense and works.
> >
> >> Q2
> >>> and does it still work if you don't use the alias?
> >> alias just replace the command. There is no different between alias the
> the original command.
> >>
> >> Q3
> >>> Anyhow, we need a detailed bug report if you like us to look at it
> >>> ("it crashed" is not enough - we need to see error messages, relevant
> >>> log files, etc)
> >> I am sorry for my issue not so detailed. I use sagemath to do the
> experiment in my bachelor thesis. This PC for doing experiment still in the
> lab. I will come back to run the installation again and get the log file.
> >>
> >> Thanks.
> >>
> >> Dima Pasechnik  于2019年5月15日周三 下午3:14写道:
> >>> On Tue, May 14, 2019 at 10:16 PM 刘鹏  wrote:
>  Dear my friends,
> 
>  After I installed the sagemath 8.7 in Windows Subsystem for Linux
> Ubuntu 18.04, crash happend.
> 
>  (decomperssed ==> move folder to my home directory ==> sudo ./sage).
> >>> why did you use sudo ?
> >>> This appears to be completely unnecessary.
> >>>
>  When I first finished the installation, the first running is very
> normal. However when the second time I add "alias sage='~/SageMath/sage'"
> and type sage in terminal, it crashed.
> >>> and does it still work if you don't use the alias?
> >>>
> >>> Anyhow, we need a detailed bug report if you like us to look at it
> >>> ("it crashed" is not enough - we need to see error messages, relevant
> >>> log files, etc)
> >>>
>  what happened here? Is WSL not so stable or the bugs in Sage 8.7 made
> the crash?
> 
>  --
>  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 

Re: [sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-16 Thread henri.gir...@gmail.com
I guess he uses sudo to install the sagemath deb package as he is using 
the nativ (!) one... But sorry for insisting, the last version of sage 
on the web site is much more recent and can be used in home .


Le 16/05/2019 à 10:39, Dima Pasechnik a écrit :

On Thu, May 16, 2019 at 7:55 AM 刘鹏  wrote:

Q1

why did you use sudo ?

This appears to be completely unnecessary.


I am sorry for showing that. But now, I can use sagemath with this command in 
.bashrc
alias sage=''sudo ~/SageMath/sage'
I think this is because I use sagemath the first time with sudo. I don't know 
what happened during I running sagemath the first time.

This is because Sage maintains a data cache in ~/.sage/
Running Sage with sudo created/updated files in ~/.sage/ with wrong
(i.e. root) ownership,
It might have also changed ownerships of some files in
~/SageMath/local/ - although this is less likely.

You can see ownerships in ~/.sage/ by running "ls -alR  ~/.sage/", and
similarly for ~/SageMath/

You can (actually, you should) change ownerships back to your "normal" user
bu running "sudo chown -R ~/.sage/   "
and "sudo chown -R ~/Sage/  "
(where  should be replaced by your real username, -
something that on "real" Linux systems
is printed by the command "whoami")

This is assuming that "chown" actually works on WSL as it should...

Then it should not be necessary to use "sudo" any more.

Using "sudo" is a bad idea in such a case, e.g. as in Python you have
full access to the file system, so you can accidentally destroy your
WSL installation.

Let us know if all this makes sense and works.


Q2

and does it still work if you don't use the alias?

alias just replace the command. There is no different between alias the the 
original command.

Q3

Anyhow, we need a detailed bug report if you like us to look at it
("it crashed" is not enough - we need to see error messages, relevant
log files, etc)

I am sorry for my issue not so detailed. I use sagemath to do the experiment in 
my bachelor thesis. This PC for doing experiment still in the lab. I will come 
back to run the installation again and get the log file.

Thanks.

Dima Pasechnik  于2019年5月15日周三 下午3:14写道:

On Tue, May 14, 2019 at 10:16 PM 刘鹏  wrote:

Dear my friends,

After I installed the sagemath 8.7 in Windows Subsystem for Linux Ubuntu 18.04, 
crash happend.

(decomperssed ==> move folder to my home directory ==> sudo ./sage).

why did you use sudo ?
This appears to be completely unnecessary.


When I first finished the installation, the first running is very normal. However when 
the second time I add "alias sage='~/SageMath/sage'" and type sage in terminal, 
it crashed.

and does it still work if you don't use the alias?

Anyhow, we need a detailed bug report if you like us to look at it
("it crashed" is not enough - we need to see error messages, relevant
log files, etc)


what happened here? Is WSL not so stable or the bugs in Sage 8.7 made the crash?

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CADUebW4jES4_6HJLoVAs9tFwUKBgCuGZ0d_rfJkH80r0OxLwZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq279USRuNPPmWCX8XjqEFg1BA8TdcthQJv%3D3yzLCi8rfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CADUebW72vzxz-2hWkPcf%3DKcQjvNceOY_Sv2kooL__JhyD7eh6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
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 

Re: [sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-16 Thread Dima Pasechnik
On Thu, May 16, 2019 at 7:55 AM 刘鹏  wrote:
>
> Q1
>>
>> why did you use sudo ?
>>
>> This appears to be completely unnecessary.
>
>
> I am sorry for showing that. But now, I can use sagemath with this command in 
> .bashrc
> alias sage=''sudo ~/SageMath/sage'
> I think this is because I use sagemath the first time with sudo. I don't know 
> what happened during I running sagemath the first time.

This is because Sage maintains a data cache in ~/.sage/
Running Sage with sudo created/updated files in ~/.sage/ with wrong
(i.e. root) ownership,
It might have also changed ownerships of some files in
~/SageMath/local/ - although this is less likely.

You can see ownerships in ~/.sage/ by running "ls -alR  ~/.sage/", and
similarly for ~/SageMath/

You can (actually, you should) change ownerships back to your "normal" user
bu running "sudo chown -R ~/.sage/   "
and "sudo chown -R ~/Sage/  "
(where  should be replaced by your real username, -
something that on "real" Linux systems
is printed by the command "whoami")

This is assuming that "chown" actually works on WSL as it should...

Then it should not be necessary to use "sudo" any more.

Using "sudo" is a bad idea in such a case, e.g. as in Python you have
full access to the file system, so you can accidentally destroy your
WSL installation.

Let us know if all this makes sense and works.

>
> Q2
>>
>> and does it still work if you don't use the alias?
>
> alias just replace the command. There is no different between alias the the 
> original command.
>
> Q3
>>
>> Anyhow, we need a detailed bug report if you like us to look at it
>> ("it crashed" is not enough - we need to see error messages, relevant
>> log files, etc)
>
> I am sorry for my issue not so detailed. I use sagemath to do the experiment 
> in my bachelor thesis. This PC for doing experiment still in the lab. I will 
> come back to run the installation again and get the log file.
>
> Thanks.
>
> Dima Pasechnik  于2019年5月15日周三 下午3:14写道:
>>
>> On Tue, May 14, 2019 at 10:16 PM 刘鹏  wrote:
>> >
>> > Dear my friends,
>> >
>> > After I installed the sagemath 8.7 in Windows Subsystem for Linux Ubuntu 
>> > 18.04, crash happend.
>> >
>> > (decomperssed ==> move folder to my home directory ==> sudo ./sage).
>>
>> why did you use sudo ?
>> This appears to be completely unnecessary.
>>
>> >
>> > When I first finished the installation, the first running is very normal. 
>> > However when the second time I add "alias sage='~/SageMath/sage'" and type 
>> > sage in terminal, it crashed.
>>
>> and does it still work if you don't use the alias?
>>
>> Anyhow, we need a detailed bug report if you like us to look at it
>> ("it crashed" is not enough - we need to see error messages, relevant
>> log files, etc)
>>
>> >
>> > what happened here? Is WSL not so stable or the bugs in Sage 8.7 made the 
>> > crash?
>> >
>> > --
>> > 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.
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/sage-support/CADUebW4jES4_6HJLoVAs9tFwUKBgCuGZ0d_rfJkH80r0OxLwZg%40mail.gmail.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/CAAWYfq279USRuNPPmWCX8XjqEFg1BA8TdcthQJv%3D3yzLCi8rfg%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/CADUebW72vzxz-2hWkPcf%3DKcQjvNceOY_Sv2kooL__JhyD7eh6A%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.

Re: [sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-16 Thread 刘鹏
Q1

> why did you use sudo ?

This appears to be completely unnecessary.


I am sorry for showing that. But now, I can use sagemath with this command
in *.bashrc*
*alias sage=''sudo ~/SageMath/sage'*
I think this is *because* I use sagemath the first time with *sudo*.* I
don't know what happened during I running sagemath the first time.*

Q2

> and does it still work if you don't use the alias?
>
*alias* just replace the command. There is no different between alias the
the original command.

Q3

> Anyhow, we need a detailed bug report if you like us to look at it
> ("it crashed" is not enough - we need to see error messages, relevant
> log files, etc)

I am sorry for my issue not so detailed. I use sagemath to do the
experiment in my bachelor thesis. This PC for doing experiment still in the
lab. I will come back to run the installation again and get the log file.

Thanks.

Dima Pasechnik  于2019年5月15日周三 下午3:14写道:

> On Tue, May 14, 2019 at 10:16 PM 刘鹏  wrote:
> >
> > Dear my friends,
> >
> > After I installed the sagemath 8.7 in Windows Subsystem for Linux Ubuntu
> 18.04, crash happend.
> >
> > (decomperssed ==> move folder to my home directory ==> sudo ./sage).
>
> why did you use sudo ?
> This appears to be completely unnecessary.
>
> >
> > When I first finished the installation, the first running is very
> normal. However when the second time I add "alias sage='~/SageMath/sage'"
> and type sage in terminal, it crashed.
>
> and does it still work if you don't use the alias?
>
> Anyhow, we need a detailed bug report if you like us to look at it
> ("it crashed" is not enough - we need to see error messages, relevant
> log files, etc)
>
> >
> > what happened here? Is WSL not so stable or the bugs in Sage 8.7 made
> the crash?
> >
> > --
> > 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.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CADUebW4jES4_6HJLoVAs9tFwUKBgCuGZ0d_rfJkH80r0OxLwZg%40mail.gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq279USRuNPPmWCX8XjqEFg1BA8TdcthQJv%3D3yzLCi8rfg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CADUebW72vzxz-2hWkPcf%3DKcQjvNceOY_Sv2kooL__JhyD7eh6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-15 Thread Dima Pasechnik
On Tue, May 14, 2019 at 10:16 PM 刘鹏  wrote:
>
> Dear my friends,
>
> After I installed the sagemath 8.7 in Windows Subsystem for Linux Ubuntu 
> 18.04, crash happend.
>
> (decomperssed ==> move folder to my home directory ==> sudo ./sage).

why did you use sudo ?
This appears to be completely unnecessary.

>
> When I first finished the installation, the first running is very normal. 
> However when the second time I add "alias sage='~/SageMath/sage'" and type 
> sage in terminal, it crashed.

and does it still work if you don't use the alias?

Anyhow, we need a detailed bug report if you like us to look at it
("it crashed" is not enough - we need to see error messages, relevant
log files, etc)

>
> what happened here? Is WSL not so stable or the bugs in Sage 8.7 made the 
> crash?
>
> --
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/CADUebW4jES4_6HJLoVAs9tFwUKBgCuGZ0d_rfJkH80r0OxLwZg%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq279USRuNPPmWCX8XjqEFg1BA8TdcthQJv%3D3yzLCi8rfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[sage-support] SageMath 8.7 crashed in WSL Ubuntu after installation

2019-05-14 Thread 刘鹏
Dear my friends,

After I installed the sagemath 8.7 in Windows Subsystem for Linux Ubuntu
18.04, crash happend.

*(decomperssed ==> move folder to my home directory ==> sudo ./sage).*

When I first finished the installation, the first running is very normal.
However when the second time I add "alias sage='~/SageMath/sage'" and type
sage in terminal, it crashed.

what happened here? Is WSL not so stable or the bugs in Sage 8.7 made the
crash?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CADUebW4jES4_6HJLoVAs9tFwUKBgCuGZ0d_rfJkH80r0OxLwZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
***

IPython post-mortem report

{'commit_hash': u'033ab93c7',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': 
'/home/newton/SageMath/local/lib/python2.7/site-packages/IPython',
 'ipython_version': '5.8.0',
 'os_name': 'posix',
 'platform': 'Linux-4.4.0-17763-Microsoft-x86_64-with-debian-buster-sid',
 'sys_executable': '/home/newton/SageMath/local/bin/python2',
 'sys_platform': 'linux2',
 'sys_version': '2.7.15 (default, Mar 24 2019, 09:25:31) \n[GCC 7.2.0]'}

***



***

Crash traceback:

---
---
OSError  Python 2.7.15: /home/newton/SageMath/local/bin/python2
   Wed May 15 05:05:23 2019
A problem occurred executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.
/home/newton/SageMath/src/bin/sage-ipython in ()
  1 #!/usr/bin/env sage-python23
  2 # -*- coding: utf-8 -*-
  3 """
  4 Sage IPython startup script.
  5 """
  6 
  7 # Display startup banner. Do this before anything else to give the user
  8 # early feedback that Sage is starting.
  9 from sage.misc.banner import banner
 10 banner()
 11 
 12 from sage.repl.interpreter import SageTerminalApp
 13 
 14 app = SageTerminalApp.instance()
---> 15 app.initialize()
global app.initialize = >
 16 app.start()

 in initialize(self=, argv=None)

/home/newton/SageMath/local/lib/python2.7/site-packages/traitlets/config/application.pyc
 in catch_config_error(method=, 
app=, *args=(None,), **kwargs={})
 72 TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR = False
 73 else:
 74 raise ValueError("Unsupported value for environment variable: 
'TRAITLETS_APPLICATION_RAISE_CONFIG_FILE_ERROR' is set to '%s' which is none of 
 {'0', '1', 'false', 'true', ''}."% _envvar )
 75 
 76 
 77 @decorator
 78 def catch_config_error(method, app, *args, **kwargs):
 79 """Method decorator for catching invalid config 
(Trait/ArgumentErrors) during init.
 80 
 81 On a TraitError (generally caused by bad config), this will print 
the trait's
 82 message, and exit the app.
 83 
 84 For use on init methods, to prevent invoking excepthook on invalid 
input.
 85 """
 86 try:
---> 87 return method(app, *args, **kwargs)
method = 
app = 
args = (None,)
kwargs = {}
 88 except (TraitError, ArgumentError) as e:
 89 app.print_help()
 90 app.log.fatal("Bad config encountered during initialization:")
 91 app.log.fatal(str(e))
 92 app.log.debug("Config at the time: %s", app.config)
 93 app.exit(1)
 94 
 95 
 96 class ApplicationError(Exception):
 97 pass
 98 
 99 
100 class LevelFormatter(logging.Formatter):
101 """Formatter with additional `highlevel` record
102 

/home/newton/SageMath/local/lib/python2.7/site-packages/IPython/terminal/ipapp.pyc
 in initialize(self=, argv=None)
301 
302 return super(TerminalIPythonApp, self).parse_command_line(argv)
303 
304 @catch_config_error
305 def initialize(self, argv=None):
306 """Do actions after construct, but before starting the app."""
307 super(TerminalIPythonApp, self).initialize(argv)
308 if self.subapp is not None:
309 # don't bother initializing further, starting subapp
310 return
311 # print