Edgewall Software
Modify

Ticket #693 (closed defect: wontfix)

Opened 8 years ago

Last modified 7 years ago

trac.cgi problem - No module named core

Reported by: josh_robb@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.7.1
Severity: critical Keywords:
Cc: josh_robb@…
Release Notes:
API 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

Change History

comment:1 Changed 7 years ago by anonymous

  • Cc josh_robb@… added

comment:2 Changed 7 years ago by daniel

  • Resolution set to wontfix
  • Status changed from new to 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?

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.