Modify

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

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 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/web_ui.py#L160 ,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

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from richard. Next status will be '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.