Message: previous - next
Month: February 2014

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

From: "E. Liddell" <ejlddll@...>
Date: Sat, 8 Feb 2014 18:42:07 -0500
On Sat, 08 Feb 2014 17:21:39 -0600
"David C. Rankin" <drankinatty@...> wrote:

>   I do not speak python well - to me it is a snake. 

Clearly we need a mongoose. ;)

>How do I find out what is
> causing:
> Error: Unable to build mkfeatures utility.
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> and how to fix?
Start here, maybe?

Not likely to be the same problem, but it does indicate that "-w" is the
verbose switch for

The fragment that actually leads up to the test is this (or similar--not sure it's the
most current version, since I grabbed it randomly off Google):


    # Generate the program which will generate the features file.
    f = open("mkfeatures.cpp", "w")

"""#include <Python.h>
#include <stdio.h>
#include <qglobal.h>
#include <qapplication.h>

int main(int argc,char **argv)
    FILE *fp;
    QApplication app(argc,argv,0);

    if ((fp = fopen("%s","w")) == NULL)
        printf("Unable to create '%s'\\n");
        return 1;

#if !defined(WITH_THREAD) || !defined(QT_THREAD_SUPPORT)
    fprintf(fp,"-x Qt_THREAD_SUPPORT\\n");

#if !defined(Q_WS_WIN) || QT_VERSION < 0x030000 || defined(QT_NO_STYLE_WINDOWSXP)
    fprintf(fp,"-x Qt_STYLE_WINDOWSXP\\n");

#if defined(Q_OS_WIN64)
    fprintf(fp,"-x Qt_Q_LONG_IS_long\\n");
""" % (name, name))

    for feat in flist:
#if defined(QT_NO_%s)
    fprintf(fp,"-x Qt_%s\\n");
""" % (feat, feat))

    # Disable QAssistantClient for the Professional Edition.
    if "QAssistantClient" in disabled_classes:
    fprintf(fp,"-x Qt_ASSISTANTCLIENT\\n");


    return 0;


    # Build the program.
    exe = compile_qt_program("mkfeatures.cpp", include_dir=sipcfg.py_inc_dir, python=1)
    if not exe:
        sipconfig.error("Unable to build mkfeatures utility.")


So either the mkfeatures.cpp it's writing is malformed, or the includes are
screwed up.  That -w switch should tell us which.

E. Liddell