Bug in django/contrib/gis/geos?

7 views
Skip to first unread message

Benjamin Buch

unread,
Aug 29, 2008, 5:18:53 AM8/29/08
to Django users
Seems like something in django/contrib/gis/geos broke the python help
system:

benjamin-buchs-macbook:~ benjamin$ python
Python 2.5.1 (r251:54863, Feb 4 2008, 21:48:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> help()

Welcome to Python 2.5! This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://www.python.org/doc/tut/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules. To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics". Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given
word
such as "spam", type "modules spam".

help> modules

Please wait a moment while I gather a list of all available modules...

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/site.py", line 348, in __call__
return pydoc.help(*args, **kwds)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1647, in __call__
self.interact()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1665, in interact
self.help(request)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1681, in help
elif request == 'modules': self.listmodules()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1802, in listmodules
ModuleScanner().run(callback)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pydoc.py", line 1853, in run
for importer, modname, ispkg in pkgutil.walk_packages():
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(path, name+'.', onerror):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(path, name+'.', onerror):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pkgutil.py", line 125, in walk_packages
for item in walk_packages(path, name+'.', onerror):
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/pkgutil.py", line 110, in walk_packages
__import__(name)
File "/Library/Python/2.5/site-packages/django/contrib/gis/geos/
__init__.py", line 31, in <module>
from django.contrib.gis.geos.base import GEOSGeometry, wkt_regex,
hex_regex
File "/Library/Python/2.5/site-packages/django/contrib/gis/geos/
base.py", line 11, in <module>
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
File "/Library/Python/2.5/site-packages/django/contrib/gis/geos/
coordseq.py", line 9, in <module>
from django.contrib.gis.geos.libgeos import CS_PTR, HAS_NUMPY
File "/Library/Python/2.5/site-packages/django/contrib/gis/geos/
libgeos.py", line 52, in <module>
'", "'.join(lib_names))
django.contrib.gis.geos.error.GEOSException: Could not find the GEOS
library (tried "geos_c"). Try setting GEOS_LIBRARY_PATH in your
settings.
>>>

Django-version is 1.0 beta 2.
Did I unintentionally break something (although I didn't mess with
gis...) or is this a bug?
-benjamin


Karen Tracey

unread,
Aug 29, 2008, 8:33:53 AM8/29/08
to django...@googlegroups.com
On Fri, Aug 29, 2008 at 5:18 AM, Benjamin Buch <benni...@gmx.de> wrote:

Seems like something in django/contrib/gis/geos broke the python help
system:

benjamin-buchs-macbook:~ benjamin$ python
Python 2.5.1 (r251:54863, Feb  4 2008, 21:48:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> help()

Welcome to Python 2.5!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://www.python.org/doc/tut/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given
word
such as "spam", type "modules spam".

help> modules

Please wait a moment while I gather a list of all available modules...

Traceback (most recent call last):
[snipped]

django.contrib.gis.geos.error.GEOSException: Could not find the GEOS
library (tried "geos_c"). Try setting GEOS_LIBRARY_PATH in your
settings.
 >>>

Django-version is 1.0 beta 2.
Did I unintentionally break something (although I didn't mess with
gis...) or is this a bug?
-benjamin

Base django used to have this problem as well, see: http://code.djangoproject.com/ticket/5743.  I've opened #8680 to get this looked at for gis.

Karen

Reply all
Reply to author
Forward
0 new messages