Opened 21 years ago
Closed 21 years ago
#414 closed defect (worksforme)
TRAC_ENV
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.7 |
Severity: | blocker | Keywords: | windows |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
trac.cgi responds with:
Missing environment variable "TRAC_ENV". Trac requires this variable to point to a valid Trac Environment. Traceback (most recent call last):
File "D:\Python23\Lib\site-packages\trac\core.py", line 445, in cgi_start
real_cgi_start()
File "D:\Python23\Lib\site-packages\trac\core.py", line 396, in real_cgi_start
env = open_environment()
File "D:\Python23\Lib\site-packages\trac\core.py", line 164, in open_environment
raise EnvironmentError, \
EnvironmentError: Missing environment variable "TRAC_ENV". Trac requires this variable to point to a valid Trac Environment.
Simply change (if upgrading from 0.61 to 0.7) the httpd.conf file to read:
<Location "/cgi-bin/trac.cgi"> # TRAC v0.61 # SetEnv TRAC_DB "d:/svn/trac.db" # TRAC v0.7
</Location>