Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I run

python loook.py TODO this.odt

and I get

Traceback (most recent call last):
  File "loook.py", line 439, in <module>
    app = Application(root)
  File "loook.py", line 72, in __init__
    self.createWidgets()
  File "loook.py", line 107, in createWidgets
    lang, enc = locale.getdefaultlocale()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 496, in getdefaultlocale
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 428, in _parse_localename
ValueError: unknown locale: UTF-8

I contacted the developer of the software about the issue. His first answer is to see this here. So I added the following to my .profile.

export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8

One change occurred that the widget icon pops up and closes in one second without giving any error messages. However, the error messages remain exactly the same.

The locale of my OSX 10.8.2 is UTF-8. My Python 2.7.2. I get the same problem with OSX's Python 2.6 too, so the problem should not be in the version of Python. It is probable that there are some packages missing.

How can you get the loook.py ODT search tool work in OSX 10.8.2?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.