MyPaint 1.2 won't open in Os X 10.11.4, installed via MacPorts


#1

I installed MyPaint using MacPorts a few months ago, and recently I ran a port upgrade and now MyPaint will not open. I looked through similar problems on MacPorts, which seemed to be solved after installing the port py27-pyobjc-cocoa and making sure XQuartz was the most recent version, however, even after doing this MyPaint won’t open. MacPorts forums offered no further help, so I thought I’d turn here! The application icon appears in the dock, then XQuartz pops open, then MyPaint icon bounces and disappears. If I try to open MyPaint while XQuartz is still running it doesn’t even bounce, it just disappears.
I’m running Os X 10.11.4 and MyPaint v. 1.2. XQuartz is v 2.7.9 and I’ll be happy to provide any other info people might need to help me solve this!


#2

You’re not alone in this situation. Running the same, but with OS X 10.11.5; and after attempting the py27-pyobjc-cocoa package fix from MacPorts the following occurs:

Marcs-MacBook-Pro:MacOS mdriftmeyer$ ./MyPaint
INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u’/opt/local’
sh: sysctl: command not found
sh: grep: command not found
sh: sw_vers: command not found
sh: grep: command not found
INFO: lib.i18n: OSX: LANG='en_US.UTF-8’
INFO: lib.i18n: OSX: LANGUAGE=u’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’
Dynamic session lookup supported but failed: launchctl terminated abnormally without any error message
Traceback (most recent call last):
File “/opt/local/bin/mypaint”, line 462, in
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)
Marcs-MacBook-Pro:MacOS mdriftmeyer$

Attempting to run against a pre-release for XQuartz does no good as it currently cannot be loaded to test against.

Given: MacPorts Version: 2.3.4
Status: Current

Marcs-MacBook-Pro:MacOS mdriftmeyer$ sudo port upgrade outdated
Password:
Nothing to upgrade.


#3

Already reported and fixed: https://github.com/mypaint/mypaint/issues/634. Please badger your port maintainers to bundle c03602f or wait for v1.2.1 to be released.


#4

So glib mapping was updated. I’ll send them a note. Thanks.


#5

Ticket submitted.

https://trac.macports.org/ticket/51743


#6

Hey! I’m trying to install MyPaint with MacPorts. After successful installation I can’t launch the application. The error message is:

INFO: mypaint: Installation layout: conventional POSIX-like structure with prefix u'/opt/local'
sh: sysctl: command not found
sh: grep: command not found
sh: sw_vers: command not found
sh: grep: command not found
Traceback (most recent call last):
  File "/opt/local/bin/mypaint", line 444, in <module>
    = get_paths()    
  File "/opt/local/bin/mypaint", line 215, in get_paths
    from lib import fileutils
  File "/opt/local/share/mypaint/lib/fileutils.py", line 31, in <module>
    import lib.gichecks  # this module can be imported early
  File "/opt/local/share/mypaint/lib/gichecks.py", line 17, in <module>
    gi.require_version('GdkPixbuf', '2.0')
AttributeError: 'module' object has no attribute 'require_version'

The gi package is installed with pip:

$ pip show gi
Name: gi
Version: 1.2
Summary: Command line to private gist. Example: gi.py myFile
Home-page: http://github.com/inconditus/gi
Author: Edward Wang
Author-email: edward.auc@gmail.com
License: MIT
Location: /usr/local/lib/python2.7/site-packages
Requires: requests

Thanks in advance!