Here's a quick note about getting rid of PySide errors in Eclipse if you're getting them - I installed PySide and all the examples work just fine, but Eclipse is flagging everything PySide-related as an error. You have to do a couple things:
- PySide might have been installed in a non-standard location:
- In Spotlight, search for "PySide", probably limiting to the /Library directory
- If you find the PySide folder, click it to see where it got installed - in my case, it was installed at /Library/Python/2.7/site-packages/PySide, even though the /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 could import PySide without any trouble
- If this is the case with you, go to Eclipse -> Preferences -> PyDev -> Interpreter - Python -> Libraries
- Click "New Folder"
- Navigate to the site-packages directory that contains PySide (not the PySide directory itself!)
- Like PyQt4, PySide wraps .so ("shared object") files, not actual python, so you'll also need to:
- In the same screen (Eclipse -> Preferences -> PyDev -> Interpreter - Python), click the "Forced Builtins" tab, click "New...", type "PySide", and click "OK"