[yt-users] yt unable to find sip module

Nathan Goldbaum nathan12343 at gmail.com
Tue Sep 3 10:02:24 PDT 2013


The specific error you're seeing is from not having PyQT installed.  This
package is the python bindings for the qt graphics library.  I'm a little
puzzled that the matplotlib installer will default to the QTAgg backend
when a system does not have PyQT installed, but it looks like this is the
way it is.

I could see two ways to fix this.  Firs, you could try installing PyQT:

sudo apt-get install python-qt4

That should also install the SIP module and satisfy the ImportError you're
seeing.  There might be more packages you'll need after that so there might
be further ImportErrors.

You could also try switching your matplotlib backend.  You'll need to
create a file named .matplotlibrc in your home folder (if it doesn't
already exist), and add a line that looks like this:

backend : TkAgg

For more detail about matplotlib's configuration section, take a look at
this: http://matplotlib.org/users/customizing.html

Cheers,

Nathan


On Tue, Sep 3, 2013 at 9:43 AM, Gary Foreman <gforema2 at illinois.edu> wrote:

> Hi Nathan,
>
> Simply trying to run iyt produces the error. Here's a link with the error
> output I'm receiving http://pastebin.com/j11nKn58
>
> Thanks for your help,
> Gary
>
>
> On Tue, Sep 3, 2013 at 11:25 AM, Nathan Goldbaum <nathan12343 at gmail.com>wrote:
>
>> Hi Gary,
>>
>> I don't think I've seen this before.
>>
>> Can you paste the a small script that triggers this, along with the full
>> traceback you get when the script errors out?
>>
>> Cheers
>>
>> Nathan
>>
>>
>> On Monday, September 2, 2013, Gary Foreman wrote:
>>
>>> Hello,
>>>
>>> Suddenly my yt distribution seems to be broken because it cannot find
>>> the module sip. Sip appears to be a python/C interface that is called by
>>> matplotlib.pyplot. I have tried a few things to resolve the issue, none of
>>> which have worked. I've tried: yt update --all, pip install sip, and
>>> apt-get install yt using the repository mentioned on the Get YT page. pip
>>> install and apt-get install fail for separate reasons, which I can explain
>>> in a future email if necessary.
>>>
>>> Since first encountering this problem, I have updated my OS because I
>>> realized I was using an outdated version of Ubuntu. I am now running Ubuntu
>>> 12.4 LTS. The OS update did not resolve the issue.
>>>
>>> It seems worth mentioning that the default system python distribution is
>>> working fine and I am able to import pyplot as well as sip without a
>>> problem. During a quick search of the yt distribution, I did not find the
>>> same sip related files that I have in my system's python distribution.
>>>
>>> Also, as of Friday, things are working fine with the yt distribution I
>>> have on my Mac laptop.
>>>
>>> Thanks very much in advance for your help. Please let me know if you
>>> would like me to post some of the error messages I have received from the
>>> few solutions that I've tried.
>>>
>>> Gary
>>>
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130903/07568c36/attachment.html>


More information about the yt-users mailing list