Issues with wod_wsgi 2.0c1 and Windows,

0 views
Skip to first unread message

Graham Dumpleton

unread,
Nov 4, 2007, 1:04:41 AM11/4/07
to mod...@googlegroups.com
On 30/10/2007, Adal Chiriliuc <adal.ch...@gmail.com> wrote:
>
> I have updated the Windows binaries. The 2.0c1 version builds only
> after moving the "DispatchObject *adapter = NULL;" declaration from
> around line 5495 to the start of the block.
>
> Couldn't test them though.
>
> I'm getting this error, can't figure out why since the path seems to
> be ok (and I can run "from paste.deploy import loadapp" in the CLI
> python). I'm not testing on my usual computer, so it could be a
> configuration problem.
>
> mod_wsgi (pid=212, process='', application='127.0.0.1:90|'): Loading
> WSGI script 'X:/Project/Anim/Website/AnimWeb/anim.wsgi'.
> mod_wsgi (pid=212): Target WSGI script 'X:/Project/Anim/Website/
> AnimWeb/anim.wsgi' cannot be loaded as Python module.
> mod_wsgi (pid=212): Exception occurred processing WSGI script 'X:/
> Project/Anim/Website/AnimWeb/anim.wsgi'.
> Traceback (most recent call last):
> File "X:/Project/Anim/Website/AnimWeb/anim.wsgi", line 4, in
> <module>
> from paste.deploy import loadapp
> ImportError: No module named paste.deploy

Adal, did you ever sort this out?

I have one other person had a specific problem when using
WSGIPythonPath on Windows, but have no idea at this point and whether
it relates to your problem or not.

Graham

Adal Chiriliuc

unread,
Nov 4, 2007, 12:54:26 PM11/4/07
to modwsgi
Unfortunately, this week I was away from my main computer. On the
laptop I used I had the above problems. It was not properly setup, and
I also didn't have time to fix it.

I will investigate this issue in the following days.

Graham Dumpleton

unread,
Nov 5, 2007, 10:46:47 PM11/5/07
to mod...@googlegroups.com

No rush. I found the problem with WSGIPythonPath changes. Was missing
a Python object reference count. Wasn't getting crashes on MacOS X,
but got it on Linux system when I tried it.

Graham

gert

unread,
Nov 6, 2007, 2:07:44 PM11/6/07
to modwsgi

On Nov 6, 4:46 am, "Graham Dumpleton" <graham.dumple...@gmail.com>
wrote:

And now in dutch please :)

What does Python object reference count mean ?
And when will c2 be released ?
And why doesnt it crash on MacOS X ?

Bernd Zeimetz

unread,
Nov 6, 2007, 3:02:42 PM11/6/07
to mod...@googlegroups.com

>> No rush. I found the problem with WSGIPythonPath changes. Was missing
>> a Python object reference count. Wasn't getting crashes on MacOS X,
>> but got it on Linux system when I tried it.
>>
>
> And now in dutch please :)
>
> What does Python object reference count mean ?

sounds like you want to read the python documentation at
http://www.python.org/doc/2.4.2/index.html
Start at the beginning, at some point you'll hit
http://www.python.org/doc/2.4.2/ext/refcounts.html
and keep reading until the end.

> And when will c2 be released ?

Are you in a hurry? Slow done!

> And why doesnt it crash on MacOS X ?

If malloc/free is involved, probably just the different implementation
from BSD.

--
Bernd Zeimetz
<be...@bzed.de> <http://bzed.de/>

gert

unread,
Nov 6, 2007, 3:11:48 PM11/6/07
to modwsgi
> Are you in a hurry? Slow done!

I want to get rit of

import os, sys
here = os.path.dirname(__file__)
if here not in sys.path: sys.path.append(here)

Adal Chiriliuc

unread,
Nov 6, 2007, 3:57:18 PM11/6/07
to modwsgi
It was a configuration issue like I suspected. I'm using a set of .pth
files to activate the various Python projects I work on and the wrong
one was active. It's strange that at the time I checked for this. I
was too hurried probably.

mod_wsgi 1.2 and 2.0c1 win32 builds from last week both serve my
little Pylons application just fine now.

On 6 Nov, 05:46, "Graham Dumpleton" <graham.dumple...@gmail.com>
wrote:

Graham Dumpleton

unread,
Nov 6, 2007, 8:09:56 PM11/6/07
to mod...@googlegroups.com

If you have the right Microsoft C compiler you can always build the
module yourself from subversion source code if you are truly
desperate. Adal has some scripts which make the build reasonably
straight forward. I can't find the links to them right now, but Adal
maybe can post a link to them again and mention what compiler you
need.

As to 2.0c2, I have done all the changes I want to and just need to do
a little bit of double checking to make sure I haven't done anything
stupid.

Graham

gert

unread,
Nov 6, 2007, 8:39:42 PM11/6/07
to modwsgi

On Nov 7, 2:09 am, "Graham Dumpleton" <graham.dumple...@gmail.com>
wrote:

I am pretty good at doing stupid things that other people don't
expect :)


Reply all
Reply to author
Forward
0 new messages