[Django] #20903: Again Exceptions in GEOS I/O object destructor at process exit

13 views
Skip to first unread message

Django

unread,
Aug 12, 2013, 11:49:53 AM8/12/13
to django-...@googlegroups.com
#20903: Again Exceptions in GEOS I/O object destructor at process exit
-------------------------------+--------------------
Reporter: MRigal | Owner: nobody
Type: Uncategorized | Status: new
Component: GIS | Version: 1.5
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Very similarly to #13488 I saw these tracebacks in GeoDjango when I quit :


{{{
Exception TypeError: "'NoneType' object is not callable" in <bound method
_WKBReader.__del__ of <django.contrib.gis.geos.prototypes.io._WKBReader
object at 0x10704ea50>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method
WKBWriter.__del__ of <django.contrib.gis.geos.prototypes.io.WKBWriter
object at 0x10705a290>> ignored
}}}


I experienced that on Python 2.7.4, Django 1.5.1 with Gdal 1.10, Geos
3.3.5, Postgres 9.2.4 and PostGIS 2.0.1 on MacOSX 10.8. And I do not have
module-level globals.

The funny thing is that the warnings disappeared after some work, I tried
to recreate the original conditions (prints, errors, etc..) but I do not
manage to reproduce these errors I had 2 times in a row when quitting the
runserver... In any case, seems very minor... Maybe some other may confirm
the same behaviour.

--
Ticket URL: <https://code.djangoproject.com/ticket/20903>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 16, 2013, 3:04:27 PM8/16/13
to django-...@googlegroups.com
#20903: Again Exceptions in GEOS I/O object destructor at process exit
-------------------------------+--------------------------------------
Reporter: MRigal | Owner: nobody
Type: Uncategorized | Status: closed
Component: GIS | Version: 1.5
Severity: Normal | Resolution: worksforme
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by claudep):

* status: new => closed
* needs_better_patch: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_docs: => 0


Comment:

I'm afraid it will be difficult to fix if we cannot come with a
reproducible test case. If anyone can provide a failing test, please
reopen the ticket.

--
Ticket URL: <https://code.djangoproject.com/ticket/20903#comment:1>

Django

unread,
Jul 8, 2014, 11:48:09 PM7/8/14
to django-...@googlegroups.com
#20903: Again Exceptions in GEOS I/O object destructor at process exit
-------------------------------------+-------------------------------------
Reporter: MRigal | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.6
Severity: Normal | Resolution:
Keywords: geos, postgres, | Triage Stage:
geodjango | Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by anonymous):

* keywords: => geos, postgres, geodjango
* status: closed => new
* version: 1.5 => 1.6
* resolution: worksforme =>
* type: Uncategorized => Bug


Comment:

I'm receiving the same error with Python 2.7.7, Django 1.6.5, Geos 3.3.8,
Postgres 9.3.1.0 (18) - using http://postgresapp.com/ and Mac OSX 10.8.5.
It occurs every time I run a test, shell or a management command which
accesses a database object which contains a {{{ gis_models.PointField }}}

For example:
{{{
Python 2.7.7 (default, Jun 2 2014, 18:53:46)
Type "copyright", "credits" or "license" for more information.

IPython 1.1.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
/Users/matt/Code/envs/hpflsk3/lib/python2.7/site-
packages/IPython/terminal/interactiveshell.py:432: DeprecationWarning:
With-statements now directly support multiple context managers
with nested(self.builtin_trap, self.display_trap):


In [1]: from myapp.models import Location

In [2]: l = Location()

In [3]: l.name = "blah"

In [4]: l.latitude = 1.23

In [5]: l.longitude = 4.56

In [6]: l.save()

In [7]:
Do you really want to exit ([y]/n)? y


Exception TypeError: "'NoneType' object is not callable" in <bound method

_WKTReader.__del__ of <django.contrib.gis.geos.prototypes.io._WKTReader
object at 0x105565a50>> ignored


Exception TypeError: "'NoneType' object is not callable" in <bound method
WKBWriter.__del__ of <django.contrib.gis.geos.prototypes.io.WKBWriter

object at 0x1055af210>> ignored

}}}

Where models.py is
{{{

class Location(BaseModel):

name = models.CharField(max_length=255)

point = gis_models.PointField(default="POINT(0.0 0.0)")

@property
def latitude(self):
return self.point.y

@latitude.setter
def latitude(self, value):
self.point.y = value

@property
def longitude(self):
return self.point.x

@longitude.setter
def longitude(self, value):
self.point.x = value

}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/20903#comment:2>

Django

unread,
Jul 9, 2014, 3:50:18 AM7/9/14
to django-...@googlegroups.com
#20903: Again Exceptions in GEOS I/O object destructor at process exit
-------------------------------------+-------------------------------------
Reporter: MRigal | Owner: nobody

Type: Bug | Status: new
Component: GIS | Version: 1.6
Severity: Normal | Resolution:
Keywords: geos, postgres, | Triage Stage:
geodjango | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by claudep):

Could you maybe provide BaseModel also, or even better a complete sample
project?

--
Ticket URL: <https://code.djangoproject.com/ticket/20903#comment:3>

Django

unread,
Jul 17, 2014, 2:50:42 PM7/17/14
to django-...@googlegroups.com
#20903: Again Exceptions in GEOS I/O object destructor at process exit
-------------------------------------+-------------------------------------
Reporter: MRigal | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: 1.6
Severity: Normal | Resolution: needsinfo

Keywords: geos, postgres, | Triage Stage:
geodjango | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* status: new => closed

* resolution: => needsinfo


--
Ticket URL: <https://code.djangoproject.com/ticket/20903#comment:4>

Reply all
Reply to author
Forward
0 new messages