error on startup on missing 'locate'

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

Bug Description

starting phatch gives this error:

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

so i edited the file phatch/lib/fonts.py and change the line
sys.exit(_('Please install "%s" first.') % 'locate')
to
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