<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.riverbankcomputing.com%2Fstatic%2FDocs%2Fsip%2Fexamples.html%23package-projects&data=04%7C01%7C%7C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637471728146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2Bf8RdRZ4uctM%3D&reserved=0">https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.riverbankcomputing.com%2Fstatic%2FDocs%2Fsip%2Fexamples.html%23package-projects&data=04%7C01%7C%7C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637471728146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2Bf8RdRZ4uctM%3D&reserved=0</a><br>
<br>
Phil<br>
</div>
</span></font></div>
</body>
</html>