Hi,

The problem still persists. After following the solution that Jan
provided i got errors; i am posting the last couple of lines:

IOError: ('http error', 407, 'Proxy Authentication Required',
<httplib.HTTPMessage instance at 0x11eb8170>)
Error getting new packages!

On searching some more here i got some solution where Prof. Stein had
mentioned about changing httpd.conf of the apache server. I am unable
to fing out the post now and i think that that was about sage
notebook.

Now i tried to modify httpd.conf as follows but the error persists. I
am not too sure about modifying httpd.conf.

<IfModule mod_proxy.c>
ProxyRequests On
<Proxy *>
   Order deny,allow
   Deny from all
   Allow from sagemath.org
</Proxy>

ProxyVia On

<VirtualHost *:80>
   ServerName sagemath.org
   ProxyPass /home/samrat http://sagemath.org:8000/
   ProxyPassReverse /home/samrat http://sagemath.org:8000/
   ErrorLog /etc/httpd/logs/proxy-server.log
   <Location />
      DefaultType text/html
   </Location>
</VirtualHost>

I have also tried to do something like this:

export http_proxy="http://
username:passw...@my_proxy_server:my_port_number/"

What else do i need to do?

On Sep 13, 11:45 am, Jan Groenewald <j...@aims.ac.za> wrote:
> Hi
>
> On Sun, Sep 12, 2010 at 11:00:21PM -0700, samrat wrote:
> > Yes i do use a proxyserver. I did make some changes in a couple of
> > *.conf files as suggested by the CentOS team but it seems that it is
> > not yet complete for sage to upgrade flawlessly. I'll browse some more
> > and try to rectify the problem. I'll report failures or successes
> > soon.
>
> http://docs.python.org/library/urllib.html:
>
> The urlopen() function works transparently with proxies which do not require 
> authentication. In a Unix or Windows environment, set the http_proxy, or 
> ftp_proxy environment variables to a URL that identifies theproxyserver 
> before starting the Python interpreter. For example (the '%' is the command 
> prompt):
>
> % http_proxy="http://www.someproxy.com:3128";
> % export http_proxy
> % python
>
> Replace 'someproxy' with your real settings.
> The last python would be 'sage -upgrade' in your case.
> I advise adding a trailing slash ("/") to the http_proxy setting.
> I have seen apps fail due to it not being there.
>
> regards,
> Jan
>
> --
>    .~.
>    /V\     Jan Groenewald
>   /( )\    www.aims.ac.za
>   ^^-^^

-- 
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
URL: http://www.sagemath.org

Reply via email to