trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: July 2014

Re: [trinity-devel] R: [trinity-devel] python-tqt FTBFS

From: Michael Howard <mike@...>
Date: Sun, 06 Jul 2014 13:00:24 +0100
On 05/07/2014 13:47, Michele Calgaro wrote:
> Hi Mike,
> sorry for the late reply, I am going through a pretty busy period recently.
Hey, no problem.
>> 'python-sip-tqt-dbg ' is installed, as part of the build sequence,
>> i.e. after each suite/prog is built (tqt3, tqtinterface etc) it is
>> automatically installed and the next build sequence starts. Perhaps
>> I'll try not installing and let the build sequence find and install
>> the dependencies.
> If I understand correctly from the above, you build a module/prog, then install it in your system, then move to the next one and so on. Correct?
> If so, here comes the next question: which command/tool do you use for building a module? debuild / pbuilder? dpkg-buildpackage? manual invocation of fakeroot debian/rules binary? Others?

Basically (using my own script to do various things befoore and after) I 
use tde-packaging environment and the commands 'mk-build-deps -ir 
debian/control' and 'dpkg-buildpackage -b -B -us -uc'

just running (command taken from rules file);

python configure.py \
-c -n /usr/include/tqscintilla \
-o /usr/lib
-u -j 10
-d /usr/lib/python2.7/site-packages/python_tqt \
-l /usr/include/python2.7 \
-v /usr/share/sip/tqt
-m /usr/lib/python2.7/config

in a copy of the source directoru succeeds so I guess there is something 
wrong with my build environment.

> Perhaps python-sip-tqt-dbg is not installed in the right environment. For example you could have python-sip-tqt-dbg installed in your system, but debuild may not be able to find it.... or there may be other combinations.
I don't know much at all about python to be honest.

'python-sip-tqt-dbg' is definitely installed in the correct environment 
but 'getattr(sys, "pydebug")' is returning false, causing the failure, I 
think :)

>
> Based on "how you build", let's see what the next step is, even though it seems strange that the problem came up all of a sudden in wheezy (jessie is a different beast, and there is no guarantee that what works now will still work the next hour.... been there many times :) )
>
> Can you also upload a build log? It may help as well.

Output of the build attached.

Cheers,
Mike.

-- 


dh_testdir
dh_testroot
dh_prep
dh_testdir
dh_testroot
dh_install
dh_installdocs
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
dpkg-deb: building package `python-tqt-build-deps' in `../python-tqt-build-deps_1.0_all.deb'.

The package has been created.
Attention, the package has been created in the current directory,
not in ".." as indicated by the message above!
(Reading database ... 69747 files and directories currently installed.)
Preparing to replace python-tqt-build-deps 1.0 (using python-tqt-build-deps_1.0_all.deb) ...
Unpacking replacement python-tqt-build-deps ...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python-tqt-build-deps (1.0) ...
dpkg-buildpackage: source package python-tqt
dpkg-buildpackage: source version 4:14.0.0-0debian7.5.0
dpkg-buildpackage: source changed by root <root@snifferdog>
 dpkg-source --before-build python-tqt
dpkg-buildpackage: host architecture amd64
dpkg-source: info: using options from python-tqt/debian/source/options: --compression=xz --compression-level=9 --diff-ignore=.*
 debian/rules clean
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
dh_testdir
dh_testroot
rm -rf build-2.6 build-2.7 dbg-build-2.6 dbg-build-2.7 
rm -f *-stamp
dh_clean
 dpkg-source -b python-tqt
dpkg-source: info: using options from python-tqt/debian/source/options: --compression=xz --compression-level=9 --diff-ignore=.*
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building python-tqt using existing ./python-tqt_14.0.0.orig.tar.gz
dpkg-source: info: building python-tqt in python-tqt_14.0.0-0debian7.5.0.debian.tar.xz
dpkg-source: info: building python-tqt in python-tqt_14.0.0-0debian7.5.0.dsc
 debian/rules build
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
dh_testdir
dh_testdir
dh_testdir
dh_testdir
mkdir -p build-2.6
cd build-2.6 && echo yes \
                | python2.6 ../configure.py \
                        -c -n /usr/include/tqscintilla \
                        -o /usr/lib -u -j 10 \
                        -d /usr/lib/python2.6/dist-packages/python_tqt \
                        -l /usr/include/python2.6 \
                        -v /usr/share/sip/tqt \
                        -m /usr/lib/python2.6/config \
                        CXXFLAGS_RELEASE="" CXXFLAGS="-O1 "-I/usr/include/tqt"" STRIP=""
mkdir -p build-2.7
mkdir -p dbg-build-2.6
cd build-2.7 && echo yes \
                | python2.7 ../configure.py \
                        -c -n /usr/include/tqscintilla \
                        -o /usr/lib -u -j 10 \
                        -d /usr/lib/python2.7/dist-packages/python_tqt \
                        -l /usr/include/python2.7 \
                        -v /usr/share/sip/tqt \
                        -m /usr/lib/python2.7/config \
                        CXXFLAGS_RELEASE="" CXXFLAGS="-O1 "-I/usr/include/tqt"" STRIP=""
cd dbg-build-2.6 && echo yes \
                | python2.6-dbg ../configure.py \
                        -c -n /usr/include/tqscintilla \
                        -o /usr/lib -u -j 10 \
                        -d /usr/lib/python2.6/dist-packages/python_tqt \
                        -l /usr/include/python2.6_d \
                        -v /usr/share/sip/tqt \
                        -m /usr/lib/python2.6/config_d \
                        CXXFLAGS_RELEASE="" CXXFLAGS="-O0 -g -I/usr/include/tqt" STRIP=""
mkdir -p dbg-build-2.7
cd dbg-build-2.7 && echo yes \
                | python2.7-dbg ../configure.py \
                        -c -n /usr/include/tqscintilla \
                        -o /usr/lib -u -j 10 \
                        -d /usr/lib/python2.7/dist-packages/python_tqt \
                        -l /usr/include/python2.7_d \
                        -v /usr/share/sip/tqt \
                        -m /usr/lib/python2.7/config_d \
                        CXXFLAGS_RELEASE="" CXXFLAGS="-O0 -g -I/usr/include/tqt" STRIP=""
Traceback (most recent call last):
  File "../configure.py", line 31, in <module>
    from sip4_tqt import sipconfig
  File "/usr/lib/python2.6/dist-packages/sip4_tqt/sipconfig.py", line 10, in <module>
    raise ImportError, 'No module named sipconfig; package python-sip-tqt-dbg not installed'
ImportError: No module named sipconfig; package python-sip-tqt-dbg not installed
[16791 refs]
make: *** [dbg-build-2.6/configure-stamp] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
  File "../configure.py", line 31, in <module>
    from sip4_tqt import sipconfig
  File "/usr/lib/python2.7/dist-packages/sip4_tqt/sipconfig.py", line 10, in <module>
    raise ImportError, 'No module named sipconfig; package python-sip-tqt-dbg not installed'
ImportError: No module named sipconfig; package python-sip-tqt-dbg not installed
[22203 refs]
make: *** [dbg-build-2.7/configure-stamp] Error 1
This is the GPL version of PyTQt 3.18.1 (licensed under the GNU General Public
License) for Python 2.7.3 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? TQScintilla 1.7.1 is being used.
Checking to see if the qtcanvas module should be built...
Checking to see if the qtnetwork module should be built...
Checking to see if the qttable module should be built...
Checking to see if the qtxml module should be built...
Checking to see if the qtgl module should be built...
Checking to see if the qtui module should be built...
Checking to see if the qtsql module should be built...
Checking to see if the qtext module should be built...
Checking to see if the TQAssistantClient class is available...
Creating features file...
Checking to see if the TQCDEStyle class is built in...
Checking to see if the TQCDEStyle class is built in...
Checking to see if the TQInterlaceStyle class is built in...
Checking to see if the TQInterlaceStyle class is built in...
Checking to see if the TQMotifStyle class is built in...
Checking to see if the TQMotifStyle class is built in...
Checking to see if the TQMotifPlusStyle class is built in...
Checking to see if the TQMotifPlusStyle class is built in...
Checking to see if the TQPlatinumStyle class is built in...
Checking to see if the TQPlatinumStyle class is built in...
Checking to see if the TQSGIStyle class is built in...
Checking to see if the TQSGIStyle class is built in...
Checking to see if the TQWindowsXPStyle class is built in...
Checking to see if the TQWindowsXPStyle class is built in...
Checking to see if the TQWindowsStyle class is built in...
Checking to see if the TQWindowsStyle class is built in...
TQt v3.5.0 free edition is being used.
SIP 4.10.5 is being used.
These PyTQt modules will be built: qt qtcanvas qtnetwork qttable qtxml qtgl
qtui qtsql qtext.
Support for these TQt classes has been disabled: TQAssistantClient
TQInterlaceStyle TQWindowsXPStyle.
The PyTQt modules will be installed in
/usr/lib/python2.7/dist-packages/python_tqt.
The PyTQt .sip files will be installed in /usr/share/sip/tqt.
The TQt header files are in /usr/share/tqt3/include.
The tqt-mt TQt library is in /usr/share/tqt3/lib.
pyuic will be installed in /usr/bin.
pylupdate will be installed in /usr/bin.
Generating the C++ source for the qt module...
Creating the Makefile for the qt module...
Generating the C++ source for the qtext module...
Creating the Makefile for the qtext module...
Generating the C++ source for the qtgl module...
Creating the Makefile for the qtgl module...
Generating the C++ source for the qtui module...
Creating the Makefile for the qtui module...
Generating the C++ source for the qtcanvas module...
Creating the Makefile for the qtcanvas module...
Generating the C++ source for the qtnetwork module...
Creating the Makefile for the qtnetwork module...
Generating the C++ source for the qtsql module...
Creating the Makefile for the qtsql module...
Generating the C++ source for the qttable module...
Creating the Makefile for the qttable module...
Generating the C++ source for the qtxml module...
Creating the Makefile for the qtxml module...
Creating top level Makefile...
Creating pyuic Makefile...
Creating pylupdate Makefile...
Creating pyqtconfig.py...
touch build-2.7/configure-stamp
This is the GPL version of PyTQt 3.18.1 (licensed under the GNU General Public
License) for Python 2.6.8 on linux2.

Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.

Do you accept the terms of the license? TQScintilla 1.7.1 is being used.
Checking to see if the qtcanvas module should be built...
Checking to see if the qtnetwork module should be built...
Checking to see if the qttable module should be built...
Checking to see if the qtxml module should be built...
Checking to see if the qtgl module should be built...
Checking to see if the qtui module should be built...
Checking to see if the qtsql module should be built...
Checking to see if the qtext module should be built...
Checking to see if the TQAssistantClient class is available...
Creating features file...
Checking to see if the TQCDEStyle class is built in...
Checking to see if the TQCDEStyle class is built in...
Checking to see if the TQInterlaceStyle class is built in...
Checking to see if the TQInterlaceStyle class is built in...
Checking to see if the TQMotifStyle class is built in...
Checking to see if the TQMotifStyle class is built in...
Checking to see if the TQMotifPlusStyle class is built in...
Checking to see if the TQMotifPlusStyle class is built in...
Checking to see if the TQPlatinumStyle class is built in...
Checking to see if the TQPlatinumStyle class is built in...
Checking to see if the TQSGIStyle class is built in...
Checking to see if the TQSGIStyle class is built in...
Checking to see if the TQWindowsXPStyle class is built in...
Checking to see if the TQWindowsXPStyle class is built in...
Checking to see if the TQWindowsStyle class is built in...
Checking to see if the TQWindowsStyle class is built in...
TQt v3.5.0 free edition is being used.
SIP 4.10.5 is being used.
These PyTQt modules will be built: qt qtcanvas qtnetwork qttable qtxml qtgl
qtui qtsql qtext.
Support for these TQt classes has been disabled: TQAssistantClient
TQInterlaceStyle TQWindowsXPStyle.
The PyTQt modules will be installed in
/usr/lib/python2.6/dist-packages/python_tqt.
The PyTQt .sip files will be installed in /usr/share/sip/tqt.
The TQt header files are in /usr/share/tqt3/include.
The tqt-mt TQt library is in /usr/share/tqt3/lib.
pyuic will be installed in /usr/bin.
pylupdate will be installed in /usr/bin.
Generating the C++ source for the qt module...
Creating the Makefile for the qt module...
Generating the C++ source for the qtext module...
Creating the Makefile for the qtext module...
Generating the C++ source for the qtgl module...
Creating the Makefile for the qtgl module...
Generating the C++ source for the qtui module...
Creating the Makefile for the qtui module...
Generating the C++ source for the qtcanvas module...
Creating the Makefile for the qtcanvas module...
Generating the C++ source for the qtnetwork module...
Creating the Makefile for the qtnetwork module...
Generating the C++ source for the qtsql module...
Creating the Makefile for the qtsql module...
Generating the C++ source for the qttable module...
Creating the Makefile for the qttable module...
Generating the C++ source for the qtxml module...
Creating the Makefile for the qtxml module...
Creating top level Makefile...
Creating pyuic Makefile...
Creating pylupdate Makefile...
Creating pyqtconfig.py...
touch build-2.6/configure-stamp
dpkg-buildpackage: error: debian/rules build gave error exit status 2