CPA does not work after update to 10.10.1 (Yosemite)

Dear all,

I checked with 3 different computers. CPA seems not be working with OS X 10.10.1. There is a memory error and core dump before displaying file selection window. CPA was working before OS X update. Removing of CPA and installing it again does not help. When run from console:

“”"

biol-lmc-0115:MacOS sstoma$ ./CPAnalyst Traceback (most recent call last): File "/Applications/CPAnalyst.app/Contents/Resources/__boot__.py", line 312, in <module> _run('cpa.py') File "/Applications/CPAnalyst.app/Contents/Resources/__boot__.py", line 309, in _run execfile(path, globals(), globals()) File "/Applications/CPAnalyst.app/Contents/Resources/cpa.py", line 91, in <module> from classifier import Classifier File "classifier.pyc", line 7, in <module> File "datatable.pyc", line 9, in <module> File "imagetools.pyc", line 11, in <module> File "/Applications/CPAnalyst.app/Contents/Resources/lib/python2.7/matplotlib/image.py", line 21, in <module> import matplotlib._png as _png ImportError: dlopen(/Applications/CPAnalyst.app/Contents/Resources/lib/python2.7/matplotlib/_png.so, 2): Library not loaded: /usr/X11/lib/libpng12.0.dylib Referenced from: /Applications/CPAnalyst.app/Contents/Resources/lib/python2.7/matplotlib/_png.so Reason: image not found 2014-12-22 17:08:24.163 CPAnalyst[3899:890307] CPAnalyst Error Invalid memory access of location 0x60 eip=0x53ecf27 Segmentation fault: 11
“”"

Hope it will help you in nailing it,
s.

Thanks for reporting this. Have you tried the CPA trunk build? It can be downloaded here, though note that this page can take a long time to update.

Unfortunately we don’t have Yosemite here as our IT has not yet certified it, but we will see what we can do. In the meantime, a report on the trunk build performance would be appreciated!

Thanks,
David

Unfortunately similar error (CPAnalyst_r20140313192123):
"""

biol-lmc-vpn-179:MacOS sstoma$ ./CPAnalyst Traceback (most recent call last): File "/Applications/CPAnalyst.app/Contents/Resources/__boot__.py", line 320, in <module> _run() File "/Applications/CPAnalyst.app/Contents/Resources/__boot__.py", line 311, in _run exec(compile(source, path, 'exec'), globals(), globals()) File "/Applications/CPAnalyst.app/Contents/Resources/cpa.py", line 77, in <module> from classifier import Classifier File "classifier.pyc", line 7, in <module> File "datatable.pyc", line 9, in <module> File "imagetools.pyc", line 11, in <module> File "/Applications/CPAnalyst.app/Contents/Resources/lib/python2.7/matplotlib/image.py", line 21, in <module> import matplotlib._png as _png ImportError: dlopen(/Applications/CPAnalyst.app/Contents/Resources/lib/python2.7/matplotlib/_png.so, 2): Library not loaded: /usr/X11/lib/libpng12.0.dylib Referenced from: /Applications/CPAnalyst.app/Contents/Resources/lib/python2.7/matplotlib/_png.so Reason: image not found 2014-12-23 11:52:52.884 CPAnalyst[16017:1597651] CPAnalyst Error
“”"

However, I looked more closly into this: apparently instalation of Yosemite removes /usr/X11/lib/ … One solution is to locate files manually and link them again. Another, much easier and automatic is to re-install XQuartz from xquartz.macosforge.org which will setup the symlinks again. It solved a problem for me, and I can use the trunk version of CPA (I did not try with release, but I suspect it will work as well).

Hope it helps also others!

Thank you! Yes, the XQuartz reinstall is likely the solution for the release as well. We’ll check it out when we get a hold of Yosmite, but until then we will direct 10.10 users to this solution.

Thanks again,
David

And for others with this issue, apparently adding this symlink solves it too, without re-installing XQuartz:

sudo ln -s /opt/X11 /usr/X11
Ref: ask.wireshark.org/questions/363 … x-yosemite

David