After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 704786 - ocrfeeder fails to start if the locale is not set
ocrfeeder fails to start if the locale is not set
Status: RESOLVED FIXED
Product: ocrfeeder
Classification: Other
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: ocrfeeder-maint
ocrfeeder-maint
Depends on:
Blocks:
 
 
Reported: 2013-07-24 09:00 UTC by Alberto Garcia
Modified: 2014-07-12 19:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alberto Garcia 2013-07-24 09:00:41 UTC
$ LANG= LC_ALL= LANGUAGE= ocrfeeder
Traceback (most recent call last):
  • File "/usr/bin/ocrfeeder", line 31 in <module>
    from ocrfeeder.studio.studioBuilder import Studio
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/studioBuilder.py", line 26 in <module>
    import widgetPresenter
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/studio/widgetPresenter.py", line 24 in <module>
    from ocrfeeder.util.configuration import ConfigurationManager
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/configuration.py", line 83 in <module>
    class ConfigurationManager(object):
  • File "/usr/lib/python2.7/dist-packages/ocrfeeder/util/configuration.py", line 123 in ConfigurationManager
    LANGUAGE: locale.getdefaultlocale()[0].split('_')[0],
AttributeError: 'NoneType' object has no attribute 'split'

Comment 1 Joaquim Rocha 2014-07-12 19:38:36 UTC
Fixed. Thanks for reporting!