cgitb and Apache

2008-12-22 Thread Robert Hancock
I have a cgi running in my alpha environment and, of course, everything works fine. In beta, when I attempt to access a page via our proxy, which works perfectly in alpha. It attempts to call cgitb but freezes for while and then exits. The Apache log show: [Mon Dec 22 23:49:25 2008] [error] [cl

Re: urlparse import Faillure

2008-10-12 Thread Robert Hancock
On Oct 10, 1:48 pm, Wojtek Walczak <[EMAIL PROTECTED]> wrote: > On Thu, 9 Oct 2008 22:47:58 -0700 (PDT), Robert Hancock wrote: > >>>> import CGIHTTPServer > ... > > ImportError: cannot import name urlparse > > ... > > It points to the third line of

urlparse import Faillure

2008-10-09 Thread Robert Hancock
Python 2.5.2 (r252:60911, Aug 28 2008, 23:51:17) [GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import CGIHTTPServer Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.5/CGIHTTPServer.

Re: Twisted: Get Protected HTTPS Page via Proxy with Authentication

2008-09-23 Thread Robert Hancock
This works: # Proxy credentials proxyAuth = base64.encodestring('%s:%s' % (proxy_username, proxy_password)) proxy_authHeader = "Basic " + proxyAuth.strip() # Web site credentials basicAuth = base64.encodestring('%s:%s' % (username, password)) authHea

Twisted: Get Protected HTTPS Page via Proxy with Authentication

2008-09-21 Thread Robert Hancock
from twisted.web import client from twisted.internet import reactor import base64 import sys def printPage(data): print data reactor.stop() def printError(failure): print >> sys.stderr, "Error:", failure.getErrorMessage() reactor.stop() if len(sys.argv) == 4: url = sys.argv[1

Relative Package Import

2008-07-08 Thread Robert Hancock
mypackage/ __init__.py push/ __init__.py dest.py feed/ __init__py subject.py In subject.py I have from ..push import dest But i receive the error: Caught exception importing module

Re: sqlite3 and Python 2.5.1

2008-06-16 Thread Robert Hancock
On Jun 16, 5:15 pm, Gerhard Häring <[EMAIL PROTECTED]> wrote: > milan_sanremo wrote: > > I have sqlite installed, but when I try to importsqlite3I receive: > > > Python 2.5.1 (r251:54863, Nov 3 2007, 02:54:36) [C] on sunos5 > > Type "help", "copyright", "credits" or "license" for more information.