Ticket #7843 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

File not found '/conf/username_list.txt'

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

Description

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/main.py", line 513, in _dispatch_request
  File "build/bdist.linux-i686/egg/trac/web/main.py", line 235, in dispatch
  File "build/bdist.linux-i686/egg/autocomplete/web_ui.py", line 58, in process_request
  File "build/bdist.linux-i686/egg/autocomplete/web_ui.py", line 97, in _handle_query_user
  File "build/bdist.linux-i686/egg/autocomplete/web_ui.py", line 111, in _query_user
  File "build/bdist.linux-i686/egg/autocomplete/web_ui.py", line 125, in _update_user_cache
  File "build/bdist.linux-i686/egg/autocomplete/web_ui.py", 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

Change History

10/16/10 13:16:08 changed 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/web_ui.py#L160 ,Try replace with following:

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

10/18/10 17:55:20 changed by anonymous

  • status changed from assigned to closed.
  • resolution set to fixed.

Thankyou, that worked!

10/19/10 02:25:14 changed by richard

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


Add/Change #7843 (File not found '/conf/username_list.txt')




Change Properties
Action