Skip to content

Problems when installing taxi

Sylvain Fankhauser edited this page Apr 18, 2015 · 2 revisions

Here is a list of issues/solution that have been encountered when installing taxi

Issue with locales

  • V. MacOSX 10.8.3
Traceback (most recent call last):
  File "/usr/local/bin/taxi", line 4, in <module>
    app.main()
  File "/Library/Python/2.7/site-packages/taxi/app.py", line 148, in main
    app.run()
  File "/Library/Python/2.7/site-packages/taxi/app.py", line 136, in run
    action.run()
  File "/Library/Python/2.7/site-packages/taxi/commands.py", line 400, in run
    t.add_date(datetime.date.today(), is_top_down)
  File "/Library/Python/2.7/site-packages/taxi/models.py", line 395, in add_date
    self.parser.parsed_lines.insert(index, DateLine(date, date_format=self.date_format))
  File "/Library/Python/2.7/site-packages/taxi/parser/__init__.py", line 66, in __init__
    self.text = date_utils.unicode_strftime(self.date, date_format)
  File "/Library/Python/2.7/site-packages/taxi/utils/date.py", line 17, in unicode_strftime
    locale_encoding = locale.getlocale()[1]
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 530, in getlocale
    return _parse_localename(localename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 443, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

Solution

To solve this you have to add these lines below to your ~/.bash_profile

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

AttributeError: 'module' object has no attribute 'python_2_unicode_compatible'

  • V. MacOSX 10.8.3

This is due to the way Python is installed on OS X. To solve this problem, run sudo pip uninstall taxi, then brew install python, then open a new terminal and run sudo pip install taxi.