[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Need help to install PyQt5 with qml debug flag
From: aghiles goumeziane <aghiles.g () acmeprod ! com>
Date: 2022-03-28 21:11:15
Message-ID: a7bb3b78-20e0-fd7e-a7f3-cb79c409bfb3 () acmeprod ! com
[Download RAW message or body]
Hi,
I want to debug my qmlcode and for this I need to install pyqt5 version
5.10.1with the qmldebugger flag using:
“python3.8 configure.py--qml-debug --verbose"
But I have a problem when I run the above command.
When I install sip with apt with the commands:
“sudoapt install python3-sip"
“sudoapt install python3-sip-dev"
The last available version is Sip version 4.19.1.The program returns
Error: Unable to create the C++ code when I launch “python3.8
configure.py--qml-debug --verbose"
when itry to install sip with “python3.8 -m pip install
sip==5.5.0”,sip is not detected, ireceive the message: fatal error:
sip.h: No such file or directory when I launch “python3.8
configure.py--qml-debug --verbose"
*
My OS: Ubuntu LTS 20.04
my QT5 version: QT5 version 5.12.8
Thanks
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body vlink="#551A8B" text="#000000" link="#0B6CDA" bgcolor="#ffffff"
alink="#EE0000">
<div id="WACViewPanel_ClipboardElement" class="WACEditing EditMode
EditingSurfaceBody FireFox
WACViewPanel_DisableLegacyKeyCodeAndCharCode usehover"
spellcheck="false" style="overflow: hidden; visibility: visible;
direction: ltr;" tabindex="0" contenteditable="false">
<div class="SCXW262939725 BCX2">
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; margin-left: 0px; margin-right: 0px;
padding-left: 0px; padding-right: 0px; text-indent: 0px;"
lang="EN-US"><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
class="TextRun SCXW262939725 BCX2" lang="EN-US"><span
class="NormalTextRun SCXW262939725 BCX2">Hi,</span></span><span
class="EOP SCXW262939725 BCX2" style="font-size: 11pt;
line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335559739":160,"335559740":259}"> \
</span></p> </div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; margin-left: 0px; margin-right: 0px;
padding-left: 0px; padding-right: 0px; text-indent: 0px;"
lang="EN-US"><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
class="TextRun SCXW262939725 BCX2" lang="EN-US"><span
class="NormalTextRun SCXW262939725 BCX2">I want to debug
my </span><span class="NormalTextRun SpellingErrorV2
SCXW262939725 BCX2">qml</span><span class="NormalTextRun
SCXW262939725 BCX2"> code and for this I need to install
</span></span><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">pyqt5 version 5.10.1</span></span><span
data-contrast="auto" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
class="TextRun SCXW262939725 BCX2" lang="EN-US"><span
class="NormalTextRun SCXW262939725 BCX2"> with the </span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">qml</span><span class="NormalTextRun SCXW262939725 BCX2"> debugger flag
using:</span></span><span class="EOP SCXW262939725 BCX2"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335559739":160,"335559740":259}"> \
</span></p> </div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; margin-left: 0px; margin-right: 0px;
padding-left: 0px; padding-right: 0px; text-indent: 0px;"
lang="EN-US"><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">“python3.8 configure.</span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">py</span><span class="NormalTextRun SCXW262939725 BCX2"> --</span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">qml</span><span class="NormalTextRun SCXW262939725 BCX2">-debug
--verbose"</span></span><span class="EOP SCXW262939725
BCX2" style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335559739":160,"335559740":259}"> \
</span></p> </div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; padding-left: 0px; padding-right: 0px;
text-indent: 0px;" lang="EN-US"><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
class="TextRun SCXW262939725 BCX2" lang="EN-US"><span
class="NormalTextRun SCXW262939725 BCX2">But I have a
problem when I </span><span class="NormalTextRun
SCXW262939725 BCX2">run the above command.</span></span><span
class="EOP SCXW262939725 BCX2" style="font-size: 11pt;
line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335551550":1,"335551620":1,"335559739":160,"335559740":259}">
</span><span data-contrast="auto" style="font-size: 11pt;
line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"><br>
</span></span></p>
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; padding-left: 0px; padding-right: 0px;
text-indent: 0px;" lang="EN-US"><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">When I install sip with apt with the \
commands:</span></span><span class="EOP SCXW262939725 BCX2" style="font-size: 11pt;
line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335551550":1,"335551620" \
:1,"335559737":0,"335559739":160,"335559740":259}"> \
<br> </span></p>
</div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; margin-left: 0px; margin-right: 0px;
padding-left: 0px; padding-right: 0px; text-indent: 0px;"
lang="EN-US"><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"> “</span><span class="NormalTextRun
SpellingErrorV2 SCXW262939725 BCX2">sudo</span><span
class="NormalTextRun SCXW262939725 BCX2"> apt install
python3-sip"</span></span><span class="EOP SCXW262939725
BCX2" style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335551550":1,"335551620":1,"335559739":160,"335559740":259}"> \
</span></p> </div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; padding-left: 0px; padding-right: 0px;
text-indent: 0px;" lang="EN-US"><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"> “</span><span class="NormalTextRun
SpellingErrorV2 SCXW262939725 BCX2">sudo</span><span
class="NormalTextRun SCXW262939725 BCX2"> apt install
python3-sip-dev"</span></span></p>
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; padding-left: 0px; padding-right: 0px;
text-indent: 0px;" lang="EN-US"><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"> </span></span><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">The last available </span><span
class="NormalTextRun SCXW262939725 BCX2">version</span><span
class="NormalTextRun SCXW262939725 BCX2"> is </span></span><span
data-contrast="auto" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">Sip version 4.19.1.</span></span><span
data-contrast="auto" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"> T</span><span class="NormalTextRun SCXW262939725
BCX2">he </span><span class="NormalTextRun
SCXW262939725 BCX2">program returns </span></span><span
data-contrast="auto" style="font-size: 11pt; font-style:
italic; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
class="TextRun SCXW262939725 BCX2" lang="EN-US"><span
class="NormalTextRun SCXW262939725 BCX2">Error: Unable
to create the C++ code when I launch </span></span><span
data-contrast="auto" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">“python3.8 configure.</span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">py</span><span class="NormalTextRun SCXW262939725 BCX2"> --</span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">qml</span><span class="NormalTextRun SCXW262939725 BCX2">-debug
--verbose"</span></span><span class="EOP SCXW262939725
BCX2" style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335559739":160,"335559740":259}">
</span><span data-contrast="auto" style="font-size: 11pt;
line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"><br>
</span></span></p>
</div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; padding-left: 0px; padding-right: 0px;
text-indent: 0px;" lang="EN-US"><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"> when </span><span class="NormalTextRun
SpellingErrorV2 SCXW262939725 BCX2">i</span><span
class="NormalTextRun SCXW262939725 BCX2"> try to install
sip with “</span></span><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">python3.8 -m </span><span class="NormalTextRun
SCXW262939725 BCX2">pip install sip==5.5.0”,</span></span><span
data-contrast="auto" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2"> sip is not detected, </span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">i</span><span class="NormalTextRun SCXW262939725 BCX2"> receive the
message: </span></span><span data-contrast="auto"
style="font-size: 11pt; font-style: italic; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">fatal error: </span><span class="NormalTextRun
SpellingErrorV2 SCXW262939725 BCX2">sip.h</span><span
class="NormalTextRun SCXW262939725 BCX2">: No such file
or directory when I launch </span></span><span
data-contrast="auto" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">“python3.8 configure.</span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">py</span><span class="NormalTextRun SCXW262939725 BCX2"> --</span><span
class="NormalTextRun SpellingErrorV2 SCXW262939725 \
BCX2">qml</span><span class="NormalTextRun SCXW262939725 BCX2">-debug
--verbose"</span></span><span class="EOP SCXW262939725
BCX2" style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335551550":1,"335551620" \
:1,"335559737":0,"335559739":160,"335559740":259}"> \
</span></p> </div>
<div class="ListContainerWrapper SCXW262939725 BCX2">
<ul class="BulletListStyle1 SCXW262939725 BCX2" role="list">
<li style="display: block; margin-left: 24px; font-size:
11pt; font-family: Calibri,
"Calibri_MSFontService", sans-serif;
vertical-align: baseline; direction: ltr;"
data-leveltext="" data-font="Symbol" data-listid="2"
aria-setsize="-1" data-aria-posinset="2" role="listitem"
data-aria-level="1" class="OutlineElement Ltr
SCXW262939725 BCX2"><br>
</li>
</ul>
</div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; margin-left: 0px; margin-right: 0px;
padding-left: 0px; padding-right: 0px; text-indent: 0px;"
lang="EN-US"><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">My OS: </span></span><span data-contrast="auto"
style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">Ubuntu LTS 20.04</span></span><span class="EOP
SCXW262939725 BCX2" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335551550":1,"335551620":1,"335559739":160,"335559740":259}"> \
</span></p> </div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; margin-left: 0px; margin-right: 0px;
padding-left: 0px; padding-right: 0px; text-indent: 0px;"
lang="EN-US"><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">my QT5 version: </span></span><span
data-contrast="auto" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: bold;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">QT5 version 5.12.8</span></span><span class="EOP
SCXW262939725 BCX2" style="font-size: 11pt; line-height:
19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335551550":1,"335551620":1,"335559739":160,"335559740":259}"> \
</span></p> </div>
<div class="OutlineElement Ltr SCXW262939725 BCX2"
style="direction: ltr;">
<p class="Paragraph SCXW262939725 BCX2" style="font-weight:
normal; font-style: normal; vertical-align: baseline;
background-color: transparent; color: windowtext;
text-align: left; margin-left: 0px; margin-right: 0px;
padding-left: 0px; padding-right: 0px; text-indent: 0px;"
lang="EN-US"><span data-contrast="auto" style="font-size:
11pt; line-height: 19.425px; font-family: Calibri,
"Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;
font-weight: normal;" class="TextRun SCXW262939725 BCX2"
lang="EN-US"><span class="NormalTextRun SCXW262939725
BCX2">Thanks</span></span><span class="EOP SCXW262939725
BCX2" style="font-size: 11pt; line-height: 19.425px;
font-family: Calibri, "Calibri_EmbeddedFont",
"Calibri_MSFontService", sans-serif;"
data-ccp-props="{"201341983":0,"335551550":1,"335551620":1,"335559739":160,"335559740":259}">
<br>
</span></p>
</div>
</div>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic