Message: previous - next
Month: February 2014

Re: [trinity-devel] python-tqt FTBFS - ImportError: No module named sip4_tqt

From: "David C. Rankin" <drankinatty@...>
Date: Wed, 05 Feb 2014 17:09:04 -0600
On 02/05/2014 04:58 PM, Slávek Banko wrote:
> On Wednesday 05 of February 2014 23:56:31 David C. Rankin wrote:
>> On 02/05/2014 04:34 PM, David C. Rankin wrote:
>>> What broke?
>>>   This package built fine 10 days ago? It doesn't even begin to build
>>> now. Just the error:
>>> Traceback (most recent call last):
>>>   File "", line 31, in <module>
>>>     from sip4_tqt import sipconfig
>>> ImportError: No module named sip4_tqt
>>> Huh?
>> Or should it be what broke sip4_tqt. sip4_tqt built without error, but
>> damnit, it isn't working anymore -- what changed? why is there no module
>> named sip4_tqt for python_tqt to find??
> Try patches from bug 1790.
> Slavek

I've read through it until I'm blue in the face and I can't figure out what it
means to my build script. How are you building it? Obviously my build for
python-sip and python2-sip build but are now completely broken. I'm building with:

  CFLAGS="${CFLAGS} -I/usr/include/tqt -I${TDEDIR}/include -I${QTDIR}/include"

  cd ${srcdir}

  ## copy source for Python build
  cp -r ${pkgbase#*-} sipPy3

  ## Python version
  msg "Running python (python3 based sip)...."
  cd ${srcdir}/sipPy3
  python CFLAGS="${CFLAGS}"
  msg "Building - tde-sip (python3 based sip)..."
  make $NUMJOBS

  ## Python2 version
  msg "Running python2 (sip4-tqt)...."
  cd ${srcdir}/${pkgbase#*-}
  python2 CFLAGS="${CFLAGS}"
  msg "Building - ${pkgbase}..."
  make $NUMJOBS


# python-sip
package_tde-sip() {
  cd "${srcdir}/sipPy3"
  make -j1 DESTDIR="${pkgdir}" install

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

# python2-sip
package_tde-sip4-tqt() {
  cd "${srcdir}/${pkgbase#*-}"
  make -j1 DESTDIR="${pkgdir}" install

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  # Provided by tde-sip
  rm "${pkgdir}/usr/bin/sip"

  But the resulting packages DO NOT WORK for python-tqt. How does the build need
to change to accommodate 1790? I really don't understand what 1790 did??

David C. Rankin, J.D.,P.E.