All right thanks Dave. I have successfully patched my RDF.py 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.
________________________________ From: David Brooks <[email protected]> Sent: Sunday, February 08, 2015 8:03 PM To: François Scharffe; [email protected] Subject: Re: [redland-dev] Errors from librdf_free_model and librdf_free_storage when exiting Python Django program Hi Francois, This appears to be the same as an issue I've had -- see http://bugs.librdf.org/mantis/view.php?id=531 Regards, Dave On 7/02/15 9:34 am, François Scharffe wrote: 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. Now my problem is that when a python program exit, I get the following python errors: Exception TypeError: "'NoneType' object is not callable" in <bound method Model.__del__ of <RDF.Model object at 0x7f99482746d0>> ignored Exception TypeError: "'NoneType' object is not callable" in <bound method Storage.__del__ of <RDF.Storage object at 0x7f99482745d0>> ignored and Exception AttributeError: "'NoneType' object has no attribute 'librdf_free_storage'" in <bound method Storage.__del__ of <RDF.Storage object at 0x7f994a3bbf50>> ignored Exception AttributeError: "'NoneType' object has no attribute 'librdf_free_model'" in <bound method Model.__del__ of <RDF.Model object at 0x7f994a3c5690>> ignored And I get these errors for every model/storage pair I declared. 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. I am using redland-1.0.17, raptor2-2.0.14 rasqal-0.9.32 and redland-bindings-1.0.17.1. Any idea how I can avoid them ? Thanks for your help. François _______________________________________________ redland-dev mailing list [email protected]<mailto:[email protected]> http://lists.librdf.org/mailman/listinfo/redland-dev
_______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
