Re: [sage-support] Ubuntu 18.04 binaries for Sage 8.9?

2019-10-18 Thread Isuru Fernando
On Thu, Oct 17, 2019 at 12:31 PM henri.gir...@gmail.com <
henri.gir...@gmail.com> wrote:

> I tried sage conda is not really recent too and didn't work for me on
> ubuntu
>

What was the issue with the conda package? If you report the problems, then
we can fix them.

Isuru

>
> The best is to compile it when possible
>
> Le 17/10/2019 à 18:37, Dima Pasechnik a écrit :
> > On Thu, Oct 17, 2019 at 5:27 PM Tom Flyer  wrote:
> >> I can't find any Ubuntu 18.04 binary for Sage 8.9 on the mirrors listed
> at http://www.sagemath.org/download-linux.html.
> >> Are there any issues in creating these binary?
> > the only issue is the absence of a building host running Ubuntu 18.04
> > in our automatic binaries building system, run by a very small (about
> > 1 person, I gather)
> > team of volunteers...
> > Just build it from source, it should be very easy, or use
> > an alternative package manager (e.g. conda, nix, etc...)
> >
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "sage-support" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-support+unsubscr...@googlegroups.com.
> >> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/14914c8f-d8e2-4b52-97bb-87ebd0d03350%40googlegroups.com
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/d7706b33-717b-808b-279f-ee0ca035d004%40gmail.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CA%2B01voNNgmVX%2BxqWq34LU5Ha7pUQZmxmPamiowasuf%3DB7%2BKMqQ%40mail.gmail.com.


[sage-support] Sage Crash Report

2019-10-18 Thread Sinan Kapçak
*on Linux Ubuntu 19.10 - *
*Sage installed by binaries downloaded by a torrent.*
*Downloaded and extracted and ./sage.*




***

IPython post-mortem report

{'commit_hash': u'033ab93c7',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path':
'/home/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/lib/python2.7/site-packages/IPython',
 'ipython_version': '5.8.0',
 'os_name': 'posix',
 'platform': 'Linux-5.3.0-18-generic-x86_64-with-debian-buster-sid',
 'sys_executable':
'/home/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/bin/python2',
 'sys_platform': 'linux2',
 'sys_version': '2.7.15 (default, Oct  4 2019, 05:22:55) \n[GCC 7.4.0]'}

***



***

Crash traceback:

---
---
ImportErrorPython 2.7.15:
/home/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/bin/python2
   Sat Oct 19 01:57:57 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/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/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/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/lib/python2.7/site-packages/traitlets/config/application.py
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/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/lib/python2.7/site-packages/IPython/terminal/ipapp.py
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 self.extra_args
312 if self.extra_args and not self.something_to_run:
313 self.file_to_run = self.extra_args[0]
314 self.init_path()
315 # create the shell
--> 316 self.init_shell()
self.init_shell = >
317 # and draw the banner
318 self.init_banner()
319 # Now a variety of things that happen after the banner is
printed.
320 self.init_gui_pylab()
321 self.init_extensions()
322 self.init_code()
323
324 def init_shell(self):
325 """initialize the InteractiveShell instance"""
326 # Create an InteractiveShel

Re: [sage-support] Sage Crash Report

2019-10-18 Thread Dima Pasechnik
On Sat, Oct 19, 2019 at 12:07 AM Sinan Kapçak  wrote:
>
> on Linux Ubuntu 19.10 -
> Sage installed by binaries downloaded by a torrent.
> Downloaded and extracted and ./sage.

it would be surprising if a binary for an earlier Ubuntu version
worked on 19.10.
You might need to build Sage from source...

>
>
>
>
> ***
>
> IPython post-mortem report
>
> {'commit_hash': u'033ab93c7',
>  'commit_source': 'installation',
>  'default_encoding': 'UTF-8',
>  'ipython_path': 
> '/home/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/lib/python2.7/site-packages/IPython',
>  'ipython_version': '5.8.0',
>  'os_name': 'posix',
>  'platform': 'Linux-5.3.0-18-generic-x86_64-with-debian-buster-sid',
>  'sys_executable': 
> '/home/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/bin/python2',
>  'sys_platform': 'linux2',
>  'sys_version': '2.7.15 (default, Oct  4 2019, 05:22:55) \n[GCC 7.4.0]'}
>
> ***
>
>
>
> ***
>
> Crash traceback:
>
> ---
> ---
> ImportErrorPython 2.7.15: 
> /home/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/bin/python2
>Sat Oct 19 01:57:57 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/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/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/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/lib/python2.7/site-packages/traitlets/config/application.py
>  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/kapcak/Documents/Sage89/sage-8.9-Ubuntu_16.04-x86_64/SageMath/local/lib/python2.7/site-packages/IPython/terminal/ipapp.py
>  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 self.extra_args
> 312 if self.extra_args and not self.something_to_run:
> 313 self.file_to_run = self.extra_args[0]
> 314 self.init_path()
> 315 # create the shell
> --> 316 self.init_shell()
>

[sage-support] Transformation Matrix from Echelon Form Reduction Over Finite Fields

2019-10-18 Thread Boyan Kostadinov
Dear SageMath Experts,

I need your help! 

I really need the transformation matrix from the echelon reduction over 
finite fields but I found in the documentation the following cry-inducing 
statement: 

The matrix library used for Z/pZ/p-matrices does not return the 
transformation matrix, so the transformation option is ignored

Link: 
http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/matrix2.html#sage.matrix.matrix2.Matrix.echelon_form
 

More specifically, the call: M.echelon_form(transformation=True) does not 
return the transformation matrix T when M is over a finite field, so that 
T*M=E, where E is the echelon form. T is just the product of the elementary 
matrices, which perform the reducing row operations. 

This is very disappointing! How can that be? Why is that? Apparently the 
Maple and Mathematica algorithms over finite fields do return the 
transformation matrix, so why can't SageMath do that? Why? 

Is there any way around to get the transformation matrix over finite 
fields? 

Any advice would be much appreciated. 

Thank you in advance for your help!

Best,
Boyan

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c7bf408e-a567-451a-9d6f-c83d41d10e5e%40googlegroups.com.


[sage-support] Can I get the transformation matrix for echelon form reduction over a finite field?

2019-10-18 Thread Boyan Kostadinov
I want to get the transformation matrix from the echelon form reduction 
over finite fields but I found in the SageMath documentation the following 
statement: 

*The matrix library used for Z/pZ/p-matrices does not return the 
transformation matrix, so the transformation option is ignored*

Link: 
http://doc.sagemath.org/html/en/reference/matrices/sage/matrix/matrix2.html#sage.matrix.matrix2.Matrix.echelon_form
 

More specifically, the call:  *M.echelon_form(transformation=True**) *does 
not return the transformation matrix T when M is over a finite field, only 
the echelon matrix E; T is such that we have T*M=E, so T is just the 
product of the elementary matrices, which perform the reducing row 
operations. 

Is there any workaround to get the transformation matrix T over a finite 
field? Can I get the transformation matrix T over ZZ and then reduce it 
over the finite field?

Any advice would be much appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/2e5a18f6-d022-4d67-ae09-c7825e5abb4c%40googlegroups.com.