Is there a way to specify the location of gdal et. al.?
On OS X, using MacPorts, ctypes doesn't look in /opt/local/lib unless
you set LD_LIBRARY_PATH. On Ubuntu Feisty, the gdal package uses a
weird naming convention and isn't found. Is it possible to specify
these library locations in settings.py or somewhere?
Also, on both OS X and Ubuntu, I get symbol not found errors for
GEOSCoordSeq_getOrdinate when trying to import the geos tests (see
below).
Any help appreciated.
Sean
-: python manage.py shell
Python 2.4.4 (#1, Nov 7 2007, 11:38:36)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
from django.contrib.gis.tests import test_geos
Traceback (most recent call last):
File "<console>", line 1, in ?
File "/opt/local/lib/python2.4/site-packages/django/contrib/gis/tests/
test_geos.py", line 3, in ?
from django.contrib.gis.geos import \
File "/opt/local/lib/python2.4/site-packages/django/contrib/gis/geos/
__init__.py", line 31, in ?
from django.contrib.gis.geos.base import GEOSGeometry, wkt_regex,
hex_regex
File "/opt/local/lib/python2.4/site-packages/django/contrib/gis/geos/
base.py", line 11, in ?
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
File "/opt/local/lib/python2.4/site-packages/django/contrib/gis/geos/
coordseq.py", line 10, in ?
from django.contrib.gis.geos.prototypes import cs_clone,
cs_getdims, cs_getordinate, cs_getsize, cs_setordinate
File "/opt/local/lib/python2.4/site-packages/django/contrib/gis/geos/
prototypes/__init__.py", line 8, in ?
from django.contrib.gis.geos.prototypes.coordseq import create_cs,
get_cs, \
File "/opt/local/lib/python2.4/site-packages/django/contrib/gis/geos/
prototypes/coordseq.py", line 67, in ?
cs_getordinate = cs_operation(lgeos.GEOSCoordSeq_getOrdinate,
ordinate=True, get=True)
File "/opt/local/lib/python2.4/site-packages/ctypes/__init__.py",
line 325, in __getattr__
func = self.__getitem__(name)
File "/opt/local/lib/python2.4/site-packages/ctypes/__init__.py",
line 330, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x10f7e0, GEOSCoordSeq_getOrdinate): symbol not
found
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---