[PyKDE] Help needed with SIP

Jon jjhome at fire-bug.co.uk
Wed Aug 22 02:40:18 BST 2001

Hello Gerard

I upgraded to PyQt 2.5 and SIP 2.5. Heres what I got.

As you can see python setup.py build_ext gave an error.

[john at localhost PyMMM-0.0.1]$ python setup.py build_ext
running build_ext
generating MMM/MMM.py from sip/MMM.sip, sip/CCC.sip
/usr/bin/sip -I sip -I /usr/share/sip/qt -c MMM -t Qt_2_3_0 sip/MMM.sip
...fixing by means of fixmmm.fix(dir, name)
...fixing the sip include bugs
g++ -g -O2 -Wall -Wstrict-prototypes -fno-exceptions -fPIC -I/usr/lib/qt2/include -I/usr/include/sip -I/home/john/src/PyMMM-0.0.1/MMM -I/usr/include/python2.1 -c MMM/s
ip_helper.cpp -o sip_helper.o
g++ sip_helper.o -L/usr/lib/python2.1/site-packages -o MMM/sip_helper
"MMM/sip_helper" has made "MMM/sipMMMVersion.h"
g++ -E -I/usr/include/python2.1 -o MMM/moc_sipMMMProxyMMM.h
g++: No input files
error: command 'g++' failed with exit status 1

Same with --force on the end.

If I run python setup.py build_ext again I get this:

[john at localhost PyMMM-0.0.1]$ python setup.py build_ext
running build_ext
skipping MMM/MMM.py (inputs unchanged)
building 'libMMMcmodule' extension
error: file 'MMM/moc_CCC.cpp' does not exist

till I manually delete stuff to force a full rebuild.

and trying to run the example gives:

[john at localhost PyMMM-0.0.1]$ python examples/xmmm.py
Traceback (most recent call last):
  File "examples/xmmm.py", line 17, in ?
    from MMM import *
ImportError: No module named MMM

I checked all the variables in setup.py and they did not need changing.

Am I doing something stupid ?

You said the readme explains the patch. It mentions a patch but does not say what to do to apply it. I have not been doing Linux for long so I need dummy instructions for this ?

Does running python setup.py build_ext apply the patch ?

More information about the PyQt mailing list