If you install packages that are prebuilt, like the PyQtX, then they will
go to a specific site-packages location assumed to be the right one. When
you build from source, you are building against your specific python which
will install them to the same site-packages location.

This command should be able to tell you where PyQt4 was installed:
mdfind -name "PyQt4" | grep "site-packages"

I am guessing it probably installed it to the standard system python
location:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

And possibly installed pyuic4 and pyrcc4 in:
/Library/Frameworks/Python.framework/Versions/2.7/bin

If the site-packages location is not the same as
/Library/Python/2.7/site-packages
, then you will need to either copy (or symlink) it over to your proper
site-packages, or, add that site-packages location to your PYTHONPATH, from
your ~/.profile

For instance, on my system I installed PyQt4 through homebrew, so mine
lives here:
/usr/local/lib/python2.7/site-packages/PyQt4

I have an entry like this in my ~/.profile
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH




On Fri, Jul 12, 2013 at 11:55 PM, m li <[email protected]> wrote:

> As written above.
> when I run ipython on my mac(lion) shell like down below
> "ipython --gui=qt"
> it returned
> two errors
> 1.TerminalIPythonApp] GUI event loop or pylab initialization failed
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> /Library/Python/2.7/site-packages/ipython-0.13.2-py2.7.egg/IPython/lib/inputhook.pyc
> in enable_gui(gui, app)
>
> 2.  63             # import PyQt4 unconfigured
>
> ImportError: Cannot import PySide or PyQt4
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to