<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 10/5/10 11:10 AM, Feat wrote:
<blockquote cite="mid:p06020400c8d08fcf6523@%5B192.168.1.11%5D"
type="cite">
<pre wrap="">hi there!
Im running Mac OS X 10.5.8 and Python 2.5.2;
having successfully installed:
- the latest Qt SDK I could find [mac open source]
- the latest SIP [4.11.1] that I succeeded to build (1)
I should be able to install PyQt 4.7.7, but even the first configure phase (2) fails when invoking a "QT" command that doesn't exist:
</pre>
<blockquote type="cite">
<pre wrap="">Qt v4.7.0 free edition is being used.
Qt is built as a framework.
SIP 4.11.1 is being used.
... ... ...
Generating the C++ source for the QtCore module...
sh: QT: command not found
</pre>
</blockquote>
<br>
</blockquote>
Ok, I'm getting a bit closer.<br>
The only location where the "QT" string exists in exactly that case<br>
is line 1819 of configure.py in function get_qt_configuration().<br>
The f.write creates qtdir.pro and writes (in my case)<br>
<br>
<blockquote>
<pre><tt>CONFIG += x86</tt></pre>
<pre><tt>QT = core</tt></pre>
<pre><tt># This is for certain broken Linux distros and is needed to make sure that</tt></pre>
<pre><tt># QT_SHARED is properly defined.</tt></pre>
<pre><tt>CONFIG += link_prl</tt></pre>
<pre><tt>TARGET = qtdirs</tt></pre>
<pre><tt>SOURCES = qtdirs.cpp</tt></pre>
</blockquote>
You don't have set that config extra, so your first line in the file
is<br>
<pre><tt><tt>QT = core</tt></tt></pre>
I can generate your error message this way:<br>
<br>
<blockquote>
<pre><tt>$ sh -c "QT = core"
sh: QT: command not found
</tt></pre>
</blockquote>
That is wrong sh syntax of course, no white space allowed.<br>
For some reason that I don't understand yet, the qtdirs.pro<br>
appears to get executed by sh, although it is meant as input<br>
file for qmake.<br>
<br>
It is hard to guess what's going wrong, but it looks like some<br>
misconfiguration of your machine, maybe you can check qmake,<br>
maybe a crosslink with /bin/sh, or something else is weird:<br>
<br>
<blockquote>
<pre><tt>$ which -a qmake</tt></pre>
<pre><tt>/usr/bin/qmake</tt></pre>
<pre><tt>$ qmake -v</tt></pre>
<pre><tt>QMake version 2.01a</tt></pre>
<pre><tt>Using Qt version 4.7.0 in /Library/Frameworks</tt></pre>
<pre><tt>$ </tt></pre>
</blockquote>
Or do you use some 3rd party python executable, anything
non-standard?<br>
Anything interfering with the install that overwrites files?<br>
<br>
As a last resort, if you cannot find a clue, use pdb to debug
configure.py:<br>
Start at the last visible working point, that is line 1502, and add<br>
<br>
import pdb; pdb.set_trace()<br>
<br>
Then start the installation. It should stop with the output<br>
<br>
<blockquote>
<pre>Generating the C++ source for the QtCore module...
</pre>
</blockquote>
and give you the pdb prompt. Then step over line, using the "s"<br>
key, until you get the but. Then restart and use the "n" command<br>
to dig into the called functions. This way you should be able to
find<br>
out what it is trying to execute.<br>
<br>
Let me know if that gets you any further.<br>
<br>
cheers -- chris<br>
<pre class="moz-signature" cols="72">--
Christian Tismer :^) <a class="moz-txt-link-rfc2396E" href="mailto:tismer@stackless.com"><mailto:tismer@stackless.com></a>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* <a class="moz-txt-link-freetext" href="http://starship.python.net/">http://starship.python.net/</a>
14109 Berlin : PGP key -> <a class="moz-txt-link-freetext" href="http://wwwkeys.pgp.net/">http://wwwkeys.pgp.net/</a>
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? <a class="moz-txt-link-freetext" href="http://www.stackless.com/">http://www.stackless.com/</a></pre>
</body>
</html>