Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#7843 closed defect (fixed)

File not found '/conf/username_list.txt'

Reported by: anonymous Owned by: richard
Priority: normal Component: TracAutoCompletePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


I compiled the egg and placed it in my environment/plugins directory, restarted apache, and when start typing in the CC field, I get the following log message:

Traceback (most recent call last):
  File "build/bdist.linux-i686/egg/trac/web/", line 513, in _dispatch_request
  File "build/bdist.linux-i686/egg/trac/web/", line 235, in dispatch
  File "build/bdist.linux-i686/egg/autocomplete/", line 58, in process_request
  File "build/bdist.linux-i686/egg/autocomplete/", line 97, in _handle_query_user
  File "build/bdist.linux-i686/egg/autocomplete/", line 111, in _query_user
  File "build/bdist.linux-i686/egg/autocomplete/", line 125, in _update_user_cache
  File "build/bdist.linux-i686/egg/autocomplete/", line 160, in _email_complete
IOError: [Errno 2] No such file or directory: '/conf/username_list.txt'

Do you know why it's not seeing the conf directory?

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by richard

  • Status changed from new to assigned

There should be a username_list.txt in /path/to/trac/conf/. I'm not sure why it try to get file from root directory.

As here: source:/tracautocompleteplugin/0.11/autocomplete/ ,Try replace with following:

os.path.join(self.env.path, 'conf/username_list.txt')

comment:2 Changed 4 years ago by anonymous

  • Resolution set to fixed
  • Status changed from assigned to closed

Thankyou, that worked!

comment:3 Changed 4 years ago by richard

(In [9326]) Fixed #7843, add env path to locate username_list.txt

Add Comment

Modify Ticket

as closed The owner will remain richard.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.