Opened 8 years ago

Closed 8 years ago

#51234 closed defect (fixed)

MyPaint @1.2.0: TypeError: GLib.filename_to_utf8() takes exactly 2 arguments (4 given)

Reported by: jacbou Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: su-v, mjd@…
Port: MyPaint

Description

I'm running MacPorts 2.3.4 on two Macs with German locale.

Error message when starting up:

INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u'/opt/local'
INFO: lib.i18n: OSX: LANG='de_DE.UTF-8'
INFO: lib.i18n: OSX: LANGUAGE=u'de:en'
WARNING: mypaint: No bindtextdomain builtins found in module 'locale'.
INFO: mypaint: Trying platform-specific fallback hacks to find bindtextdomain funcs.
ERROR: mypaint: No platform-specific fallback for locating bindtextdomain is known for 'darwin'
Traceback (most recent call last):
  File "/opt/local/bin/mypaint", line 462, in <module>
    main.main(datapath, iconspath, old_confpath, version=version)
  File "/opt/local/share/mypaint/gui/main.py", line 92, in main
    lib.glib.init_user_dir_caches()
  File "/opt/local/share/mypaint/lib/glib.py", line 109, in init_user_dir_caches
    logger.debug("Init g_get_user_config_dir(): %r", get_user_config_dir())
  File "/opt/local/share/mypaint/lib/glib.py", line 71, in get_user_config_dir
    return filename_to_unicode(d_fs)
  File "/opt/local/share/mypaint/lib/glib.py", line 57, in filename_to_unicode
    ustring = GLib.filename_to_utf8(opsysstring, -1, 0, 0)
TypeError: GLib.filename_to_utf8() takes exactly 2 arguments (4 given)

Change History (8)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: ryandesign@… removed
Keywords: locale removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 8 years ago by mf2k (Frank Schima)

Port: MyPaint added; mypaint removed
Summary: mypaint @ 1.2.0 - Does not start: No platform-specific fallback for locating bindtextdomain is known for 'darwin'MyPaint @ 1.2.0 - Does not start: No platform-specific fallback for locating bindtextdomain is known for 'darwin'

comment:3 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Please ensure you've installed py27-pyobjc-cocoa by running:

sudo port install py27-pyobjc-cocoa

comment:4 in reply to:  3 Changed 8 years ago by jacbou

Replying to ryandesign@…: Both, py27-pyobjc-cocoa and py35-pyobjc-cocoa (just in case mypaint grabs the python3.5 executable) have been installed before. I uninstalled -f py27-pyobjc-cocoa and installed again. No change. Additional info: I'm using the +quartz build for everything on my system (no X11).

Please ensure you've installed py27-pyobjc-cocoa by running:

sudo port install py27-pyobjc-cocoa
Last edited 8 years ago by jacbou (previous) (diff)

comment:5 Changed 8 years ago by su-v

TypeError: GLib.filename_to_utf8() takes exactly 2 arguments (4 given)

This is a conflict with most recent glib 2.48, see this MyPaint issue at github:
https://github.com/mypaint/mypaint/issues/634

Latest mypaint git master includes the fix as discussed in the mypaint issue and launches ok; the fix was also backported to the stable 1.2 branch (a new stable release is still pending though AFAIK).

Last edited 8 years ago by su-v (previous) (diff)

comment:6 Changed 8 years ago by su-v

Cc: suv-sf@… added

Cc Me!

comment:7 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mjd@… added
Status: newassigned
Summary: MyPaint @ 1.2.0 - Does not start: No platform-specific fallback for locating bindtextdomain is known for 'darwin'MyPaint @1.2.0: TypeError: GLib.filename_to_utf8() takes exactly 2 arguments (4 given)

Has duplicate #51743.

comment:8 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.