Modify

Opened 6 years ago

Closed 5 years ago

#3091 closed defect (duplicate)

[PATCH] Error just after installing

Reported by: anonymous Owned by: coderanger
Priority: highest Component: ProjectMenuPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description

Traceback (most recent call last):

File "/var/lib/python-support/python2.4/trac/web/main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "/var/lib/python-support/python2.4/trac/web/main.py", line 208, in dispatch

chrome.populate_hdf(req, chosen_handler)

File "/var/lib/python-support/python2.4/trac/web/chrome.py", line 319, in populate_hdf

for category, name, text in contributor.get_navigation_items(req):

File "build/bdist.linux-i686/egg/projectmenu/web_ui.py", line 21, in get_navigation_items
File "/var/lib/python-support/python2.4/trac/web/main.py", line 58, in _open_environment

env_cache[env_path] = open_environment(env_path)

File "/var/lib/python-support/python2.4/trac/env.py", line 462, in open_environment

env = Environment(env_path)

File "/var/lib/python-support/python2.4/trac/env.py", line 147, in init

self.verify()

File "/var/lib/python-support/python2.4/trac/env.py", line 195, in verify

fd = open(os.path.join(self.path, 'VERSION'), 'r')

IOError: [Errno 20] Not a directory: '/var/lib/trac/trac.htpasswd/VERSION'

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by anonymous

It can be easily fixed by the following patch:

for project in os.listdir(search_path):

  • if project != this_project:

+ if project != this_project and os.path.isdir(os.path.join(search_path, project)):

proj_env = open_environment(os.path.join(search_path, project),use_cache=True)

comment:2 Changed 5 years ago by AdrianFritz

  • Resolution set to duplicate
  • Status changed from new to closed
  • Summary changed from Error just after installing to [PATCH] Error just after installing

Seems to be a duplicate of #1301. If different, please reopen this ticket.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.