<div><br class="webkit-block-placeholder"></div>Hello everyone,<div><br class="webkit-block-placeholder"></div><div>Short time lurker, first time poster.</div><div><br class="webkit-block-placeholder"></div><div>I&#39;m trying to install P4Python and MySQLdb, but am running into a host of issues.
</div><div><br class="webkit-block-placeholder"></div><div>The trouble I&#39;ve had trying to install these two and the number of similar experiences I&#39;ve read through googling leads me to believe that Python can be difficult on the Mac.
</div><div><br class="webkit-block-placeholder"></div><div>I will talk about P4Python as it seems to be the easier of the two. I&#39;m trying to compile the given c++ file to build a Python Extension, but the setup.py doesn&#39;t work as it should be linking in CoreFoundation, but it is not.&nbsp;
</div><div><br class="webkit-block-placeholder"></div><blockquote class="webkit-indent-blockquote"><span class="Apple-style-span" style="color: rgb(102, 102, 102); ">ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/P4Client.so: Symbol not found: ___CFConstantStringClassReference
</span><br><span class="Apple-style-span" style="color: rgb(102, 102, 102); ">&nbsp;&nbsp;Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/P4Client.so</span><br><span class="Apple-style-span" style="color: rgb(102, 102, 102); ">
&nbsp;&nbsp;Expected in: dynamic lookup</span></blockquote><div><div><br class="webkit-block-placeholder"></div></div><div>I tried to use Xcode to build something that can go where the site-packages go. But I have no idea what to build. It is not a dynamic library, it is not a relocatable object, I get this error when I try to import:
</div><div><br class="webkit-block-placeholder"></div><blockquote class="webkit-indent-blockquote"><font class="Apple-style-span" color="#666666">Traceback (most recent call last):<br>&nbsp;&nbsp;File &quot;&lt;stdin&gt;&quot;, line 1, in ?
<br>&nbsp;&nbsp;File &quot;p4.py&quot;, line 19, in ?<br>&nbsp;&nbsp; &nbsp;import P4Client<br>ImportError: Inappropriate file type for dynamic loading</font></blockquote><div><div><br class="webkit-block-placeholder"></div><div>Has anyone done this? How do I build a Python Extension using Xcode? Or perhaps even better, how do I get 
setup.py to work on the Mac?</div><div><br class="webkit-block-placeholder"></div><div>Thanks for any and all tips!</div><div>Lyndsey Ferguson</div><br>&nbsp;</div>