Excellent. I just updated to 7003 and the error message is gone.

I really appreciate your taking the time to help me with this.

Cheers!
--
David Hancock

On Jan 6, 6:01 pm, tlp <[EMAIL PROTECTED]> wrote:
> Hello David,
>
> I was not able to reproduce the error on any Linux, Windows or Solaris
> machines so I created a vmware image from scratch using the software
> versions you specified. The following are steps I took to recreate
> your problem.
>
> [Installation for setting up Whitebox Linux 3.0 with geodjango]
>
> Download the liberation-respin3-binary-i386-1.iso.
> wgethttp://www.gtlib.gatech.edu/pub/whitebox/3.0/en/iso/i386/liberation-r...
>
> With VMWare Workstation create a Redhat Enterprise 3 template, mount
> the iso you just downloaded.
>
> Do a minimal install.
>
> Logged into the machine as root.
>
> # changed /etc/yum.conf to point to georgia tech only (the others are
> slow or broken)
>
> [base]
> name=White Box Enterprise Linux $releasever - $basearch - Base
> baseurl=http://ftp.gtlib.gatech.edu/pub/whitebox/$releasever/en/os/
> $basearch/
>
> [updates-released]
> name=White Box Enterprise Linux $releasever - $basearch - Released
> Updates
> baseurl=ftp://ftp.gtlib.gatech.edu/pub/whitebox/$releasever/en/updates/
>
> # update and install some packages
> yum update
> yum upgrade
>
> yum install gcc
> yum install readline-devel
> yum install glibc-utils
> yum install gcc-c++
> yum install zlib-devel
> yum install flex
> yum install screen
> yum install lynx
> yum install bzip2-devel
>
> # add a user
> adduser geo
> su - geo
>
> # edit the .bashrc and add this
> export LD_LIBRARY_PATH=/home/geo/local/lib
> export PATH=/home/geo/local/bin:$PATH
> export GDAL_DATA=home/geo/local/share
>
> # download and install programs
> cd
> mkdir install
> cd install
>
> wgethttp://www.python.org/ftp/python/2.4.2/Python-2.4.2.tar.bz2
> tar xjvf Python-2.4.2.tar.bz2
> cd Python-2.4.2
> ./configure --prefix=/home/geo/local
> make
> make install
>
> cd ~/install
>
> wgethttp://ipython.scipy.org/dist/ipython-0.8.2.tar.gz
> tar xzvf ipython-0.8.2.tar.gz
> cd ipython-0.8.2
> python setup.py build
> python setup.py install
>
> cd ~/install
> wgetftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz
> tar xzvf proj-4.6.0.tar.gz
> cd proj-4.6.0/nad
> wgetftp://ftp.remotesensing.org/proj/proj-datumgrid-1.3.tar.gz
> tar xzvf proj-datumgrid-1.3.tar.gz
> cd ..
> ./configure --prefix=/home/geo/local
> make
> make install
>
> cd ~/install
> wgethttp://geos.refractions.net/downloads/geos-3.0.0.tar.bz2
> tar xjvf geos-3.0.0.tar.bz2
> cd geos-3.0.0
> ./configure --prefix=/home/geo/local
> make
> make install
>
> wgethttp://download.osgeo.org/gdal/gdal-1.5.0.tar.gz
> tar xzvf gdal-1.5.0.tar.gz
> cd gdal-1.5.0
> ./configure --prefix=/home/geo/local --with-geos
> make
> make install
>
> wget "http://wwwmaster.postgresql.org/redir?
> setmir=198&typ=h&url=http://ftp9.us.postgresql.org/pub/mirrors/
> postgresql//source/v8.2.4/postgresql-8.2.4.tar.bz2"
> tar xjvf postgresql-8.2.4.tar.bz2
> cd postgresql-8.2.4
> ./configure --prefix=/home/geo/local
> make
> make install
>
> cd ~/install
> wgethttp://postgis.refractions.net/download/postgis-1.3.2.tar.gz
> tar xzvf postgis-1.3.2.tar.gz
> ./configure --prefix=/home/geo/local
> make
> make install
>
> cd ~/install
> wgethttp://internap.dl.sourceforge.net/sourceforge/ctypes/ctypes-1.0.2.ta...
> tar xzvf ctypes-1.0.2.tar.gz
> cd ctypes-1.0.2
> python setup.py build
> python setup.py install
>
> # finish setting up programs
>
> It was difficult for me to use subversion on that system so I used
> mercurial to get the django_gis source.
>
> When I ran the tests I found a bug in driver.py (django/branches/gis/
> django/contrib/gis/gdal/driver.py) which would not show up on other
> types of system I tried.
> On this system (Whitebox Linux 3.0), running register_all
> (OGRRegisterAll) would return 0, and on others it would return a
> random integer.
> The code relied on the returned value to be non-zero which would fail
> on this setup.
>
> A fix would be to not rely on the value being returned from
> "register_all".
>
> I notified Justin and he was able to patch it. You can see it here 
> athttp://code.djangoproject.com/changeset/7003.
>
> Thanks for the detailed error messages and software versions.
>
> Regards,
> Travis
>
> On Jan 5, 9:23 am, "Hancock, David (dhancock)" <[EMAIL PROTECTED]>
> wrote:
>
> > 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 cohttp://code.djangoproject.com/svn/django/branches/gisdjango_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
> > wgethttp://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
> > wgetftp://ftp.remotesensing.org/proj/proj-4.6.0.tar.gz
> > wgetftp://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
> > wgethttp://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
> > wgethttp://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
> > ====
> > wgethttp://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
>
> ...
>
> read more ยป
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to