[modwsgi] Re: Detecting if client has received all output

2009-07-08 Thread Graham Dumpleton
2009/7/9 Damjan gdam...@gmail.com: There is technically no way that you can determine what you want in that way. Something like the IsClientConnected property of IIS can't tell you that either. If it is being claimed that it can, then the claim is wrong. I thought that for a TCP

[modwsgi] Re: Segmentation Faults/Unexpected End of Handler

2009-07-08 Thread Graham Dumpleton
have a think about it and see what else I can suggest. Graham David Cramer On Wed, Jul 8, 2009 at 8:00 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/9 David Cramer dcra...@gmail.com: We are running the aptitude package (in Ubuntu) which says Version: 2.3-1build1

[modwsgi] Re: Variable Weirdness Across Requests

2009-07-08 Thread Graham Dumpleton
That Apache runs as a multi process web server on UNIX may also be a contributor to why it wasn't working as you expected. Have a read of: http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading Graham 2009/7/9 aiden aiden...@googlemail.com: The cause turned out to be my

[modwsgi] Re: WSGIPythonPath in Virtual Environment

2009-07-08 Thread Graham Dumpleton
2009/7/9 cubsfanintampa ajc...@gmail.com: Looks like I can use WSGIDaemonProcess / WSGIProcessGroup in each virtual host and use a different python path.  Faboosh. Yes. It does mean that your applications are running in separate processes, but that is actually preferred somewhat over embedded

[modwsgi] Re: Segmentation Faults/Unexpected End of Handler

2009-07-09 Thread Graham Dumpleton
;) On Jul 8, 8:23 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/9 David Cramer dcra...@gmail.com: I can't confirm if this has solved the GeoDjango issue but I can say that the other issue is still present. Here's what I get (on any attempt, and any case) in the error log

Re: [SPAM] Re: [modwsgi] Re: Mysterious 500's

2009-07-09 Thread Graham Dumpleton
2009/7/10 Mike McGrath imli...@gmail.com: On Tue, Jun 30, 2009 at 5:01 PM, Graham Dumpletongraham.dumple...@gmail.com wrote: 2009/6/30 Graham Dumpleton graham.dumple...@gmail.com: 2009/6/30 Ricky Zhou ri...@rzhou.org: Hey, I'm working with Mike on debugging these 500s. On 2009-06-30 08

[modwsgi] Re: Moving away from mod_python.

2009-07-11 Thread Graham Dumpleton
How are you currently using apache.import_module()? Are you using fact that 'import' from document directory underneath uses apache.import_module()? Graham 2009/7/9 cubsfanintampa ajc...@gmail.com: Hi Graham, See responses below. Thanks, -aj On Jul 8, 3:30 am, Graham Dumpleton

[modwsgi] Re: WSGIDaemonProcess doesn't work with CherryPy

2009-07-13 Thread Graham Dumpleton
2009/7/13 Aslan cocoke...@gmail.com: Hi, I meet a problem about CheeryPy and WSGIDaemonProcess. If you can help, please give me some suggestions, THANKS I have a program which is built with CherryPy, it is very easy and shown as following...

[modwsgi] Re: 'make' issue

2009-07-13 Thread Graham Dumpleton
Possibly addressed in mod_wsgi 2.6: http://code.google.com/p/modwsgi/wiki/ChangesInVersion0206 Either check out unreleased 2.6 from subversion branch, or at least grab updated copies of the two files: http://modwsgi.googlecode.com/svn/branches/mod_wsgi-2.X/configure

[modwsgi] Re: 'make' issue

2009-07-13 Thread Graham Dumpleton
really need Python to be universal. If don't and just rebuild mod_wsgi to not be universal, Apache will later crap out because it is universal. Read the whole of that document. Graham 2009/7/14 Graham Dumpleton graham.dumple...@gmail.com: Possibly addressed in mod_wsgi 2.6:  http

[modwsgi] Re: Testing security

2009-07-15 Thread Graham Dumpleton
2009/7/15 Garito gar...@gmail.com: Hi! I have a mod_wsgi application almost finished and ready for testing before launching I'm a little scared about its security Can you advise me a good tool or tutorial about how to test my app security? I'll let others recommend actual testing tools

[modwsgi] Re: Testing security

2009-07-15 Thread Graham Dumpleton
2009/7/15 Garito gar...@gmail.com: 2009/7/15 Graham Dumpleton graham.dumple...@gmail.com 2009/7/15 Garito gar...@gmail.com: Hi! I have a mod_wsgi application almost finished and ready for testing before launching I'm a little scared about its security Can you advise me a good

[modwsgi] Re: Do not authenticate user on every request

2009-07-15 Thread Graham Dumpleton
2009/7/15 Guillaume Simard gui...@gmail.com: Hi everyone, I'm new to mod_wsgi and I would like to know if it is possible to authenticate users only once every X seconds. I would like to use something similar to http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms , however my

[modwsgi] Re: 'make' issue

2009-07-15 Thread Graham Dumpleton
to do. -Birkin On Jul 13, 9:53 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: Whoops. Actually jumped to wrong conclusions here as didn't read error messages properly. The problem is that your Python hasn't been installed for all architectures. See:  http://code.google.com/p/modwsgi

[modwsgi] Re: _PyExc_RuntimeError with mod_wsgi 2.5 and python 2.6 from Fink

2009-07-16 Thread Graham Dumpleton
2009/7/17 Alan alanwil...@gmail.com: I tried this http://groups.google.com/group/modwsgi/browse_thread/thread/42de104289d6b26f/cf82fb99ed34996c?lnk=gstq=_PyExc_RuntimeError#cf82fb99ed34996c But it didn't work, I still have the same problem reported there. The difference I am doing is that

[modwsgi] Re: mod_wsgi + mod_userdir

2009-07-16 Thread Graham Dumpleton
2009/7/17 Ronaldo Maia mai...@gmail.com: Hello all. Reading the documentation, I came up with this for my site: VirtualHost This is wrong, should be something like: VirtualHost *:80    ServerName www.stoq.com.br    AddDefaultCharset utf-8    DocumentRoot /var/www/stoq.com.br/www  

[modwsgi] Re: 'make' issue

2009-07-16 Thread Graham Dumpleton
with the first. Yes, unless you have a very specific requirement for Python 2.6, just use the operating system supplied tools. It is just so much easier. Graham On Jul 15, 11:29 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: What do you get running:   file /opt/local/Library/Frameworks

[modwsgi] Re: TypeError: response headers must be a list

2009-07-16 Thread Graham Dumpleton
On Jul 17, 2:47 pm, Andrew zen...@gmail.com wrote: Hi there, Hoping that someone might be able to help me with a weird mod_wsgi issue I'm having! I have the following in my index.wsgi file: #! /usr/bin/env python2.6 def application (environ, start_response):     response_headers =

[modwsgi] Re: TypeError: response headers must be a list

2009-07-16 Thread Graham Dumpleton
2009/7/17 Andrew zen...@gmail.com:       WSGIDaemonProcess develop.lionsafc processes=2 threads=15 display-name=%{GROUP} python-path=/usr/local/lib/python2.6/site-packages/ BTW, you don't need to add installed Python's site-packages directory yourself, it should be done automatically. If that

[modwsgi] Re: TypeError: response headers must be a list

2009-07-16 Thread Graham Dumpleton
statically rather than as shared library, that can cause all sorts of problems. Surprised it didn't just crash. Thanks for letting me know what the solution was. Graham Cheers, Andrew On Jul 17, 3:11 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/17 Andrew zen...@gmail.com

[modwsgi] New release candidate for 3.0 available.

2009-07-17 Thread Graham Dumpleton
Release candidate 4 for mod_wsgi 3.0 is now available. Downloadable from: http://code.google.com/p/modwsgi/downloads/list Cumulative changes detailed in: http://code.google.com/p/modwsgi/wiki/ChangesInVersion0300 Note that if you were using ability to step outside of WSGI specification

[modwsgi] Re: _PyExc_RuntimeError with mod_wsgi 2.5 and python 2.6 from Fink

2009-07-17 Thread Graham Dumpleton
2009/7/17 Alan alanwil...@gmail.com: More info: ~/Programmes/mod_wsgi-2.5% file /sw/lib/python2.6/config/libpython2.6.dylib /sw/lib/python2.6/config/libpython2.6.a /sw/lib/python2.6/config/libpython2.6.dylib: Mach-O dynamically linked shared library i386

[modwsgi] Re: wsgi cannot return custom 404 response, but the default apache 404 message return

2009-07-17 Thread Graham Dumpleton
Use 3.0c4 instead. It had already been fixed in that. If you can't update, then set: WSGIErrorOverride Off in Apache configuration instead. Graham 2009/7/18 Peter Yen colorp...@gmail.com: Hi, Run as daemon mode and integrate with Django, the def application does return the custom

[modwsgi] Re: How to properly use PYTHONUSERBASE - PEP370 with mod_wsgi

2009-07-17 Thread Graham Dumpleton
2009/7/18 Damjan gdam...@gmail.com: Python 2.6 and 3.x have this feature[1], and since I only use 2.6 now ... I also would like to use this instead of virtualenv/etc... I install packages with pip.py like so: export PYTHONUSERBASE=/some/path pip.py install --install-option=--user Werkzeug

[modwsgi] Re: WSGI application files affecting each other

2009-07-20 Thread Graham Dumpleton
2009/7/20 Malcolm mlalk...@gmail.com: Hello, I am using mod_wsgi 2.3 with Apache 2.2.11 on Ubuntu 9.04. I seem to be having problems where the code I put in on of my WSGI application files, (django.wsgi) is affecting the (sub) interpreters of other WSGI applications. Here is the

[modwsgi] Re: WSGI application files affecting each other

2009-07-20 Thread Graham Dumpleton
2009/7/20 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/20 Malcolm mlalk...@gmail.com: Hello, I am using mod_wsgi 2.3 with Apache 2.2.11 on Ubuntu 9.04. I seem to be having problems where the code I put in on of my WSGI application files, (django.wsgi) is affecting the (sub

[modwsgi] Re: WSGI application files affecting each other

2009-07-20 Thread Graham Dumpleton
2009/7/20 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/20 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/20 Malcolm mlalk...@gmail.com: Hello, I am using mod_wsgi 2.3 with Apache 2.2.11 on Ubuntu 9.04. I seem to be having problems where the code I put in on of my WSGI

[modwsgi] Re: New release candidate for 3.0 available.

2009-07-20 Thread Graham Dumpleton
2009/7/21 gert gert.cuyk...@gmail.com: On Jul 17, 9:54 am, Graham Dumpleton graham.dumple...@gmail.com wrote: Release candidate 4 for mod_wsgi 3.0 is now available. Downloadable from:  http://code.google.com/p/modwsgi/downloads/list Cumulative changes detailed in:  http

[modwsgi] Re: WSGI application files affecting each other

2009-07-21 Thread Graham Dumpleton
2009/7/21 Malcolm Lalkaka mlalk...@gmail.com: On Mon, Jul 20, 2009 at 1:20 AM, Graham Dumpletongraham.dumple...@gmail.com wrote: 2009/7/20 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/20 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/20 Malcolm mlalk...@gmail.com: Hello, I

[modwsgi] Re: Sometimes my Django site just does not respond at first

2009-07-21 Thread Graham Dumpleton
2009/7/21 Andrew zen...@gmail.com: Hiya, Apologies for resurrecting a dormant topic, but I've just spent a couple of hours spinning my wheels on this and have found that one possible cause for the bucket brigade error message is a bug in Safari/ OS X: Thanks for posting this. I have read

[modwsgi] Re: How mod_wsgi handle concurrent wsgi request?

2009-07-21 Thread Graham Dumpleton
seconds. Is it something wrong with my configuration? 2009-07-21 Joshua Wang ex-GDNTer 发件人: Graham Dumpleton 发送时间: 2009-07-21 11:53:32 收件人: modwsgi 抄送: 主题: [modwsgi] Re: How mod_wsgi handle concurrent wsgi request

[modwsgi] Re: WSGIScriptAlias contains russian characters in directory part

2009-07-21 Thread Graham Dumpleton
with this but mod_wsgi doesn't :( On Jul 18, 6:26 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/17 Mike Plavsky supermapl...@gmail.com: Hi Guys, My application is located here C:\Documents and Settings\MPlavsky\My Documents\projects\русский апач, lats part is Russian. Does

[modwsgi] Re: New release candidate for 3.0 available.

2009-07-21 Thread Graham Dumpleton
2009/7/21 gert gert.cuyk...@gmail.com: On Jul 21, 6:12 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/21 gert gert.cuyk...@gmail.com: On Jul 17, 9:54 am, Graham Dumpleton graham.dumple...@gmail.com wrote: Release candidate 4 for mod_wsgi 3.0 is now available

[modwsgi] Re: Premature end of script headers

2009-07-21 Thread Graham Dumpleton
The code in that area was just changed for Python 3.X. Obviously something isn't right. Change to use: start_response(b'200 OK', ...) Ie., add a 'b' in front of status string so bytes are used. That might get it working while I get a chance to look at it. BTW, hadn't you noticed that the

[modwsgi] Re: WSGIScriptAlias contains russian characters in directory part

2009-07-21 Thread Graham Dumpleton
function that can use to convert UTF-8 string to wide string for _wfopen(). Anyone with Windows programming knowledge who can advise what should be done? Graham On Jul 21, 12:01 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: What version of mod_wsgi are you using? If you are mod_wsgi

[modwsgi] Re: Premature end of script headers

2009-07-22 Thread Graham Dumpleton
Try subversion trunk again now and see if you can break it. The code added to allow status to be bytes or unicode was indeed the problem. Graham 2009/7/22 Graham Dumpleton graham.dumple...@gmail.com: FWIW, I don't have this problem with status value with Python 3.1 on MacOS X. My processes

[modwsgi] Re: WSGIScriptAlias contains russian characters in directory part

2009-07-22 Thread Graham Dumpleton
2009/7/23 Nimrod A. Abing nimrod.ab...@gmail.com: On Wed, Jul 22, 2009 at 8:17 PM, Graham Dumpletongraham.dumple...@gmail.com wrote: 2009/7/22 Nimrod A. Abing nimrod.ab...@gmail.com: 2009/7/22 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/22 Mike Plavsky supermapl...@gmail.com

[modwsgi] Re: WSGIScriptAlias contains russian characters in directory part

2009-07-23 Thread Graham Dumpleton
2009/7/22 Graham Dumpleton graham.dumple...@gmail.com: Can you try attached binary and let me know if it works. Don't have enough time tonight to set up example with Unicode filenames. At least still works for hello world with normal file names. Unless I have done something stupid in way I am

[modwsgi] Re: WSGIScriptAlias contains russian characters in directory part

2009-07-23 Thread Graham Dumpleton
2009/7/23 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/23 Mike Plavsky supermapl...@gmail.com: The same result. It doesn't work :( Still says fopen failed Shouldn't you have used something like _wfopen? I did use _wfopen(). The fopen() message is mine and I didn't distinguish. I

[modwsgi] Re: mod_wsgi + cherrypy + html forms

2009-07-23 Thread Graham Dumpleton
2009/7/24 Eder Carneiro edercarne...@gmail.com: Hi all I'm in beginning of using mod_wsgi and cherrypy. I read about mod_wsgi + cherrypy integration on this group's wiki, and following that guide, i could get them working toghether in a simple hello world like application. My apache wsgi

[modwsgi] Re: FileWrapper for uploads

2009-07-23 Thread Graham Dumpleton
2009/7/24 gert gert.cuyk...@gmail.com: On Jul 23, 9:27 pm, gert gert.cuyk...@gmail.com wrote: On Jul 23, 7:28 pm, gert gert.cuyk...@gmail.com wrote: wsgi file downloads -- class FileWrapper(object):     def __init__(self, fp, blksize=8192):        

[modwsgi] Re: WSGIPythonHome ignored under Windows

2009-07-23 Thread Graham Dumpleton
It seems thatPYTHONHOMEhas a totally different meaning onWindows than UNIX boxes. OnWindowsit seems the only thing it is used for is to resolve where relative URLs in PYTHONPATH are rooted at. Not true.  Look at lines 483-490 of getpathp.c:        if (pythonhome == NULL || *pythonhome ==

[modwsgi] Re: i just found the hg button :)

2009-07-23 Thread Graham Dumpleton
2009/7/24 gert gert.cuyk...@gmail.com: On Jul 24, 12:28 am, gert gert.cuyk...@gmail.com wrote: Go to administration - source tab to switch to a hg repositories And when can we expect Graham to push on this button :) Is this going to be like a Twilight Zone episode I saw many years ago where

[modwsgi] Re: i just found the hg button :)

2009-07-24 Thread Graham Dumpleton
2009/7/24 gert gert.cuyk...@gmail.com: On Jul 24, 7:22 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/24 gert gert.cuyk...@gmail.com: On Jul 24, 12:28 am, gert gert.cuyk...@gmail.com wrote: Go to administration - source tab to switch to a hg repositories And when can

[modwsgi] Re: i just found the hg button :)

2009-07-24 Thread Graham Dumpleton
2009/7/24 Graham Dumpleton graham.dumple...@gmail.com: 2009/7/24 gert gert.cuyk...@gmail.com: On Jul 24, 7:22 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/24 gert gert.cuyk...@gmail.com: On Jul 24, 12:28 am, gert gert.cuyk...@gmail.com wrote: Go to administration

[modwsgi] Re: FileWrapper for uploads

2009-07-24 Thread Graham Dumpleton
2009/7/25 gert gert.cuyk...@gmail.com: On Jul 24, 1:22 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/24 gert gert.cuyk...@gmail.com: On Jul 23, 9:27 pm, gert gert.cuyk...@gmail.com wrote: On Jul 23, 7:28 pm, gert gert.cuyk...@gmail.com wrote: wsgi file downloads

[modwsgi] Re: FileWrapper for uploads

2009-07-25 Thread Graham Dumpleton
2009/7/25 gert gert.cuyk...@gmail.com: On Jul 25, 3:42 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/25 gert gert.cuyk...@gmail.com: On Jul 24, 1:22 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/24 gert gert.cuyk...@gmail.com: On Jul 23, 9:27 pm, gert

[modwsgi] Re: i just found the hg button :)

2009-07-25 Thread Graham Dumpleton
2009/7/25 gert gert.cuyk...@gmail.com: On Jul 24, 12:53 pm, William Dode w...@flibuste.net wrote: On 24-07-2009, gert wrote: On Jul 24, 9:54 am, William Dode w...@flibuste.net wrote: On 24-07-2009, Graham Dumpleton wrote: This project isn't exactly one where many people are working

[modwsgi] Re: FileWrapper for uploads

2009-07-27 Thread Graham Dumpleton
2009/7/28 gert gert.cuyk...@gmail.com: On Jul 26, 1:59 am, gert gert.cuyk...@gmail.com wrote: On Jul 26, 1:25 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/25 gert gert.cuyk...@gmail.com: On Jul 25, 3:42 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009

[modwsgi] Re: pre-start daemons

2009-07-27 Thread Graham Dumpleton
2009/7/28 mixedpuppy mixedpu...@gmail.com: I'm using mod_wsgi for an application that takes several seconds to load when a new daemon process is started.    The problem is, when the processes restart (via maxrequest setting), even with the use of WSGIImportScript there is a potential lag in

[modwsgi] Re: 'make' issue

2009-07-30 Thread Graham Dumpleton
lines look like this: CFLAGS =  -Wc,'-arch i386' LDFLAGS =   -L/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/config  -arch i386 On Jul 17, 4:37 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/17 birkin birkin.di...@gmail.com: Graham, What do you

[modwsgi] Re: FileWrapper for uploads

2009-07-30 Thread Graham Dumpleton
2009/7/31 gert gert.cuyk...@gmail.com: On Jul 28, 5:50 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/28 gert gert.cuyk...@gmail.com: On Jul 26, 1:59 am, gert gert.cuyk...@gmail.com wrote: On Jul 26, 1:25 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009

[modwsgi] Re: FileWrapper for uploads

2009-07-30 Thread Graham Dumpleton
2009/7/31 gert gert.cuyk...@gmail.com: On Jul 31, 1:04 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/31 gert gert.cuyk...@gmail.com: On Jul 28, 5:50 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/28 gert gert.cuyk...@gmail.com: On Jul 26, 1:59 am

[modwsgi] Re: FileWrapper for uploads

2009-07-30 Thread Graham Dumpleton
2009/7/31 gert gert.cuyk...@gmail.com: On Jul 31, 2:19 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/31 gert gert.cuyk...@gmail.com: On Jul 31, 1:04 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/7/31 gert gert.cuyk...@gmail.com: On Jul 28, 5:50 am

[modwsgi] Re: FileWrapper for uploads

2009-07-30 Thread Graham Dumpleton
2009/7/31 gert gert.cuyk...@gmail.com: You are going to love my next GET someURL\r\n Range: bytes=4096-8191,0-4095 question :) and how the hell do i generate a boundary --46228a661764c4210 For multi range requests, you have to do it all yourself with a custom generator and can't use

[modwsgi] Re: Can't see tracebacks in logs or on screen with Turbogears 1.0.8

2009-08-02 Thread Graham Dumpleton
2009/8/3 chris_g chrisgu...@gmail.com: I've configured my Turbogears 1.0.8 application to run under apache with WGSI, following these instructions:    http://code.google.com/p/modwsgi/wiki/IntegrationWithTurboGears This works well, however I'm not seeing any traceback information in the

[modwsgi] Deprecation of some integration guides on mod_wsgi site wiki.

2009-08-03 Thread Graham Dumpleton
When mod_wsgi was young, I created various integration guides on how to use some of the main stream Python web applications and frameworks in conjunction with it. This was to make the path of moving to mod_wsgi somewhat easier, especially given that all those applications and frameworks didn't

[modwsgi] Re: Weird mod_wsgi caching problem on Apache2/Debian

2009-08-04 Thread Graham Dumpleton
Try removing all the .pyc files in your source tree. If they are newer than source file, then Python will use them instead. If you aren't aware of what they are for, the .pyc files are a cache of byte code generated from compiling the source code. Thus they could contain an older copy of

[modwsgi] Re: how is it done!!

2009-08-04 Thread Graham Dumpleton
2009/8/5 BrochesterL brochest...@gmail.com: I have been trying and trying to have more than a single request in an application at the same time, basicly i would like to have multiple outputs in a select fashion so i can connect clients together. i would really like an example as I am

[modwsgi] Re: Does this work for embedd'd aswell?

2009-08-04 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com: 2009/8/5 BrochesterL brochest...@gmail.com: Could WSGIApplicationGroup effectively join or seperate process' of python embedded or am I mistaken, That directive only controls which sub interpreter within the specific process which accepted the request

[modwsgi] Re: FileWrapper for uploads

2009-08-06 Thread Graham Dumpleton
This is not the list for WSGIServer so perhaps go ask the authors instead. Am not surprised they wouldn't be supporting HTTP/1.1 in response as implementing keep alive and chunked content is a pain. Graham 2009/8/7 gert gert.cuyk...@gmail.com: I am testing if there are some global WSGI

[modwsgi] Re: reload trac plugins quite often

2009-08-08 Thread Graham Dumpleton
2009/8/9 rupert.thurner rupert.thur...@gmail.com: we noticed a frequent reload of the plugins on our trac installation, see http://groups.google.com/group/trac-dev/browse_thread/thread/e3803f5c44789f98. what would be the easiest possibility to trac down which mod_wsgi process / thread is

[modwsgi] Re: Integrate wsgi application into legacy webapp

2009-08-10 Thread Graham Dumpleton
2009/8/11 Haes haes...@gmail.com: Hi, I'm looking to integrate wsgi applications (Django in this case) into a legacy PHP web application. The legacy app is way to big to be completely rewritten all at once. Right now there are two wsgi apps installed in two subdirectories and more to

[modwsgi] Getting real close to mod_wsgi 3.0 now.

2009-08-11 Thread Graham Dumpleton
I believe I have finally fixed the UTF8/UCS2 issue for WSGI script paths on Window, so am close to a final release candidate. This issue was where unicode characters could be used in file system directories holding WSGI script file, or in name of WSGI script file itself. The only remaining thing

[modwsgi] Re: Webalchemy and mod_wsgi

2009-08-12 Thread Graham Dumpleton
2009/8/12 vishnu.kumar vishnu.ku...@mahiti.org: Hi, Is it possible to use webalchemy in a mod_wsgi to accelerate django apps? If it is a yes, then where can i find docs for achieving the same? Did you try a Google search? One of the top posts explains how to do it for mod_python. As the

[modwsgi] Re: Getting real close to mod_wsgi 3.0 now.

2009-08-12 Thread Graham Dumpleton
2009/8/13 gert gert.cuyk...@gmail.com: On Aug 12, 5:40 pm, gert gert.cuyk...@gmail.com wrote: On Aug 12, 7:41 am, Graham Dumpleton graham.dumple...@gmail.com wrote: I believe I have finally fixed the UTF8/UCS2 issue for WSGI script paths on Window, so am close to a final release

[modwsgi] Re: Webalchemy and mod_wsgi

2009-08-15 Thread Graham Dumpleton
2009/8/14 Graham Dumpleton graham.dumple...@gmail.com: 2009/8/14 gert gert.cuyk...@gmail.com: On Aug 14, 9:39 am, vishnu vishnu.ku...@mahiti.org wrote: On Aug 14, 12:27 pm, vishnu vishnu.ku...@mahiti.org wrote: hi Graham, The doc first doc u showed mentions of using mod_python

[modwsgi] Re: rev 1407 apache log

2009-08-16 Thread Graham Dumpleton
2009/8/16 gert gert.cuyk...@gmail.com: this does not show any error messages in apache log ? Is this noise, or are you pointing out a specific problem I need to look at. If a problem, you need to explain what it is, I am not going to try each of these examples to try and find out. Graham

[modwsgi] Re: server error 500 with django

2009-08-16 Thread Graham Dumpleton
2009/8/17 Kellie sa...@lumenlab.com: Hi, I am new to django and mod_wsgi. I've been reading all of the documentation and got mod_wsgi to work with the sample script. When I try to change it to use django I get a server error 500. Here is my setup: django.wsgi: import os import sys

[modwsgi] Re: server error 500 with django

2009-08-16 Thread Graham Dumpleton
2009/8/17 cd34 mcd...@gmail.com: On Aug 16, 8:08 pm, Kellie sa...@lumenlab.com wrote: I am new to django and mod_wsgi. I've been reading all of the documentation and got mod_wsgi to work with the sample script. When I try to change it to use django I get a server error 500. Here is my

[modwsgi] Re: server error 500 with django

2009-08-16 Thread Graham Dumpleton
2009/8/17 Kellie sa...@lumenlab.com: Hi, I am not using a virtual environment or sqlite3. (Thanks for the tip though :) I really appreciate the fast replies. I am using mod_wsgi-2.5. Here are the relevant sections of my apache vhosts conf: IfModule mod_wsgi.c WSGIScriptAlias /front

[modwsgi] Re: rev 1407 apache log

2009-08-17 Thread Graham Dumpleton
/17 Graham Dumpleton graham.dumple...@gmail.com: 2009/8/17 gert gert.cuyk...@gmail.com: I expected at least this message to show up in my log ? print('query=',query,file=sys.stderr) or some trace back where syntax is wrong ? I only get a 500, I usually get at least some sign about the thing i

[modwsgi] Re: how to find the version of modwsgi thats already installed?

2009-08-17 Thread Graham Dumpleton
2009/8/17 vishnu.kumar vishnu.ku...@mahiti.org: Hi, I had the modwsgi installed on a Ubuntu 8.04. But i am not sure what version i used for installing mod_wsgi in apache? Is there a way to check that? As described in installation instructions:

[modwsgi] Re: rev 1407 apache log

2009-08-17 Thread Graham Dumpleton
post. I thought you were just making some statement about it working. Graham On Aug 17, 8:48 am, Graham Dumpleton graham.dumple...@gmail.com wrote: Works fine for me on Python 3.0.1 and Python 3.1 with test program: import sys def application(environ, start_response):     status = '200 OK

[modwsgi] Re: rev 1407 apache log

2009-08-17 Thread Graham Dumpleton
2009/8/18 gert gert.cuyk...@gmail.com: import os,sys def application(environ, response):    print('STDERR %s' % __file__, file=sys.stderr)    #query=environ.get['QUERY_STRING']    query=os.path.join(os.path.dirname(__file__),'teemp')    

[modwsgi] Re: rev 1407 apache log

2009-08-18 Thread Graham Dumpleton
2009/8/18 Graham Dumpleton graham.dumple...@gmail.com: 2009/8/16 gert gert.cuyk...@gmail.com: this does not show any error messages in apache log ? [Sun Aug 16 14:57:12 2009] [info] [client 192.168.2.17] mod_wsgi (pid=5791, process='www', application=''): Loading WSGI script '/usr/ httpd

[modwsgi] Re: How do I properly use WSGIApplicationGroup

2009-08-19 Thread Graham Dumpleton
2009/8/20 Rilt samueltor...@gmail.com: On Aug 18, 11:43 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/19 Rilt samueltor...@gmail.com: To answer that, need to know about whether for these different virtual hosts it is expected that different database, users, configuration etc

[modwsgi] Re: reload trac plugins quite often

2009-08-19 Thread Graham Dumpleton
as issue with that was fixed some time back. Graham    return _application(environ, start_response) On Aug 9, 7:48 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/9 rupert.thurner rupert.thur...@gmail.com: we noticed a frequent reload of the plugins on our trac installation

[modwsgi] Re: [bobo] Sample mod_wsgi configuration

2009-08-19 Thread Graham Dumpleton
2009/8/20 Graham Dumpleton graham.dumple...@gmail.com: Hmmm, I should have tested that before I sent it. Although it worked previously, not working now except for root URL for that resource. I stuffed up something in my environment or bobo is behaving differently in version I have installed

[modwsgi] Re: Multiple Apps Using Apache

2009-08-19 Thread Graham Dumpleton
Are you using the url template tag and the django.core.urlresolvers module in your code to perform URL construction. If you are using hard coded paths, then you will have problems if mounting at sub URLs. The above Django features allow you to express the URL relative to application mount point

[modwsgi] Re: WSGI process blocked from running as root?

2009-08-20 Thread Graham Dumpleton
2009/8/21 Matteo Pillon matteo.pil...@gmail.com: Hi guys! I'm writing a fileserver implementing webdav and a webfilemanager. It supports virtual users and real system users. In order to support this feature, the wsgi app has to be run as root. Why you chose to prevent users from running

[modwsgi] Re: How do I properly use WSGIApplicationGroup

2009-08-20 Thread Graham Dumpleton
subs...@gmail.com: What about situations where one simply wants to take a blog application and have several subdomains use a pooled wsgi instance of this between several vhosts? -Steve On Aug 19, 7:39 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/20 Rilt samueltor

[modwsgi] Re: rev 1407 apache log

2009-08-24 Thread Graham Dumpleton
2009/8/18 Graham Dumpleton graham.dumple...@gmail.com: 2009/8/18 Graham Dumpleton graham.dumple...@gmail.com: 2009/8/16 gert gert.cuyk...@gmail.com: this does not show any error messages in apache log ? [Sun Aug 16 14:57:12 2009] [info] [client 192.168.2.17] mod_wsgi (pid=5791, process

[modwsgi] Re: rev 1407 ('Transfer-Encoding', 'chunked')

2009-08-25 Thread Graham Dumpleton
Gert, now that logging of exceptions in Python 3.X is working again for module level errors, can you indicate whether error is being generated for following, or whether still some other issue you don't understand. Ensure you explain details well as I don't have time to troll through it and try

[modwsgi] Re: rev 1407 ('Transfer-Encoding', 'chunked')

2009-08-25 Thread Graham Dumpleton
On WSGILazyInitialization On WSGIRestrictEmbedded On On Aug 25, 2:22 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: Gert, now that logging of exceptions in Python 3.X is working again for module level errors, can you indicate whether error is being generated for following, or whether still some other

[modwsgi] Re: rev 1407 ('Transfer-Encoding', 'chunked')

2009-08-25 Thread Graham Dumpleton
2009/8/26 gert gert.cuyk...@gmail.com: On Aug 25, 10:36 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/26 gert gert.cuyk...@gmail.com: curlhttp://192.168.2.17/appwsgi/wsgi/download2.wsgi-v this does not work response('200 OK', [('Content-Type', 'text/plain'), ('Content

[modwsgi] Re: Problem building mod_wsgi for python 2.6 on Mac OSX

2009-08-28 Thread Graham Dumpleton
2009/8/28 Ulf Schröder ulf.schro...@gmail.com: I have build mod_wsgi-3.0c4 for python 2.5 on Mac OSX 10.5 and it works fine. I now want to switch to python 2.6 and rebuild mod_wsgi with the following commands: $ make clean Strictly speaking, should do a: make distclean when rerunning

[modwsgi] Re: configure error

2009-08-29 Thread Graham Dumpleton
2009/8/30 weiwei online.service@gmail.com: invalid Python installation: unable to open /usr/lib64/python2.6/ config/Makefile (No such file or directory) any help? Missing python-dev package for Linux system. Ensure you have it installed. Graham

[modwsgi] Re: Integrate wsgi application into legacy webapp

2009-08-29 Thread Graham Dumpleton
applied. Thus, is same as having triggered request from outside of server. If this doesn't answer question, not sure what you are asking and you will need to explain further. Graham Thanks! Evgeny. On Aug 10, 4:18 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/11 Haes haes

[modwsgi] Re: 100 Continue

2009-08-30 Thread Graham Dumpleton
2009/8/30 gert gert.cuyk...@gmail.com: On Aug 30, 11:43 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/30 gert gert.cuyk...@gmail.com: On Aug 30, 5:48 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/30 gert gert.cuyk...@gmail.com: import os def

[modwsgi] Re: mod_wsgi broke after upgrading to Snow Leopard

2009-08-30 Thread Graham Dumpleton
development against new versions of programs. Graham 2009/8/31 Graham Dumpleton graham.dumple...@gmail.com: I fully expected that trying to use MacPorts on Snow Leopard is going to be a whole world of hurt for a while. I would suggest first off that you see if you can get mod_wsgi working

[modwsgi] Re: Integrate wsgi application into legacy webapp

2009-08-30 Thread Graham Dumpleton
are configured correctly in Apache to allow it. What have you tried so far? Graham Thanks. On Aug 29, 8:52 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/8/30 Evgeny evgeny.fad...@gmail.com: I'm also curious about this - will Apache server side includes (SSI) work with the scheme

[modwsgi] Re: Mod_Wsgi to mod_python

2009-08-30 Thread Graham Dumpleton
2009/8/31 Rascal jonras...@gmail.com: Hi, Motivation for this question stems from a recent post on the mod- python list stating that mod_python is no longer developed.  Is that true? The feature I used was hooking a python script in apache's fixup phase where  my authen/authz and global

[modwsgi] Re: mod_wsgi broke after upgrading to Snow Leopard

2009-08-30 Thread Graham Dumpleton
2009/8/31 Graham Dumpleton graham.dumple...@gmail.com: Okay, I have looked at the compiled output and you are perhaps using standard Apache tools. Can you use spotlight to find location of 'httpd.h' on Snow Leopard. Doesn't look to be in place it is supposed to be. I wander if Snow Leopard

[modwsgi] Re: mod_wsgi broke after upgrading to Snow Leopard

2009-08-30 Thread Graham Dumpleton
should start considering supplying dmg file containing mod_wsgi.so for MacOS X Snow Leopard. Graham 2009/8/31 Graham Dumpleton graham.dumple...@gmail.com: 2009/8/31 Graham Dumpleton graham.dumple...@gmail.com: Okay, I have looked at the compiled output and you are perhaps using standard Apache

[modwsgi] Re: mod_wsgi broke after upgrading to Snow Leopard

2009-08-30 Thread Graham Dumpleton
2009/8/31 Graham Dumpleton graham.dumple...@gmail.com: Did you install XCode from the optional installs directory of the Snow Leopard disk? None of the required header files are installed with the base operating system release. So, if not installed, likely you are using MacPorts gcc, but can't

[modwsgi] Re: mod_wsgi broke after upgrading to Snow Leopard

2009-08-31 Thread Graham Dumpleton
: no debug symbols in executable (-arch i386) warning: no debug symbols in executable (-arch ppc7400) I don't know what to make of those, but doesn't seem to cause any problems. Graham Thanks! :) - Andrey On Sun, Aug 30, 2009 at 10:25 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: BTW

[modwsgi] Re: Target WSGI script not found or unable to stat

2009-08-31 Thread Graham Dumpleton
2009/9/1 online.service@gmail.com online.service@gmail.com: thanks, but i have in django.wsgi - import os, sys sys.path.append('/usr/local/django') sys.path.append('/usr/local/django/myproject') os.environ['DJANGO_SETTINGS_MODULE'] =

[modwsgi] Re: Target WSGI script not found or unable to stat

2009-08-31 Thread Graham Dumpleton
2009/9/1 online.service@gmail.com online.service@gmail.com: thanks, my project is located in /usr/local/django/myproject and l  had everything under /usr/local/django/ as readable end executable for all users, seems still no luck... But where exactly is: myapp Is it located at:

[modwsgi] Re: mod_wsgi issue introduced on installing Mac OS X Snow Leopard

2009-09-01 Thread Graham Dumpleton
makesetup 40 -rw-r--r--    1 root  wheel  20076 Aug  6 23:51 python.o Thanks for your help! Sachin On Sep 1, 12:16 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/9/1 sachin sachin.re...@gmail.com: Here is the output from make: /usr/sbin/apxs -c -I/usr/local/python-2.6.2

<    2   3   4   5   6   7   8   9   10   11   >