ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 22 Aug 2017 15:49:01 -0500Should I / how should I make an optional sage package?https://ask.sagemath.org/question/38621/should-i-how-should-i-make-an-optional-sage-package/I've written some code in sage that implements the strata algebra of the moduli spaces of curves as a sage ring. I hope it will be useful to others. I think that a good way to share it would be to make it an optional, (or perhaps experimental?) sage package.
Is this a good thing to do?
If so, what are the steps?
My code is all in .sage files, but I could easily turn it into .py files if that is better.
paragonTue, 22 Aug 2017 15:49:01 -0500https://ask.sagemath.org/question/38621/How to unpack .spkg fileshttps://ask.sagemath.org/question/9854/how-to-unpack-spkg-files/This is probably an extremely basic question, but I can't figure it out.
I got the Sage source code from a .tar file from the download link here: http://boxen.math.washington.edu/home/sagemath/sage-mirror/src/index.html
I unpacked the tar file using 7-zip and got the directory containing some files, the .hg folder, and the spkg folder. I am told that .spkg is just a tar file, but I can't seem to open them up. Could someone walk me through the steps for Windows?
ThanksSwitchTue, 26 Feb 2013 15:32:59 -0600https://ask.sagemath.org/question/9854/update scipy to 0.12 from 0.11 [solved]https://ask.sagemath.org/question/10092/update-scipy-to-012-from-011-solved/Hi, I have sage-5.8-linux-64bit-red_hat_enterprise_linux_server_release_5.9_tikanga-x86_64-Linux installed on CentOS release 5.9 (Final). I installed via the binary. Is there any way to update the scipy installation to 0.12? I tried downloading the scipy-0.11 spkg and replacing the v11 source with the v12 source, and then doing sage -i <path to package> but it didn't work. Any suggestions? I really need to the new Welch functionality in scipy.signals
ThanksNoahMon, 06 May 2013 09:53:32 -0500https://ask.sagemath.org/question/10092/Trying to re-install pythonhttps://ask.sagemath.org/question/9028/trying-to-re-install-python/I am trying to re-install the sage python dist. Using command "sudo sage -f python-2.7.2.p4". I keep getting the error message 'this does not look like a tar archive Exiting with failure status. Error: failed to extract /usr/lib/sage/spkg/standard/python-2.7.2.p4.spkg'. Does anyone know why? I also tried from the sage notebook with the command "install_package('python-2.7.2.p4')" with same result. Running Ubuntu 12.04 in VM VirtualBox. Thanks. sergifSun, 03 Jun 2012 06:11:39 -0500https://ask.sagemath.org/question/9028/Updating scipy in sagehttps://ask.sagemath.org/question/7910/updating-scipy-in-sage/I am trying to use the "griddata" from "scipy.interpolate". However, the scipy present in scipy is version 0.7 and griddata is implemented 0.9 onwards. Is there a way to upgrade scipy to version 0.9 in sage? I understand that 0.9 is a development version but is there a way to upgrade just scipy to development version?ShashankFri, 28 Jan 2011 13:04:39 -0600https://ask.sagemath.org/question/7910/how to execute a self-written python library within an online notebookhttps://ask.sagemath.org/question/8019/how-to-execute-a-self-written-python-library-within-an-online-notebook/Hi everybody,
I would like to know if there's a way of installing a python code in the online version of the notebook?
If this is the case, then how to do that? Write a sage package or just a python module is enough (python setu.py install)?
ThankszeclownTue, 22 Mar 2011 04:53:13 -0500https://ask.sagemath.org/question/8019/"Type Error" when trying to install a packagehttps://ask.sagemath.org/question/7903/type-error-when-trying-to-install-a-package/I'm trying to install the macaulay2 package and I'm getting an error which i can't seem to figure out. Please excuse my newbitude.
------------
sage: install_package(macaulay2)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/opt/sage-4.6.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/data/extcode/macaulay2/user/<ipython console> in <module>()
/opt/sage-4.6.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/misc/package.pyc in install_package(package, force)
129 S,O,E = [], [], []
130 S.extend([P for P in standard_packages()[1] if P.startswith(package)])
--> 131 O.extend([P for P in optional_packages()[1] if P.startswith(package)])
132 E.extend([P for P in experimental_packages()[1] if P.startswith(package)])
133 L = S+O+E
TypeError: expected a character buffer object
-------------
What does this mean? What do I need to do to fix it? tdupu10000Thu, 27 Jan 2011 15:19:23 -0600https://ask.sagemath.org/question/7903/Is the SAGE_SERVER set correctly?https://ask.sagemath.org/question/7901/is-the-sage_server-set-correctly/I'm trying to install the Macaulay experimental package but I can't get sage to talk to the internet. I know I want to install macaulay2-1.1-r7221.p0.spkg
sage: sage.misc.package.experimental_packages()
Using SAGE Server http://www.sagemath.org//packages
http://www.sagemath.org//packages/experimental/list --> /opt/sage-4.6.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/tmp/list
[Errno 13] Permission denied: '/opt/sage-4.6.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/tmp/list'
********************************************************************************
Error contacting http://www.sagemath.org//packages/experimental/list. Try using an alternative server.
For example, from the bash prompt try typing
export SAGE_SERVER=http://sage.scipy.org/sage/
then try again.
********************************************************************************
experimental package list (shown above) appears to be currently not available or corrupted (network error?).
([], [])
SO, I did what the error message suggested and it didn't do anything (edit: the double slash in the url doesn't matter) How do I fix this?
tdupu10000Thu, 27 Jan 2011 12:29:13 -0600https://ask.sagemath.org/question/7901/Writing portable Sage modulehttps://ask.sagemath.org/question/7811/writing-portable-sage-module/I've been working on a bit of code that is of interest to a bunch of people but far too specific to even be considered for inclusion in Sage. Is it possible to package my code as an spkg, put the binary on a server somewhere, and then have interested parties install it by typing `./sage -t url-to-package`? Or should I just stick to distributing my `.sage` files as tarball?
Sorry if this is already in the developer manual! However, when I checked, most of the instructions dealt with preparing an spkg and submitting it to the trac server, which is not what I want to do.jvkerschSun, 12 Dec 2010 15:43:36 -0600https://ask.sagemath.org/question/7811/Latest versions of numpy+scipyhttps://ask.sagemath.org/question/7640/latest-versions-of-numpyscipy/Hi,
I want to use the latest versions of numpy and scipy in Sage, but they are not up-to-date yet.
My question is now: is it possible for me just to build the packages and install them (I guess not, because updating seems to be a time intense procedure)
If someone is working on the Issues for numpy 1.5b and scipy 0.8 can he give me some infos?
(I only found tickets for 1.4 or 1.7.1 which aren't ready yet) I also would provide help, if there is something todo, like testing.
If nobody is working on this perhaps I have to start the tickets myself...maldunThu, 26 Aug 2010 05:12:06 -0500https://ask.sagemath.org/question/7640/how do I install an spkg?https://ask.sagemath.org/question/7603/how-do-i-install-an-spkg/I want to install this spkg:
http://www.sagemath.org/packages/experimental/cadabra-0.115.spkg
After opening the spkg with tar I don't see any installation instructions.Oscar LazoFri, 20 Aug 2010 11:57:20 -0500https://ask.sagemath.org/question/7603/How to test package locally?https://ask.sagemath.org/question/7615/how-to-test-package-locally/Aside from building a package using the developer.pdf instructions and then installing it using the package commands, is there a more direct way to use a custom package locally?
Re-phrased, where do the *.py files in the spkg's src directory end up after being installed, and how can I import them without building a spkg?
Thanks,
=ml=TeamTeamUSAMon, 23 Aug 2010 05:31:13 -0500https://ask.sagemath.org/question/7615/