Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7843 closed defect (fixed)

File not found '/conf/username_list.txt'

Reported by: anonymous Owned by: Richard Liao
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 (0)

Change History (3)

comment:1 Changed 7 years ago by Richard Liao

Status: newassigned

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')

comment:2 Changed 7 years ago by anonymous

Resolution: fixed
Status: assignedclosed

Thankyou, that worked!

comment:3 Changed 7 years ago by Richard Liao

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Richard Liao.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.