Ask Your Question

ahausknecht's profile - activity

2021-12-10 20:15:34 +0200 received badge  Famous Question (source)
2021-05-31 18:10:49 +0200 received badge  Popular Question (source)
2019-01-10 23:07:37 +0200 commented answer SageMath 8.5

Your answer solved my problem. I disabled my virus protection software and I was able to install Sage 8.5!

Belated thanks!

2019-01-05 03:24:53 +0200 received badge  Famous Question (source)
2019-01-04 20:17:34 +0200 asked a question SageMath 8.5

Attempting to open 8.5 DMG causes Kernel Panic on MacBook Pro with Mac OS 10.14.2. What should I do?

2018-02-20 17:18:26 +0200 received badge  Notable Question (source)
2017-09-02 10:14:12 +0200 received badge  Notable Question (source)
2016-09-18 10:20:50 +0200 received badge  Famous Question (source)
2016-05-17 15:16:40 +0200 received badge  Notable Question (source)
2015-08-21 05:49:45 +0200 received badge  Taxonomist
2015-07-31 17:45:02 +0200 received badge  Notable Question (source)
2015-01-14 12:17:27 +0200 received badge  Popular Question (source)
2015-01-14 10:15:01 +0200 received badge  Popular Question (source)
2014-08-06 19:02:24 +0200 asked a question How to setup Java and Safari for interactive 3D plots under Mavericks

Hi all,

What is the best way to configure Java and Safari for interactive 3D plots under Mavericks using the JMole Applet?

Regards,

Adam Hausknecht Department of Mathematics UMass Dartmouth

2013-09-14 21:19:01 +0200 received badge  Popular Question (source)
2013-01-23 02:28:56 +0200 received badge  Popular Question (source)
2012-07-13 23:54:43 +0200 received badge  Self-Learner (source)
2012-07-13 12:08:26 +0200 answered a question Sage 5.1: Animate command bug

Hi all,

I tried Ivan Andrus's suggestion (see above) and have discovered that there is a problem with the latest version of ImageMagick. When I downgraded to "ImageMagick-6.7.5" from "ImageMagick-6.7.8" (the current version), the "animate" does work in Sage 5.1 when Sage is started from the Terminal !

It seems that "ImageMagick-6.7.8 was built against a different version of "libpng" than was "ImageMagick-6.7.5" and this is causing the memory errors.

Thanks and regards,

Adam Hausknecht Department of Mathematics UMass Dartmouth

2012-07-13 02:17:21 +0200 asked a question Sage 5.1: Animate command bug

Hi all,

I have installed the both the app version and the command line version of the Sage 5.1 on a MacBook Pro running Lion. Also, I have installed the most recent version of ImageMagick and I've set the environment variables as suggested at the ImageMagick website. I also checked that ImageMagick is working!

Sage's 'animate' command fails when invoking either version of Sage 5.1 from the command line and then entering "notebook" command to start the browser version of Sage.

The example is the first one in the 'Animate Plots' section of the Sage's 'Help':

a = animate([circle((i,i), 1-1/(i+1), hue=i/10) for i in srange(0,2,0.2)], xmin=0,ymin=0,xmax=2,ymax=2,figsize=[2,2]) a.show() # optional -- ImageMagick

Below is the error that is reported by Sage:

============================================================================ convert: memory allocation failed 00000000.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000000.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000001.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000001.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000002.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000002.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000003.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000003.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000004.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000004.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000005.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000005.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000006.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000006.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000007.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000007.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000008.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000008.png' @ error/png.c/ReadPNGImage/3693. convert: memory allocation failed 00000009.png' @ error/png.c/ReadOnePNGImage/2105. convert: corrupt image00000009.png' @ error/png.c/ReadPNGImage/3693. convert: no images defined `/private/var/folders/31/r_2f8ryd5ks7xb80nyrbj2cc0000gn/T/tmpbsWwH9/sage\ 0.gif' @ error/convert.c/ConvertImageCommand/3044. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_2.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("YSA9IGFuaW1hdGUoW2NpcmNsZSgoaSxpKSwgMS0xLyhpKzEpLCBodWU9aS8xMCkgZm9yIGkgaW4gc3JhbmdlKDAsMiwwLjIpXSwgCiAgICAgICAgICAgICAgIHhtaW49MCx5bWluPTAseG1heD0yLHltYXg9MixmaWdzaXplPVsyLDJdKQphLnNob3coKSAjIG9wdGlvbmFsIC0tIEltYWdlTWFnaWNr"),globals())+"\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module>

File "/private/var/folders/31/r_2f8ryd5ks7xb80nyrbj2cc0000gn/T/tmpyUOMOA/___code___.py", line 5, in <module> exec compile(u'a.show() # optional -- ImageMagick File "", line 1, in <module>

File "/Applications/Sage/local/lib/python2.7/site-packages/sage/plot/animate.py", line 457, in show self.gif(delay = delay, iterations = iterations) File "/Applications/Sage/local/lib/python2.7/site-packages/sage/plot/animate.py", line 400, in gif raise OSError, msg OSError: Error: Neither ImageMagick nor ffmpeg appears to be installed. Saving an animation ... (more)

2012-07-11 21:10:02 +0200 answered a question imagemagick/animate problem

Hi all,

I am running the 64-bit app version Sage 5.1 on a MacBookPro with Mac OS Lion.

I installed ImageMagick and verified that it is working. However, Sage "animate" command reported that ImageMagick must not be installed.

I then copied "convert" to "/tmp/sage-mac-app/local/bin" as suggested above and the "animate" command still failed and reported the error shown below:


dyld: Library not loaded: /ImageMagick-6.7.8/lib/libMagickCore.5.dylib Referenced from: /Applications/Sage-5.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/convert Reason: image not found /Applications/Sage-5.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/sage-native-execute: line 8: 574 Trace/BPT trap: 5 "$@" Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_4.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 -*-\n" + _support_.preparse_worksheet_cell(base64.b64decode("YT1hbmltYXRlKFtzaW4oeCArIGZsb2F0KGspKSBmb3IgayBpbiBzcmFuZ2UoMCwyKnBpLDAuMyldLHhtaW49MCwgeG1heD0yKnBpLCBmaWdzaXplPVsyLDFdKQphLnNob3coKQ=="),globals())+"\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module>

File "/private/var/folders/31/r_2f8ryd5ks7xb80nyrbj2cc0000gn/T/tmpS3zCmv/___code___.py", line 4, in <module> exec compile(u'a.show() File "", line 1, in <module>

File "/Applications/Sage-5.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/plot/animate.py", line 457, in show self.gif(delay = delay, iterations = iterations) File "/Applications/Sage-5.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/plot/animate.py", line 400, in gif raise OSError, msg OSError: Error: Neither ImageMagick nor ffmpeg appears to be installed. Saving an animation to a GIF file or displaying an animation requires one of these packages, so please install one of them and try again. See www.imagemagick.org and www.ffmpeg.org for more information. --------------------------------------------------------------*

I also tried to create a link to "convert " in "/tmp/sage-mac-app/local/bin" but this also failed with an error also stating that "ImageMagick" was not installed.

At this point I don't know what else to try! Is there anyway that ImageMagick could be included in the Sage distributions in the future?

Regards

Adam Hausknecht Department of Mathematics UMass Dartmouth

2012-01-09 13:26:52 +0200 answered a question Does or will Sage support the Visual Python module?

Hi all,

Thanks for your responses! Om my MacBook Pro Intel Core I7, I had to change the suggested lines of code to:

import sys sys.path.append('/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages')

import visual

However, when this is evaluated by Sage, I get the error message:


Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_19.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("aW1wb3J0IHN5cwpzeXMucGF0aC5hcHBlbmQoJy9MaWJyYXJ5L0ZyYW1ld29ya3MvUHl0aG9uLmZyYW1ld29yay9WZXJzaW9ucy8yLjcvbGliL3B5dGhvbjIuNy9zaXRlLXBhY2thZ2VzJykKaW1wb3J0IHZpc3VhbA=="),globals())+"\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module>

File "/private/var/folders/45/450VCFXnGmmTeo+fv0sWMk+++TI/-Tmp-/tmp3XxlCy/___code___.py", line 4, in <module> exec compile(u'import visual File "", line 1, in <module>

File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/__init__.py", line 1, in <module> from .visual_all import * File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/visual/visual_all.py", line 1, in <module> from vis import version File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis/__init__.py", line 3, in <module> from .cvisual import (vector, dot, mag, mag2, norm, cross, rotate, ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis/cvisual.so, 2): no suitable image found. Did find:

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vis/cvisual.so: mach-o, but wrong architecture

I take this to mean that the visual python package has been compiled for an architecture that is incompatible with Sage.

Note: I used the Mac OS installer at

                 http://vpython.org/contents/download_mac.html

to install Visual Python as a Mac OS Framework; consequently, vPython is not installed in the same manner as most Python packages!

Regards,

Adam Hausknecht

2012-01-08 17:03:14 +0200 asked a question Does or will Sage support the Visual Python module?

Does or will Sage support the Visual Python (http://vpython.org/) module?

I use it to create 3D examples for several of my courses including Calculus III, Differential Equations, Modern Algebra, Combinatorics and my students use it for projects in both Modern Algebra and Scientific Computation.

Adam Hausknecht, Department of Mathematics, UMass Dartmouth

2011-10-08 14:08:35 +0200 asked a question parametric plotting over regions bounded by two curves in the plane

Hi all,

Maple's parametric plot3d command allows the limits of the second of the two parameters to be functions of the first. For example, to plot the intersection of two circular cylinders enter

c1 := plot3d([cos(t), y, sin(t)], t = 0 .. 2*Pi, y = -sin(t) .. sin(t), color = green)
c2 := plot3d([cos(t), sin(t), z], t = 0 .. 2*Pi, z = -sin(t) .. sin(t), color = blue)
display(c1, c2)

This generates a plot of the intersection region with the portions of the cylinders extending beyond the region removed. Is it possible todo the same with Sage's plot3d commands?

Regards,

Adam Hausknecht

2011-10-08 13:44:11 +0200 answered a question Missing Jmol Images when printing

Thanks Jason for the ticket and how to try the new notebook!

2011-10-06 21:11:31 +0200 received badge  Self-Learner (source)
2011-10-06 21:11:31 +0200 received badge  Teacher (source)
2011-10-06 21:10:32 +0200 received badge  Student (source)
2011-10-06 13:55:43 +0200 answered a question Missing Jmol Images when printing

Hi all

I found a workaround for my problem. I exported all the JMol plot3d images and then copied and pasted them into the same worksheet as jpegs. I then removed all the output from the worksheet leaving the Sage plotting commands and the jpegs. Now when I print and save the output as a PDF all the plots become part of the PDF.

Note: Pasting the images does not seem to work with a recent version of Firefox but does work with Safari.

Perhaps there is away to automatically change all the JMol 3d plots to jpegs in place. It certainly would be a nice feature.

Thanks for the info about other ways to generate 3D plots.

2011-10-05 00:11:17 +0200 asked a question Missing Jmol Images when printing

When I attempt to print a notebook worksheet using either Safari or Chrome containing four plot3D-Jmol images, several are black (not displayed). Is this a memory problem? Is there a way to force the plots to be static images instead of live JMol applets.

Sorry to say this but if this is not fixed I won't be able to use Sage for undergraduate teaching as I must be able to post PDF's of examples easily!

Prof. Adam Hausknecht Department of Mathematics UMass Dartmouth