# tdupu10000's profile - activity

2011-01-27 15:52:30 -0600 answered a question "Type Error" when trying to install a package

I'm retarded again. The correct input was the string

'macaulay2' rather than just macaulay2 so the correct command is actually install_package('macaulay2')

2011-01-27 15:44:06 -0600 marked best answer Is the SAGE_SERVER set correctly?

Given the line

[Errno 13] Permission denied: '/opt/sage-4.6.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/tmp/list'


it seems as if the user you are running Sage as does not have permission to write into that directory. Is /opt/sage-4.6.1-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/tmp owned by root? You should try changing the permissions on that directory or run the command as a user with the appropriate permissions.

2011-01-27 15:19:23 -0600 asked a question "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?

2011-01-27 15:15:16 -0600 answered a question Is the SAGE_SERVER set correctly?

Yeah. I'm retarded. I needed to use sudo. Thanks.

2011-01-27 12:29:13 -0600 asked a question 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?