[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: AW: RuntimeError: the foo_a module failed to register with the sip module
From: Marian Thomsen <marian.th () outlook ! de>
Date: 2021-01-25 13:43:45
Message-ID: AM0PR0502MB3764DA7D486AEF3CABA55FEC96BD0 () AM0PR0502MB3764 ! eurprd05 ! prod ! outlook ! com
[Download RAW message or body]
That is almost how I configured everything, except I do not have a toplevel package \
so I left everything out that containes examples.sip.
Also the package project example does not show the content from examples.sip. What \
does it contain and where should it be? ________________________________
Von: Phil Thompson <phil@riverbankcomputing.com>
Gesendet: Montag, 25. Januar 2021 13:00
An: Marian Thomsen <marian.th@outlook.de>
Cc: pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com>
Betreff: Re: RuntimeError: the foo_a module failed to register with the sip module
On 25/01/2021 07:59, Marian Thomsen wrote:
> Hello,
>
> I get this error when trying to do %import foo_a.sip in foo_b.sip.
> I try to import and use foo_b in the test_b.py file.
>
> This is my project structure:
>
> module_b foo_b.cpp
> foo_b.h
> project.toml
> foo_b.sip <-- here I try to %import foo_a.sip
> test_b.py
>
> module_a foo_a.cpp
> foo_a.h
> project.toml
> foo_a.sip
> test_a.py
>
> In each project module has its own dependencies in the .toml file
> under [tool.sip.bindings.foo_x ]. The dependencies of module_a are
> included under [tool.sip.bindings.foo_b].
> If I include a seperate binding set in the .toml file of module_b like
> [tool.sip.bindings.foo_a], I must define sip-module under
> [tool.sip.project] and I get another error.
>
> What is the best way to include module_a in module_b and still be able
> to build each module seperatly with sip-install?
See the example in the docs...
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.riverbankcomput \
ing.com%2Fstatic%2FDocs%2Fsip%2Fexamples.html%23package-projects&data=04%7C01%7C%7 \
C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C6374717 \
28146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haW \
wiLCJXVCI6Mn0%3D%7C1000&sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2Bf8RdRZ4uctM%3D&reserved=0
Phil
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> That is almost how I configured everything, except I do not \
have a toplevel package so I left everything out that containes examples.sip.</div> \
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> Also the package project example does not show the content \
from examples.sip. What does it contain and where should it be?<br> </div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>Von:</b> Phil Thompson \
<phil@riverbankcomputing.com><br> <b>Gesendet:</b> Montag, 25. Januar 2021 \
13:00<br> <b>An:</b> Marian Thomsen <marian.th@outlook.de><br>
<b>Cc:</b> pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com><br>
<b>Betreff:</b> Re: RuntimeError: the foo_a module failed to register with the sip \
module</font> <div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On 25/01/2021 07:59, Marian Thomsen wrote:<br>
> Hello,<br>
> <br>
> I get this error when trying to do %import foo_a.sip in foo_b.sip.<br>
> I try to import and use foo_b in the test_b.py file.<br>
> <br>
> This is my project structure:<br>
> <br>
> module_b foo_b.cpp<br>
> \
foo_b.h<br> > \
project.toml<br> > \
foo_b.sip <-- here I try to %import foo_a.sip<br> \
> \
test_b.py<br> > <br>
> module_a foo_a.cpp<br>
> \
foo_a.h<br> > \
project.toml<br> > \
foo_a.sip<br> > \
test_a.py<br> > <br>
> In each project module has its own dependencies in the .toml file<br>
> under [tool.sip.bindings.foo_x ]. The dependencies of module_a are<br>
> included under [tool.sip.bindings.foo_b].<br>
> If I include a seperate binding set in the .toml file of module_b like<br>
> [tool.sip.bindings.foo_a], I must define sip-module under<br>
> [tool.sip.project] and I get another error.<br>
> <br>
> What is the best way to include module_a in module_b and still be able<br>
> to build each module seperatly with sip-install?<br>
<br>
See the example in the docs...<br>
<br>
<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.riverb \
ankcomputing.com%2Fstatic%2FDocs%2Fsip%2Fexamples.html%23package-projects&amp;data \
=04%7C01%7C%7C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1% \
7C0%7C637471728146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiL \
CJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2 \
Bf8RdRZ4uctM%3D&amp;reserved=0">https://emea01.safelinks.protection.outlook.com/?u \
rl=https%3A%2F%2Fwww.riverbankcomputing.com%2Fstatic%2FDocs%2Fsip%2Fexamples.html%23pa \
ckage-projects&amp;data=04%7C01%7C%7C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9 \
f640afb435aaaaaaaaaaaa%7C1%7C0%7C637471728146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC \
4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2Bf8RdRZ4uctM%3D&amp;reserved=0</a><br>
<br>
Phil<br>
</div>
</span></font></div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic