Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Robert Kern <rkern <at> enthought.com>
Subject: Re: epd
Newsgroups: gmane.comp.python.epd.user
Date: Wednesday 18th January 2012 12:37:13 UTC (over 5 years ago)
On Wed, Jan 18, 2012 at 12:32 PM, Phil Cummins 
wrote:
> Hi Robert,
>
> Many thanks for you reply. i took your advice and installed 7.2-2, and
modiffied my matplotlibrc file. But it seems now that a module named 'sip'
is not found:
>
> $ more ~/.matplotlib/matplotlibrc
> backend : Qt4Agg
> $ python basic_example.py
> Traceback (most recent call last):
>  File "basic_example.py", line 2, in 
>    import matplotlib.pyplot as plt
>  File
"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/matplotlib/pyplot.py",
line 95, in 
>    new_figure_manager, draw_if_interactive, _show = pylab_setup()
>  File
"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/matplotlib/backends/__init__.py",
line 25, in pylab_setup
>    globals(),locals(),[backend_name])
>  File
"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/matplotlib/backends/backend_qt4agg.py",
line 12, in 
>    from backend_qt4 import QtCore, QtGui, FigureManagerQT,
FigureCanvasQT,\
>  File
"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/matplotlib/backends/backend_qt4.py",
line 23, in 
>    from qt4_compat import QtCore, QtGui, _getSaveFileName, __version__
>  File
"/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/matplotlib/backends/qt4_compat.py",
line 36, in 
>    import sip
> ImportError: No module named sip
>
> Can someone say how I might be able to fix this?

sip is a support module for PyQt4. Sorry, it looks like I have
environment variables that select PySide for those libraries that try
to support both PySide and PyQt4, like ETS and matplotlib. Set the
environment variable QT_API=pyside before executing the scripts:

[~]$ cd
/Library/Frameworks/EPD64.framework/Versions/Current/Examples/matplotlib-1.1.0/animation
[animation]$ QT_API=pyside ../../../bin/python basic_example.py

-- 
Robert Kern
Enthought
_______________________________________________
EPD-Users mailing list
[email protected]
https://mail.enthought.com/mailman/listinfo/epd-users
 
CD: 3ms