trac.cgi problem - No module named core
|Reported by:||Owned by:||Jonas Borgström|
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:
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 ?
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.