[sage-support] Re: Debian Etch: Error trying to plot
Hmm... could you paste the whole traceback? Here it is: --- ValueErrorTraceback (most recent call last) /home/jakubi/.sage/ipython console in module() /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/IPython/Prompts.py in __call__(self, arg) 533 534 # and now call a possibly user-defined print mechanism -- 535 manipulated_val = self.display(arg) 536 537 # user display hooks can change the variable to be stored in /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/IPython/Prompts.py in _display(self, arg) 559 return IPython.generics.result_display(arg) 560 except TryNext: -- 561 return self.shell.hooks.result_display(arg) 562 563 # Assign the default display method: /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/IPython/hooks.py in __call__(self, *args, **kw) 132 #print prio,prio,cmd,cmd #dbg 133 try: -- 134 ret = cmd(*args, **kw) 135 return ret 136 except ipapi.TryNext, exc: /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/IPython/hooks.py in result_display(self, arg) 160 161 if self.rc.pprint: -- 162 out = pformat(arg) 163 if '\n' in out: 164 # So that multi-line strings line up with the left column of /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python/ pprint.py in pformat(self, object) 109 def pformat(self, object): 110 sio = _StringIO() -- 111 self._format(object, sio, 0, 0, {}, 0) 112 return sio.getvalue() 113 /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python/ pprint.py in _format(self, object, stream, indent, allowance, context, level) 127 self._readable = False 128 return -- 129 rep = self._repr(object, context, level - 1) 130 typ = _type(object) 131 sepLines = _len(rep) (self._width - 1 - indent - allowance) /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python/ pprint.py in _repr(self, object, context, level) 193 def _repr(self, object, context, level): 194 repr, readable, recursive = self.format(object, context.copy(), -- 195 self._depth, level) 196 if not readable: 197 self._readable = False /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python/ pprint.py in format(self, object, context, maxlevels, level) 205 and whether the object represents a recursive construct. 206 -- 207 return _safe_repr(object, context, maxlevels, level) 208 209 /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python/ pprint.py in _safe_repr(object, context, maxlevels, level) 290 return format % _commajoin(components), readable, recursive 291 -- 292 rep = repr(object) 293 return rep, (rep and not rep.startswith('')), False 294 /home/jakubi/.sage/sage_object.pyx in sage.structure.sage_object.SageObject.__repr__ (sage/structure/ sage_object.c:618)() /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/sage/plot/plot.py in _repr_(self) 736 737 if SHOW_DEFAULT: -- 738 self.show() 739 return '' 740 else: /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/sage/plot/plot.py in show(self, xmin, xmax, ymin, ymax, figsize, filename, dpi, axes, axes_labels, frame, fontsize, aspect_ratio) 1250 self.save(filename, xmin, xmax, ymin, ymax, figsize, dpi=dpi, axes=axes, 1251 frame=frame, fontsize=fontsize, - 1252 aspect_ratio=aspect_ratio) 1253 os.system('%s %s 2/dev/null 1/dev/null '% (sage.misc.viewer.browser(), filename)) 1254 /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/sage/plot/plot.py in save(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, savenow, dpi, axes, axes_labels, fontsize, frame, verify, aspect_ratio) 1344 axes = self.__show_axes 1345 - 1346 from matplotlib.figure import Figure 1347 if filename is None: 1348 filename = sage.misc.misc.graphics_filename() /usr/local/sage-3.0.2-debian32-intelx86-i686-Linux/local/lib/python2.5/ site-packages/matplotlib/figure.py in module() 8 import artist 9 from artist import Artist --- 10 from axes import Axes, Subplot, PolarSubplot, PolarAxes 11 from cbook import flatten, allequal, Stack, iterable, dedent 12 import _image
[sage-support] Re: NTL installation
Hello, What type of machine are you running this on? --Mike On Jul 6, 6:37 pm, Wim Verleyen [EMAIL PROTECTED] wrote: Hello, ranlib ntl.a make[2]: Leaving directory `/home/purplehat/tmp/sage-3.0.3/spkg/build/ ntl-5.4.2.p3/src/src' make[2]: Entering directory `/home/purplehat/tmp/sage-3.0.3/spkg/build/ ntl-5.4.2.p3/src/src' mkdir -p -m 755 /home/purplehat/tmp/sage-3.0.3/local/lib cp -p ntl.a /home/purplehat/tmp/sage-3.0.3/local/lib/libntl.a cp: preserving times for `/home/purplehat/tmp/sage-3.0.3/local/lib/ libntl.a': Function not implemented make[2]: *** [install] Error 1 make[2]: Leaving directory `/home/purplehat/tmp/sage-3.0.3/spkg/build/ ntl-5.4.2.p3/src/src' Failed building install of NTL real 10m10.884s user 8m9.891s sys 0m20.101s sage: An error occurred while installing ntl-5.4.2.p3 Please email sage-develhttp://groups.google.com/group/sage-devel explaining the problem and send the relevant part of of /home/purplehat/tmp/sage-3.0.3/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem, yourself *don't* just cd to /home/purplehat/tmp/sage-3.0.3/spkg/build/ntl-5.4.2.p3 and type 'make'. Instead type /home/purplehat/tmp/sage-3.0.3/sage -sh in order to set all environment variables correctly, then cd to /home/purplehat/tmp/sage-3.0.3/spkg/build/ntl-5.4.2.p3 (When you are done debugging, you can type exit to leave the subshell.) make[1]: *** [installed/ntl-5.4.2.p3] Error 1 make[1]: Leaving directory `/home/purplehat/tmp/sage-3.0.3/spkg' real 10m12.043s user 8m10.603s sys 0m20.357s Has somebody any idea, how to tackle this problem? Thx in advance, W --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: solve doesn't always solve
Hi Stan, I don't think there is any other way to solve an equation such as that in Sage. You can do it using Sage's interface to Maple (if you have it installed / access to it), but it's not as clean as it should be due to bug #3610. sage: var('wcnew,epsln,ysnew,delyu,sumsunew,sunlayersnew,delyu,nlayers,ysnew,cz,zr'); sage: eq = wcnew==epsln*(ysnew + ((delyu*sumsunew + sunlayersnew*(delyu*(1 - nlayers) + sqrt((cz - ysnew)*(cz - zr*sqrt((cz - ysnew)*(cz - zr)))/(cz - zr)) sage: meq = maple(%s = %s%(repr(eq.lhs()), repr(eq.rhs( sage: ans = maple.solve(meq, ysnew) sage: ans = sage_eval(str(ans).replace(\n,),globals()) sage: ans ((-delyu*nlayers*sunlayersnew*(sqrt(-4*epsln*sunlayersnew*wcnew*zr + 4*epsln*wcnew*zr + 4*cz*epsln^2*sunlayersnew*zr - 4*cz*epsln^2*zr + 4*cz*epsln*sunlayersnew*wcnew - 4*cz*epsln*wcnew + delyu^2*epsln^2*nlayers^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sunlayersnew^2 + delyu^2*epsln^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sumsunew*sunlayersnew + 2*delyu^2*epsln^2*sumsunew*sunlayersnew - 4*cz^2*epsln^2*sunlayersnew + delyu^2*epsln^2*sumsunew^2 + 4*cz^2*epsln^2) + delyu*epsln*nlayers*sunlayersnew - delyu*epsln*sunlayersnew - delyu*epsln*sumsunew)/(2*(sunlayersnew - 1)) + delyu*sunlayersnew*(sqrt(-4*epsln*sunlayersnew*wcnew*zr + 4*epsln*wcnew*zr + 4*cz*epsln^2*sunlayersnew*zr - 4*cz*epsln^2*zr + 4*cz*epsln*sunlayersnew*wcnew - 4*cz*epsln*wcnew + delyu^2*epsln^2*nlayers^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sunlayersnew^2 + delyu^2*epsln^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sumsunew*sunlayersnew + 2*delyu^2*epsln^2*sumsunew*sunlayersnew - 4*cz^2*epsln^2*sunlayersnew + delyu^2*epsln^2*sumsunew^2 + 4*cz^2*epsln^2) + delyu*epsln*nlayers*sunlayersnew - delyu*epsln*sunlayersnew - delyu*epsln*sumsunew)/(2*(sunlayersnew - 1)) + delyu*sumsunew*(sqrt(-4*epsln*sunlayersnew*wcnew*zr + 4*epsln*wcnew*zr + 4*cz*epsln^2*sunlayersnew*zr - 4*cz*epsln^2*zr + 4*cz*epsln*sunlayersnew*wcnew - 4*cz*epsln*wcnew + delyu^2*epsln^2*nlayers^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sunlayersnew^2 + delyu^2*epsln^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sumsunew*sunlayersnew + 2*delyu^2*epsln^2*sumsunew*sunlayersnew - 4*cz^2*epsln^2*sunlayersnew + delyu^2*epsln^2*sumsunew^2 + 4*cz^2*epsln^2) + delyu*epsln*nlayers*sunlayersnew - delyu*epsln*sunlayersnew - delyu*epsln*sumsunew)/(2*(sunlayersnew - 1)) + wcnew*zr - cz*epsln*sunlayersnew*zr - cz*wcnew + cz^2*epsln*sunlayersnew)/ (epsln*(sunlayersnew - 1)*(cz - zr)), (-delyu*nlayers*sunlayersnew*(-sqrt(-4*epsln*sunlayersnew*wcnew*zr + 4*epsln*wcnew*zr + 4*cz*epsln^2*sunlayersnew*zr - 4*cz*epsln^2*zr + 4*cz*epsln*sunlayersnew*wcnew - 4*cz*epsln*wcnew + delyu^2*epsln^2*nlayers^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sunlayersnew^2 + delyu^2*epsln^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sumsunew*sunlayersnew + 2*delyu^2*epsln^2*sumsunew*sunlayersnew - 4*cz^2*epsln^2*sunlayersnew + delyu^2*epsln^2*sumsunew^2 + 4*cz^2*epsln^2) + delyu*epsln*nlayers*sunlayersnew - delyu*epsln*sunlayersnew - delyu*epsln*sumsunew)/(2*(sunlayersnew - 1)) + delyu*sunlayersnew*(- sqrt(-4*epsln*sunlayersnew*wcnew*zr + 4*epsln*wcnew*zr + 4*cz*epsln^2*sunlayersnew*zr - 4*cz*epsln^2*zr + 4*cz*epsln*sunlayersnew*wcnew - 4*cz*epsln*wcnew + delyu^2*epsln^2*nlayers^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sunlayersnew^2 + delyu^2*epsln^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sumsunew*sunlayersnew + 2*delyu^2*epsln^2*sumsunew*sunlayersnew - 4*cz^2*epsln^2*sunlayersnew + delyu^2*epsln^2*sumsunew^2 + 4*cz^2*epsln^2) + delyu*epsln*nlayers*sunlayersnew - delyu*epsln*sunlayersnew - delyu*epsln*sumsunew)/(2*(sunlayersnew - 1)) + delyu*sumsunew*(- sqrt(-4*epsln*sunlayersnew*wcnew*zr + 4*epsln*wcnew*zr + 4*cz*epsln^2*sunlayersnew*zr - 4*cz*epsln^2*zr + 4*cz*epsln*sunlayersnew*wcnew - 4*cz*epsln*wcnew + delyu^2*epsln^2*nlayers^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sunlayersnew^2 + delyu^2*epsln^2*sunlayersnew^2 - 2*delyu^2*epsln^2*nlayers*sumsunew*sunlayersnew + 2*delyu^2*epsln^2*sumsunew*sunlayersnew - 4*cz^2*epsln^2*sunlayersnew + delyu^2*epsln^2*sumsunew^2 + 4*cz^2*epsln^2) + delyu*epsln*nlayers*sunlayersnew - delyu*epsln*sunlayersnew - delyu*epsln*sumsunew)/(2*(sunlayersnew - 1)) + wcnew*zr - cz*epsln*sunlayersnew*zr - cz*wcnew + cz^2*epsln*sunlayersnew)/ (epsln*(sunlayersnew - 1)*(cz - zr))) --Mike --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problems building matplotlib on Ubuntu 8.04
Hi Adam, Sorry for the delayed reply. I'm not exactly sure what's going on in your case, but I'll ask Michael Abshoff about it since he probably has a much better idea of what is going on. --Mike On Jul 3, 1:33 pm, Adam Webb [EMAIL PROTECTED] wrote: Hi all, I have been having problems with Matplotlib on Ubuntu 8.04 (AMD-64). Specifically, I am having trouble with the backends. If I build Matplotlib separately I get the following for information about backends. OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.15beta5 Tkinter: no * Tkinter present, but header files are not found. * You may need to install development packages. wxPython: 2.6.3.2 Gtk+: gtk+: 2.12.9, glib: 2.16.3, pygtk: 2.12.1, pygobject: 2.14.1 Qt: no Qt4: no Cairo: 1.4.0 In fact, I do have Tcl/Tk headers but they are not found. This is a known issue:http://www.mail-archive.com/[EMAIL PROTECTED]/ms... However, when I look into the install.log file of Sage I find: OPTIONAL BACKEND DEPENDENCIES libpng: 1.2.15beta5 Tkinter: no * Tkinter present, but header files are not found. * You may need to install development packages. wxPython: no * wxPython not found Gtk+: no * Building for Gtk+ requires pygtk; you must be able * to import gtk in your build/install environment Qt: no Qt4: no Cairo: no It can not find anything and so does not build any and so various tests fail. I also tried using sage -python to build Matplotlib with the same result (no backends found). I was hoping to use another backend until a fix for the tcl/tk problem is found. Any ideas would be welcome. Cheers, Adam --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] compilation problem with sage 3.0.3 on mac
Hi I suppose this is more a bug report than a request for help, but if you have any suggestions please let me know. I can't compile sage 3.0.3 on mac. System is OS X 10.5.3; 64 bit Intel. fink is installed, and therefore non-system versions of some programs are in the path (e.g. possibly python, make). My install log is at: https://alliance.anu.edu.au/access/content/group/hpv/public/install.log (please let me know if you have a problem with the link, the website sucks) make hangs at the last step (it didn't continue when I left it overnight). The problem originally occurred when I ran sage -upgrade. So I downloaded the source and had the same problem. I am going to see if I can compile 3.0.2 now. D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: compilation problem with sage 3.0.3 on mac
On Tue, Jul 8, 2008 at 6:17 PM, David Philp [EMAIL PROTECTED] wrote: Hi I suppose this is more a bug report than a request for help, but if you have any suggestions please let me know. I can't compile sage 3.0.3 on mac. System is OS X 10.5.3; 64 bit Intel. fink is installed, and therefore non-system versions of some programs are in the path (e.g. possibly python, make). Try building from scratch without fink. You can temporarily disable fink by moving /sw to /sw.old then re-enable it later by moving /sw.old back to /sw. You might want to be sure to logout and login after moving /sw to /sw.old. William My install log is at: https://alliance.anu.edu.au/access/content/group/hpv/public/install.log (please let me know if you have a problem with the link, the website sucks) make hangs at the last step (it didn't continue when I left it overnight). The problem originally occurred when I ran sage -upgrade. So I downloaded the source and had the same problem. I am going to see if I can compile 3.0.2 now. D -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: compilation problem with sage 3.0.3 on mac
On 09/07/2008, at 11:21 AM, William Stein wrote: On Tue, Jul 8, 2008 at 6:17 PM, David Philp [EMAIL PROTECTED] wrote: Hi I suppose this is more a bug report than a request for help, but if you have any suggestions please let me know. I can't compile sage 3.0.3 on mac. System is OS X 10.5.3; 64 bit Intel. fink is installed, and therefore non-system versions of some programs are in the path (e.g. possibly python, make). Try building from scratch without fink. You can temporarily disable fink by moving /sw to /sw.old That worked, thanks. D --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] How do I import module from windows
Hi I'm very new to Sage, but I've worked a bit with python, numpy etc. I'm using the VMware version under windows XP. I'm trying to access existing work on my windows hard drive and on a server. I've figured how to read and write data from text files outside the vmware system, but I'm still working on accessing existing python code. Say I've got a module test.py in c:\mywork\ , how do import it into a sage notebook. I guess its got something to do with a PYTHONPATH variable somewhere, but where and how? thanks E --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I import module from windows
On Tue, Jul 8, 2008 at 6:55 PM, eleanor [EMAIL PROTECTED] wrote: Hi I'm very new to Sage, but I've worked a bit with python, numpy etc. I'm using the VMware version under windows XP. I'm trying to access existing work on my windows hard drive and on a server. I've figured how to read and write data from text files outside the vmware system, but I'm still working on accessing existing python code. Say I've got a module test.py in c:\mywork\ , how do import it into a sage notebook. I guess its got something to do with a PYTHONPATH variable somewhere, but where and how? This is not possible. You won't be able to do this until we have a native port of Sage to windows. We are working on one; it is one of the top priorities for this year. The Sage distribution is a total of 5 million lines of code, so this is a fairly nontrivial undertaking. In the meantime you could copy your module test.py into the vmware virtual machine and import it there (i.e., it would be in the virtual machine's linux filesystem). -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---