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
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
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.
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
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
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
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.