<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'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've had trying to install these two and the number of similar experiences I'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'm trying to compile the given c++ file to build a Python Extension, but the setup.py doesn't work as it should be linking in CoreFoundation, but it is not.
</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); "> 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); ">
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> File "<stdin>", line 1, in ?
<br> File "p4.py", line 19, in ?<br> 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> </div>