[win] ImportError: cannot import name bindtextdomain

Bug #481480 reported by Sir.Rainbow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scribes
New
Undecided
Unassigned

Bug Description

> python scribes.py
dbus daemon already exists
Traceback (most recent call last):
  File "scribes.py", line 11, in <module>
    main(argv[1:])
  File "E:\marco\src\scribes2\SCRIBES\Main.py", line 7, in main
    __open(argv)
  File "E:\marco\src\scribes2\SCRIBES\Main.py", line 20, in __open
    Manager().open_files(uris)
  File "E:\marco\src\scribes2\SCRIBES\InstanceManager.py", line 13, in __init__
    self.__init_i18n()
  File "E:\marco\src\scribes2\SCRIBES\InstanceManager.py", line 180, in __init_i18n
    from locale import setlocale, LC_ALL, Error, bindtextdomain
ImportError: cannot import name bindtextdomain
PS E:\marco\src\scribes2> Traceback (most recent call last):
  File "E:\marco\src\scribes2\SCRIBES\SaveSystem\ExternalProcess\ScribesSaveProcess.py", line 8, in <module>
    main()
  File "E:\marco\src\scribes2\SCRIBES\SaveSystem\ExternalProcess\Main.py", line 2, in main
    __start()
  File "E:\marco\src\scribes2\SCRIBES\SaveSystem\ExternalProcess\Main.py", line 9, in __start
    if __save_process_exists(): raise SystemExit
  File "E:\marco\src\scribes2\SCRIBES\SaveSystem\ExternalProcess\Main.py", line 15, in __save_process_exists
    from SCRIBES.Globals import dbus_iface, SCRIBES_SAVE_PROCESS_DBUS_SERVICE
ImportError: No module named SCRIBES.Globals

I have no idea what the problem is, but i have read that bidtextdomain defines a folder, which might possibly be the problem, or that the module locale has no bindtextdomain function? (http://docs.python.org/library/locale.html#access-to-message-catalogs).... just some ideas..

Tags: win
tags: added: win
Revision history for this message
Sir.Rainbow (sir-rainbow) wrote :

I've done some progress on the issue, wrapping that import in a try and except statement to look what other problems were ahead. I've got import errors for the module gio , gtksourceview2, and os.nice (exists only on Unix as per python docs). Does anybody knows in which version of pyobjects should gio actually be?
Moreover, what are the exact minimum version requirements of all the external libriaries ?(pygtk,pyobj, and so on) I think the ones on the Website are possibly outdated?
Thank you

Revision history for this message
Mystilleef (mystilleef) wrote :

I need to rewrite the build system and update the requirements. The one on the website is outdated.

I believe gtk-2.14 is the version with gio. os.nice we can wrap in a try clause to ignore win32. Has printing support always being in gtksourceview2? We need the version of gtksourceview2 with printing support. I'll look into that too.

I've also been slowly fixing the path issues to make to them cross platform.

Thanks for your help Rainbow.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.