<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hello,</div><div><br></div><div>I’m trying to use the CoinMP library from Python 3 via ctypes. When I try to load the shared library I get the following error:</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Python 3.4.1 (default, May 19 2014, 13:10:29)&nbsp;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Type "help", "copyright", "credits" or "license" for more information.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&gt;&gt;&gt; import ctypes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&gt;&gt;&gt; lib = ctypes.CDLL('libCoinMP.dylib')</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Traceback (most recent call last):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ctypes/__init__.py", line 351, in __init__</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; self._handle = _dlopen(self._name, mode)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">OSError: dlopen(libCoinMP.dylib, 6): Symbol not found: _CbcOrClpRead_mode</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; Referenced from: /usr/local/lib/libCoinMP.dylib</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; Expected in: flat namespace</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;in /usr/local/lib/libCoinMP.dylib</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px;">However, when I&nbsp;“make test” everything runs correctly.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Output from “nm” reports the symbol is undefined:</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><div style="margin: 0px; font-size: 11px; font-family: Menlo;">U _CbcOrClpRead_mode</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px;">I am getting similar errors for the other libraries, e.g.:</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Python 3.4.1 (default, May 19 2014, 13:10:29)&nbsp;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Type "help", "copyright", "credits" or "license" for more information.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&gt;&gt;&gt; import ctypes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&gt;&gt;&gt; ctypes.CDLL('libClp.dylib')</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Traceback (most recent call last):</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ctypes/__init__.py", line 351, in __init__</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; self._handle = _dlopen(self._name, mode)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">OSError: dlopen(libClp.dylib, 6): Symbol not found: __ZN18CoinMessageHandler13checkSeverityEv</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; Referenced from: /usr/local/lib/libClp.dylib</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; Expected in: flat namespace</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;in /usr/local/lib/libClp.dylib</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Helvetica; font-size: 12px;">Running Mac OS X 10.9.5, with current CoinMP from SVN.</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Helvetica; font-size: 12px;"><br></span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Helvetica; font-size: 12px;">Kind regards,</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Helvetica; font-size: 12px;"><br></span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="font-family: Helvetica; font-size: 12px;">Josh</span></div></div></div></body></html>