Google Groups Home Help | Sign in
IIS 6 PyISAPIe problems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
shocks  
View profile
 More options May 5, 2:11 pm
From: shocks <benmari...@googlemail.com>
Date: Mon, 5 May 2008 11:11:13 -0700 (PDT)
Local: Mon, May 5 2008 2:11 pm
Subject: IIS 6 PyISAPIe problems
Hi

I have followed the Django IIS installation guide on the Django
website but I'm getting the following error when I point to the
helloworld.py example:

Internal Server Error
An error occurred processing this request.

Request handler failed

Traceback (most recent call last):
  File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
    imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
  File "\\?\C:\Inetpub\wwwroot\slamprwebsite\helloworld.py", line 1,
in
    from django.http import HttpResponse
ImportError: No module named django.http

Additional Information

Module Search Path:

C:\Python25
C:\WINDOWS\system32\python25.zip
C:\Python25\Lib
C:\Python25\DLLs
C:\Python25\Lib\lib-tk
c:\windows\system32\inetsrv

Any ideas.  I managed to get this working on another Win 2003 Server
box but not this one.

Thanks
Ben


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Fast  
View profile
 More options May 5, 2:33 pm
From: "Adam Fast" <adamf...@gmail.com>
Date: Mon, 5 May 2008 13:33:35 -0500
Local: Mon, May 5 2008 2:33 pm
Subject: Re: IIS 6 PyISAPIe problems
Ben,

Where is django? Make sure it's on your pythonpath (or "module search
path" as they appear to be calling it below)

Adam


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
involatile  
View profile
 More options May 5, 6:04 pm
From: involatile <involat...@yahoo.com>
Date: Mon, 5 May 2008 15:04:12 -0700 (PDT)
Local: Mon, May 5 2008 6:04 pm
Subject: Re: IIS 6 PyISAPIe problems
I'm getting this error. What's missing? Any idea?

===============
Internal Server Error
An error occurred processing this request.

--------------------------------------------------------------------------- -----

Request handler failed

Traceback (most recent call last):
File "C:\Python25\Lib\Http\Isapi.py", line 42, in Request
imp.load_source(Name, Env.SCRIPT_TRANSLATED).Request
IOError: [Errno 2] No such file or directory
===============


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
头太晕  
View profile
 More options May 6, 12:58 am
From: "头太晕" <torr...@gmail.com>
Date: Tue, 6 May 2008 12:58:51 +0800
Local: Tues, May 6 2008 12:58 am
Subject: Re: IIS 6 PyISAPIe problems

Try this http://code.google.com/p/pyisapi-scgi/


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
involatile  
View profile
 More options May 6, 1:37 am
From: involatile <involat...@yahoo.com>
Date: Mon, 5 May 2008 22:37:49 -0700 (PDT)
Local: Tues, May 6 2008 1:37 am
Subject: Re: IIS 6 PyISAPIe problems
I would love to try, but documentation is sketchy. Can someone provide
more detailed instructions?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rcs_comp  
View profile
 More options May 10, 1:20 pm
From: rcs_comp <rsyr...@gmail.com>
Date: Sat, 10 May 2008 10:20:24 -0700 (PDT)
Local: Sat, May 10 2008 1:20 pm
Subject: Re: IIS 6 PyISAPIe problems

Where do you have Django installed?  Normally it goes in C:
\Python25\Lib\site-packages.  But if you notice in the code above,
that path isn't in the Module Search Path.  I also had this problem.
I solved it by moving the Django folder up a level to C:\Python25\Lib.

I know this isn't ideal, but I haven't figure out why the module
search path wouldn't have the site-packages directory in it.  When not
using pyisapie, site-packages is in my default search path.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phillip  
View profile
 More options May 10, 2:56 pm
From: Phillip <phillip.sit...@gmail.com>
Date: Sat, 10 May 2008 11:56:37 -0700 (PDT)
Local: Sat, May 10 2008 2:56 pm
Subject: Re: IIS 6 PyISAPIe problems
Hi all, I just got wind of this thread today, and I'll be taking a
look at what is causing this weirdness. I created a group for PyISAPIe
support, and it would help a lot if you could head over there and post
what versions of Django and Python you're using.

http://groups.google.com/group/pyisapie

Thanks,

Phillip

On May 10, 10:20 am, rcs_comp <rsyr...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rcs_comp  
View profile
 More options May 11, 3:01 am
From: rcs_comp <rsyr...@gmail.com>
Date: Sun, 11 May 2008 00:01:45 -0700 (PDT)
Local: Sun, May 11 2008 3:01 am
Subject: Re: IIS 6 PyISAPIe problems
This should fix the problem:

* Make sure the Http module from the PyISAPIe is installed in c:
\Python25\Lib\site-packages
* Stop IIS
* Move PyISAPIe.dll file out of C:\Python25 and into c:\PyISAPIe
(create the directory if you need to)
* Remap the .py handler to the new location of the dll
* Start IIS

Let me know if that doesn't work.  It worked for me.

However, this setup will not support multiple installations of
Django.  If you want to have multiple Django installations on the same
IIS server, take a look at this thread:

http://groups.google.com/group/pyisapie/browse_thread/thread/b67e861c...

You will need to setup Django and PyISAPi for each website (or virtual
directory) with its own application pool.

On May 5, 2:11 pm, shocks <benmari...@googlemail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google