[sage-support] Re: Sage Crash Report

2016-11-07 Thread Afonso Henriques Silva Leite
Ok, sorry for my poor message. I installed libgfortran and that solved the 
problem. Thanks.

Em domingo, 6 de novembro de 2016 12:01:34 UTC-3, Afonso Henriques Silva 
Leite escreveu:
>
> Please, I need some help here!
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Sage Crash Report

2016-11-06 Thread Afonso Henriques Silva Leite
Please, I need some help here!

-- 
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.
For more options, visit https://groups.google.com/d/optout.
***

IPython post-mortem report

{'commit_hash': u'1ba246d',
 'commit_source': 'installation',
 'default_encoding': 'UTF-8',
 'ipython_path': 
'/home/lenovo/Documentos/SageMath/local/lib/python2.7/site-packages/IPython',
 'ipython_version': '5.0.0',
 'os_name': 'posix',
 'platform': 'Linux-4.4.0-45-generic-x86_64-with-debian-stretch-sid',
 'sys_executable': '/home/lenovo/Documentos/SageMath/local/bin/python',
 'sys_platform': 'linux2',
 'sys_version': '2.7.10 (default, Oct 19 2016, 19:45:17) \n[GCC 5.4.0 
20160609]'}

***



***

Crash traceback:

---
---
ImportErrorPython 2.7.10: /home/lenovo/Documentos/SageMath/local/bin/python
   Sun Nov  6 11:31:00 2016
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/lenovo/Documentos/SageMath/src/bin/sage-ipython in ()
  1 #!/usr/bin/env python
  2 # -*- coding: utf-8 -*-
  3 """
  4 Sage IPython startup script.
  5 """
  6 
  7 from sage.repl.interpreter import SageTerminalApp
  8 
  9 app = SageTerminalApp.instance()
---> 10 app.initialize()
global app.initialize = >
 11 app.start()

 in initialize(self=, argv=None)

/home/lenovo/Documentos/SageMath/local/lib/python2.7/site-packages/traitlets/config/application.py
 in catch_config_error(method=, 
app=, *args=(None,), **kwargs={})
 59 
 60 
#-
 61 # Application class
 62 
#-
 63 
 64 @decorator
 65 def catch_config_error(method, app, *args, **kwargs):
 66 """Method decorator for catching invalid config 
(Trait/ArgumentErrors) during init.
 67 
 68 On a TraitError (generally caused by bad config), this will print 
the trait's
 69 message, and exit the app.
 70 
 71 For use on init methods, to prevent invoking excepthook on invalid 
input.
 72 """
 73 try:
---> 74 return method(app, *args, **kwargs)
method = 
app = 
args = (None,)
kwargs = {}
 75 except (TraitError, ArgumentError) as e:
 76 app.print_help()
 77 app.log.fatal("Bad config encountered during initialization:")
 78 app.log.fatal(str(e))
 79 app.log.debug("Config at the time: %s", app.config)
 80 app.exit(1)
 81 
 82 
 83 class ApplicationError(Exception):
 84 pass
 85 
 86 
 87 class LevelFormatter(logging.Formatter):
 88 """Formatter with additional `highlevel` record
 89 

/home/lenovo/Documentos/SageMath/local/lib/python2.7/site-packages/IPython/terminal/ipapp.py
 in initialize(self=, argv=None)
294 
295 return super(TerminalIPythonApp, self).parse_command_line(argv)
296 
297 @catch_config_error
298 def initialize(self, argv=None):
299 """Do actions after construct, but before starting the app."""
300 super(TerminalIPythonApp, self).initialize(argv)
301 if self.subapp is not None:
302 # don't bother initializing further, starting subapp
303 return
304 # print self.extra_args
305 if self.extra_args and not self.something_to_run:
306 self.file_to_run = self.extra_args[0]
307 self.init_path()
308 # create the shell
--> 309 self.init_shell()
self.init_shell = >
310 # and draw the banner
311 self.init_banner()
312 # Now a variety of things that happen after the banner is 
printed.
313 self.init_gui_pylab()
314 self.init_extensions()
315 self.init_code()
316 
317 def init_shell(self):
318 """initialize the InteractiveShell instance"""
319 # Create an InteractiveShell instance.
320 # shell.display_banner should always be False for the terminal
321 # based app,

[sage-support] upload .sobj files

2016-04-05 Thread Afonso Henriques Silva Leite
Hi guys! Is there a way to upload .sobj files in sagecloud?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: help with matrix

2009-09-22 Thread Afonso Henriques Silva Leite

Thanks, Jason!!

On Mon, 2009-09-21 at 17:15 -0500, Jason Grout wrote:
> Afonso Henriques Silva Leite wrote:
> > I am studying documentation, but also am in a hurry! I need to create a
> > 1000x2 matrix, and apply a function to the second column. It is possible
> > to do this? I think map function is a good candidate to do that but
> > didn't find out a good example of it...
> > Thanks in advance.
> > 
> 
> One way:
> 
> sage: a=matrix(5,2,range(10))
> sage: a
> 
> [0 1]
> [2 3]
> [4 5]
> [6 7]
> [8 9]
> sage: a[:,1]=[[i^2] for i in a[:,1].list()]
> sage: a
> 
> [ 0  1]
> [ 2  9]
> [ 4 25]
> [ 6 49]
> [ 8 81]
> 
> Or you could just use a for loop...
> 
> Jason
> 
> 
> > 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] help with matrix

2009-09-21 Thread Afonso Henriques Silva Leite

I am studying documentation, but also am in a hurry! I need to create a
1000x2 matrix, and apply a function to the second column. It is possible
to do this? I think map function is a good candidate to do that but
didn't find out a good example of it...
Thanks in advance.


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: generating and exporting .dat file

2009-09-06 Thread Afonso Henriques Silva Leite

Thanks, I will use matplotlib as I get more experience with sage.   

On Sat, 2009-09-05 at 17:58 -0500, Jason Grout wrote:
> asdfAfonso Henriques Silva Leite wrote:
> > I forgot to send you the result: the .dat file!!!
> > It is attached. One of which I generated with Mathematica.
> > And the corresponding graphic.
> 
> 
> If that is the sort of plot you are after, would it be easier to just 
> generate it directly from Sage?  Because Sage includes matplotlib, you 
> can easily generate any plot like these from sage:
> 
> http://matplotlib.sourceforge.net/gallery.html
> 
> 
> For example, this plot looks similar to yours:
> 
> http://matplotlib.sourceforge.net/examples/pylab_examples/legend_demo2.html
> 
> You can just paste the code below that plot directly into Sage to get 
> the plot--just replace the "show()" call with a call to "savefig".  Here 
> is an example of that plot:
> 
> http://sagenb.org/home/pub/786/
> 
> You can also easily export data, like Robert showed.  There are other 
> ways that I consider even easier to export the data, but I don't have 
> time right now to type up an example.  If you are interested, let us know.
> 
> Thanks,
> 
> Jason
> 
> 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: generating and exporting .dat file

2009-09-05 Thread Afonso Henriques Silva Leite

Sorry for the lack of information, and thanks for this great answer!!
That's exactly what I need!!

On Sat, 2009-09-05 at 13:48 -0700, Robert Bradshaw wrote:
> Easy.
> 
> sage: M = random_matrix(RDF, 10, 2) # get your data
> sage: s = M.str().replace('[','').replace(']','')
> sage: print s # is this what you want?
> 0.103609743105 -0.00797973769955
> -0.96222133551   -0.341208831103
>-0.904012926167-0.42972921542
>-0.6744275756920.338249515207
> 0.497150438999   -0.988927899669
>-0.578398516046   -0.192384884874
>   0.00861554346264   -0.320551899607
>-0.552324001368   -0.913964831699
>   -0.0933155483849  -0.0751049307458
>-0.807644562118   -0.282818538055
> sage: open("foo.txt", "w").write(s)
> 
> That's it.
> 
> sage: !cat foo.txt
> 0.103609743105 -0.00797973769955
> -0.96222133551   -0.341208831103
>-0.904012926167-0.42972921542
>-0.6744275756920.338249515207
> 0.497150438999   -0.988927899669
>-0.578398516046   -0.192384884874
>   0.00861554346264   -0.320551899607
>-0.552324001368   -0.913964831699
>   -0.0933155483849  -0.0751049307458
>-0.807644562118   -0.282818538055
> 
> 
> On Sep 5, 2009, at 1:36 PM, Afonso Henriques Silva Leite wrote:
> 
> > I forgot to send you the result: the .dat file!!!
> > It is attached. One of which I generated with Mathematica.
> > And the corresponding graphic.
> >
> > On Fri, 2009-09-04 at 15:42 -0500, Jason Grout wrote:
> >> Afonso Henriques Silva Leite wrote:
> >>> Hi, everyone!!!
> >>> Does anybody had to generate and export a .dat file to create a  
> >>> graphic
> >>> in another program like xmgrace, to use a more appropriate  
> >>> program to
> >>> make graphics?
> >>> I used to do this in Mathematica: with a "for" loop to generate a  
> >>> matrix
> >>> with the abscissa and coordinate points as elements, and then  
> >>> printed it
> >>> as a .dat file.
> >>> It's possible to do something like this in sage?
> >>
> >>
> >> This is most likely very easy to do.
> >>
> >> Can you give a more specific example?  Maybe a function and an  
> >> example
> >> .dat file?  (and maybe an example of the graph---maybe it's already
> >> possible to generate such a graph in Sage).
> >>
> >> Thanks,
> >>
> >> Jason
> >>
> >>
> >>>
> >
> > >
> > 
> 
> 
> > 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] generating and exporting .dat file

2009-09-04 Thread Afonso Henriques Silva Leite

Hi, everyone!!!
Does anybody had to generate and export a .dat file to create a graphic
in another program like xmgrace, to use a more appropriate program to
make graphics?
I used to do this in Mathematica: with a "for" loop to generate a matrix
with the abscissa and coordinate points as elements, and then printed it
as a .dat file.
It's possible to do something like this in sage?


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: please, help on installation

2009-09-01 Thread Afonso Henriques Silva Leite

Ok mr. Nguyen. I will try it. Thank you.

On Wed, 2009-09-02 at 10:21 +1000, Minh Nguyen wrote:
> Hi Afonso,
> 
> On Wed, Sep 2, 2009 at 5:18 AM, Afonso Henriques Silva
> Leite wrote:
> >
> > I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my
> > desktop and untar it there. My experience with linux is a little
> > limited.
> > The readme file says that if a binary file was downloaded, it was only
> > necessary to print ./sage command to get things ok, but it wasn't that
> > easy.
> > When I use this command, i get
> > --
> > | Sage Version 4.1.1, Release Date: 2009-08-14   |
> > | Type notebook() for the GUI, and license() for information.|
> > --
> > /home/portuga/Desktop/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage-sage:
> >  line 199:  7558 Illegal instruction sage-ipython "$@" -i
> 
> This usually comes up because MPIR and ATLAS were built on a machine
> different from yours. David recommended compiling everything from
> source, which can take a few hours depending on your hardware. Another
> option is to recompile only MPIR and ATLAS. You can do this:
> 
> $ cd /home/portuga/Desktop/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/
> $ ./sage -f mpir
> $ ./sage -f atlas
> 
> This would take some time to complete, especially because ATLAS can
> take a long time to tune itself for your specific hardware.
> 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: please, help on installation

2009-09-01 Thread Afonso Henriques Silva Leite

Thanks in advance! I will try this tomorrow.

On Tue, 2009-09-01 at 17:23 -0400, David Joyner wrote:
> On Tue, Sep 1, 2009 at 3:18 PM, Afonso Henriques Silva
> Leite wrote:
> >
> > I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my
> > desktop and untar it there. My experience with linux is a little
> > limited.
> 
> ...
> 
> > I need a lot more information than these read me files...
> >
> 
> Can you compile from source using the instructions at
> http://www.sagemath.org/doc/installation/source.html ?
> 
> 
> >
> > >
> >
> 
> > 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] please, help on installation

2009-09-01 Thread Afonso Henriques Silva Leite

I downloaded sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz to my
desktop and untar it there. My experience with linux is a little
limited.
The readme file says that if a binary file was downloaded, it was only
necessary to print ./sage command to get things ok, but it wasn't that
easy.
When I use this command, i get
--
| Sage Version 4.1.1, Release Date: 2009-08-14   |
| Type notebook() for the GUI, and license() for information.|
--
/home/portuga/Desktop/sage/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage-sage:
 line 199:  7558 Illegal instruction sage-ipython "$@" -i

I tried then a make command, but didn't work out either.
I need a lot more information than these read me files...


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---