Thursday, May 21, 2015

Getting py2app working in Yosemite

So things did not work out of the box form me. The first trouble was when importing cv2 (opencv) libraries. For me I was able to get past this problem using hombrews python instead of the Mac's built-in version. 

Then I run into two other errors, 

  • File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/macholib-1.6-py2.7.egg/macholib/",  line 49, in locate loader=loader.filename) TypeError: dyld_find() got an unexpected keyword argument 'loader'

The problem was with macholib back to the definition of dyld_find() in
def dyld_find(name, executable_path=None, env=None, loader_path=None):

          Changing line 49 in macOGraph from loader=loader.filename) to loader_path=loader.filename) fixed the problem

  • "ValueError: New Mach-O header is too large to relocate in…" Recompiling pygtk did the trick:
    brew install pygtk -headerpad_max_install_names

Evernote helps you remember everything and get organized effortlessly. Download Evernote.

No comments:

Post a Comment