no translation file

Asked by Will Milton

After untarring or bzr'ing, then

$: sudo python setup.py install
$: torrent-search

This is what happens:

Traceback (most recent call last):
  File "/usr/local/bin/torrent-search", line 21, in <module>
    from TorrentSearch import clp as optparse
  File "/usr/local/lib/python2.6/dist-packages/TorrentSearch/__init__.py", line 21, in <module>
    import gtk, AboutDialog, menus, gobject, config, os, imp, Plugin, TorrentSearch, thread, urllib, httplib2, tempfile, sys, downloads, icontheme, re, locale, auth, program_version, datetime, time
  File "/usr/local/lib/python2.6/dist-packages/TorrentSearch/AboutDialog.py", line 23, in <module>
    from lang import _
  File "/usr/local/lib/python2.6/dist-packages/TorrentSearch/lang.py", line 42, in <module>
    TRANSLATION.add_fallback(gettext.translation(UNIXNAME,os.path.join(options.share_dir,"locale"),["en"]))
  File "/usr/lib/python2.6/gettext.py", line 484, in translation
    raise IOError(ENOENT, 'No translation file found for domain', domain)
IOError: [Errno 2] No translation file found for domain: 'torrent-search'

and torrent-search doesn't start.

This happens with the tarball and with the bzr branch, but the .deb works fine.

Is there anything you would like me to try?

Question information

Language:
English Edit question
Status:
Answered
For:
Torrent Search Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gwendal LE BIHAN (gwendal-lebihan-dev) said :
#1

I know where this comes from.
It should work if you install it with : sudo python setup.py install --install-layout=deb
I've just committed a fix to this issue.

Can you help with this problem?

Provide an answer of your own, or ask Will Milton for more information if necessary.

To post a message you must log in.