discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] SIP, PyQt, PyQWT API Conflicts


From: Michael Dickens
Subject: Re: [Discuss-gnuradio] SIP, PyQt, PyQWT API Conflicts
Date: Tue, 16 Jul 2013 16:33:06 -0400

Joe and I had a discussion off-list.  Here's the end-result, confirmed via both 
internet search as well as local testing:

The error generated by the Python command:

{{{
> import PyQt4.Qwt5 as Qwt
 File 
"/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/Qwt5/__init__.py",
 line 32, in <module>
   from Qwt import *
RuntimeError: the sip module implements API v10.0 but the PyQt4.Qwt5.Qwt module 
requires API v8.1
}}}

is the result of PyQwt being compiled using SIP API 8.1 (SIP version 4.13.3), 
while the currently installed SIP API is 10.0 (SIP version 4.14.7).  Depending 
on what one is trying to do with SIP, the above might actually work; and SIP 
provides a means to allow it to work by using a special import command (or, at 
least that's my reading of the code).

I do not see this issue within MacPorts because the MacPorts maintainers been 
diligent about updating SIP dependencies whenever SIP is updated.  I had 
thought MacPorts would catch SIP updates and force reinstallation of 
dependencies (via a new binary or from source), but in my testing it does not 
automatically do so.  Hence, that task now falls back onto the maintainer of 
SIP in MacPorts, who happens to be me; lucky me!) . - MLD




reply via email to

[Prev in Thread] Current Thread [Next in Thread]