<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body dir="ltr">
<style type="text/css" style="display:none"><!-- p {margin-top:0;margin-bottom:0;} --></style>
<div dir="ltr" style="outline: medium none; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri,Arial,Helvetica,sans-serif; display: block;" useinlinestyle="true" role="textbox" class="">
<p>All right thanks Dave. I have successfully patched my RDF.py</p>
The patch given on the bug tracker is slightly out of date but maually adding try/except for when freeing Node, Storage, Model and URI made it.<br>
<br>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> David Brooks <d.brooks@auckland.ac.nz><br>
<b>Sent:</b> Sunday, February 08, 2015 8:03 PM<br>
<b>To:</b> François Scharffe; redland-dev@lists.librdf.org<br>
<b>Subject:</b> Re: [redland-dev] Errors from librdf_free_model and librdf_free_storage when exiting Python Django program</font>
<div> </div>
</div>
<div>Hi Francois,<br>
<br>
This appears to be the same as an issue I've had -- see <a title="Ctrl+Click or tap to follow the link" class="moz-txt-link-freetext" href="http://bugs.librdf.org/mantis/view.php?id=531">
http://bugs.librdf.org/mantis/view.php?id=531</a><br>
<br>
<br>
Regards,<br>
<br>
Dave<br>
<br>
<div class="moz-cite-prefix">On 7/02/15 9:34 am, François Scharffe wrote:<br>
</div>
<blockquote type="cite"><style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;">First thanks for this great library. I am using it with Virtuoso through the ODBC driver and although setup was not easy, it is now working very well.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Now my problem is that when a python program exit, I get the following python errors:</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Exception TypeError: "'NoneType' object is not callable" in <bound method Model.__del__ of <RDF.Model object at 0x7f99482746d0>> ignored<br>
Exception TypeError: "'NoneType' object is not callable" in <bound method Storage.__del__ of <RDF.Storage object at 0x7f99482745d0>> ignored</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">and </p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Exception AttributeError: "'NoneType' object has no attribute 'librdf_free_storage'" in <bound method Storage.__del__ of <RDF.Storage object at 0x7f994a3bbf50>> ignored<br>
Exception AttributeError: "'NoneType' object has no attribute 'librdf_free_model'" in <bound method Model.__del__ of <RDF.Model object at 0x7f994a3c5690>> ignored</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">And I get these errors for every model/storage pair I declared.
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">All these declarations are part of a large Django project. I do not get these errors if I use Redland direclty in python, but only when exiting a Django server.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">I am using redland-1.0.17, raptor2-2.0.14 rasqal-0.9.32 and redland-bindings-1.0.17.1.</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">Any idea how I can avoid them ?<br>
Thanks for your help. <br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;">François<br>
</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset> <br>
<pre>_______________________________________________
redland-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:redland-dev@lists.librdf.org">redland-dev@lists.librdf.org</a>
<a class="moz-txt-link-freetext" href="http://lists.librdf.org/mailman/listinfo/redland-dev">http://lists.librdf.org/mailman/listinfo/redland-dev</a></pre>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>