error on startup on missing 'locate'

Bug #723464 reported by Ivan Alejandro on 2011-02-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

starting phatch gives this error:

user@host ~/tmp/phatch-0.2.7/phatch $ ./
Traceback (most recent call last):
  File "./", line 75, in <module>
  File "./", line 72, in main
    app.main(init_config_paths(), app_file=__file__)
  File "./", line 65, in init_config_paths
    return config.init_config_paths(config_paths=create_paths(relative))
  File "/home/user/tmp/phatch-0.2.7/phatch/core/", line 225, in init_config_paths
    from lib.fonts import set_font_cache
  File "/home/user/tmp/phatch-0.2.7/phatch/lib/", line 53, in <module>
    sys.exit(_('Please install "%s" first.') % 'locate')
NameError: name '_' is not defined

so i edited the file phatch/lib/ and change the line
sys.exit(_('Please install "%s" first.') % 'locate')
sys.exit(('Please install "%s" first.') % 'locate')

remove the underscore, and the bug is gone... this happens because i haven't installed the program 'locate'

I hope you find my explanation usefull.
Sorry for my english, cheers from Argentina.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers