Opened 20 years ago
Closed 20 years ago
#693 closed defect (wontfix)
trac.cgi problem - No module named core
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.7.1 |
Severity: | critical | Keywords: | |
Cc: | josh_robb@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When using trac with a CGI server which does not support shbangs (#!/…) i.e. CGIHttpServer.py or Microsoft Internet Information Server (IIS) then trac.cgi needs to be renamed to trac.py. At this poing things fail with:
Oops…
Trac detected an internal error:
No module named core
Traceback (most recent call last):
File "D:\inetpub\new\cgi-bin\trac.py", line 24, in ?
import trac.core
ImportError: No module named core
This is because there is no module in trac.py (aka trac.cgi) called core. Changing the name of trac.py to wtrac.py or anything else fixes this.
This change needs to be made for trac to work as a CGI application on Windows without Apache.
Attachments (0)
Change History (2)
comment:1 by , 20 years ago
Cc: | added |
---|
comment:2 by , 20 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Obscure.
Could this be fixed by writing a simple custom CGI 'driver script' called foo.py and in that launch what other web servers do in trac.cgi?