I am getting the error message: "OGRException: Could not register all the OGR data source drivers!" (See the traceback below.) I also see this traceback trying to use the DataSource example (importing a zipcode shapefile). The test_geos.run() tests all pass. I can run ogrinfo from the command line and it finds its libraries.
I'd be grateful for any ideas about what I might have done wrong. I will also append the detailed instructions I saved (based on the GeoDjango installation page, which was very helpful getting through the initial installation. Versions: WhiteBox Enterprise Linux 3.0 (clone of Red Hat enterprise 3.0) gcc 3.2.3 / glibc 3.2.3 Python 2.4.2 ctypes 1.0.2 PostgreSQL 8.2.4 postgis 1.3.2 geos 3.0.0 proj4 4.6.0 curl 7.17.1 (needed for gdal) expat 2.0.1 (needed for gdal) gdal 1.5.0 GeoDjango: URL: http://code.djangoproject.com/svn/django/branches/gis Repository UUID: bcc190cf-cafb-0310-a4f2-bffc1f526a37 Revision: 6996 Traceback from test_gdal: ================ In [1]: from django.contrib.gis.tests import test_gdal In [2]: test_gdal.run() E..................... BEGIN - expecting IllegalArgumentException; safe to ignore. ERROR 1: IllegalArgumentException: points must form a closed linestring END - expecting IllegalArgumentException; safe to ignore. .................... ====================================================================== ERROR: Testing valid OGR Data Source Drivers. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/contrib/gis/tests/test_gdal_d river.py", line 20, in test01_valid_driver dr = Driver(d) File "/usr/local/lib/python2.4/site-packages/django/contrib/gis/gdal/driver.py", line 28, in __init__ self._register() File "/usr/local/lib/python2.4/site-packages/django/contrib/gis/gdal/driver.py", line 61, in _register raise OGRException('Could not register all the OGR data source drivers!') OGRException: Could not register all the OGR data source drivers! ---------------------------------------------------------------------- Ran 42 tests in 0.120s FAILED (errors=1) Here are the instructions I wrote for a coworker to duplicate my installation (her test fails also): =========================================================== Get in the right place ====================== su - root cd /usr/local/src Django GIS branch ================= cd /usr/local/src svn co http://code.djangoproject.com/svn/django/branches/gis django_gis rm /usr/local/lib/python2.4/site-packages/django # (should be a symlink) ln -sf /usr/local/src/django_gis/django /usr/local/lib/python2.4/site-packages/django Python ctypes module ==================== easy_install ctypes # need to find way to do this without access to Internet GEOS ==== cd /usr/local/src wget http://geos.refractions.net/downloads/geos-3.0.0.tar.bz2 bzcat geos-3.0.0.tar.bz2 | tar xv cd geos-3.0.0 ./configure --disable-python --disable-swig make make install ldconfig -v # forces reread of libraries in LIB path PROJ4 ===== cd /usr/local/src wget ftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz wget ftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.tar.gz tar zxf proj-4.6.0.tar.gz cd proj-4.6.0/nad tar zxf ../../proj-datumgrid-1.3.tar.gz cd .. ./configure make make install ldconfig -v # forces reread of libraries in LIB path PostGIS ======= cd /usr/local/src wget http://postgis.refractions.net/download/postgis-1.3.2.tar.gz tar zxf postgis-1.3.2.tar.gz cd postgis-1.3.2 ./configure --with-pgsql=/usr/local/pgsql/bin/pg_config --with-geos --with-proj make make install # figure out where .sql files got placed /usr/local/pgsql/bin/pg_config --sharedir su - postgres # following steps are as user postgres export PATH=/usr/local/pgsql/bin:$PATH psql -l # list existing databases # drop a bunch of unused or to-be-replaced databases dropdb spatial dropdb trips_new dropdb feedback dropdb feedback_copy # user for GIS DB createuser spatial # database for GIS DB createdb -O spatial template_gis createlang plpgsql template_gis psql -d template_gis -f `pg_config --sharedir`/lwpostgis.sql psql -d template_gis -f `pg_config --sharedir`/spatial_ref_sys.sql # create my own DB from GIS template createdb -T template_gis -O dhancock dhancock_gis psql dhancock_gis # select count(*) from spatial_ref_sys (ensures it's a GIS DB) exit # back to root curl and libcurl ================ cd /usr/local/src wget http://curl.mirrors.cyberservers.net/download/curl-7.17.1.tar.gz tar zxf curl-7.17.1.tar.gz cd curl-7.17.1 ./configure make make check make install ldconfig -v # forces reread of libraries in LIB path expat # need to find a wgettable source ========================= cd /usr/local/src # obtain expat-2.0.1.tar.gz tar zxf expat-2.0.1.tar.gz cd expat-2.0.1 ./configure make make check make install ldconfig -v # forces reread of libraries in LIB path GDAL ==== wget http://download.osgeo.org/gdal/gdal-1.5.0.tar.gz tar zxf gdal-1.5.0.tar.gz cd gdal-1.5.0 ls -lrt ./configure --with-geos make apps/ogrinfo # see if it finds its libraries ldconfig -v # forces reread of libraries in LIB path make check make install ldconfig -v # forces reread of libraries in LIB path for tests, be in directory containing gcs.csv ============================================= cd /usr/local/share ipython # and run GeoDjango tests Cheers! -- David Hancock | [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---