[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&amp;data=04%7C01%7C%7 \
C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C6374717 \
28146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haW \
wiLCJXVCI6Mn0%3D%7C1000&amp;sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2Bf8RdRZ4uctM%3D&amp;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 \
&lt;phil@riverbankcomputing.com&gt;<br> <b>Gesendet:</b> Montag, 25. Januar 2021 \
13:00<br> <b>An:</b> Marian Thomsen &lt;marian.th@outlook.de&gt;<br>
<b>Cc:</b> pyqt@riverbankcomputing.com &lt;pyqt@riverbankcomputing.com&gt;<br>
<b>Betreff:</b> Re: RuntimeError: the foo_a module failed to register with the sip \
module</font> <div>&nbsp;</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>
&gt; Hello,<br>
&gt; <br>
&gt; I get this error when trying to do %import foo_a.sip in foo_b.sip.<br>
&gt; I try to import and use foo_b in the test_b.py file.<br>
&gt; <br>
&gt; This is my project structure:<br>
&gt; <br>
&gt; module_b&nbsp;&nbsp;&nbsp;&nbsp; foo_b.cpp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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
foo_a.sip<br> &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
test_a.py<br> &gt; <br>
&gt; In each project module has its own dependencies in the .toml file<br>
&gt; under [tool.sip.bindings.foo_x ]. The dependencies of module_a are<br>
&gt; included under [tool.sip.bindings.foo_b].<br>
&gt; If I include a seperate binding set in the .toml file of module_b like<br>
&gt; [tool.sip.bindings.foo_a], I must define sip-module under<br>
&gt; [tool.sip.project] and I get another error.<br>
&gt; <br>
&gt; What is the best way to include module_a in module_b and still be able<br>
&gt; 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;amp;data \
=04%7C01%7C%7C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1% \
7C0%7C637471728146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiL \
CJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2 \
Bf8RdRZ4uctM%3D&amp;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;amp;data=04%7C01%7C%7C9c5c119107dd4584c09e08d8c128c558%7C84df9e7fe9 \
f640afb435aaaaaaaaaaaa%7C1%7C0%7C637471728146148982%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC \
4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=kUMQQ6sNSVTSPzobaE9KnaR5myTT%2B4R%2Bf8RdRZ4uctM%3D&amp;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