Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#3900 closed defect (invalid)

GDAL 1.7.svn installation failure with Python 2.4: unrecognized .svn/entries format in %s

Reported by: Markus Neteler Owned by: hobu
Priority: normal Milestone:
Component: PythonBindings Version: 1.7.3
Severity: normal Keywords:
Cc: neteler@…


I am using GDAL on a cluster (which runs Scientific Linux, a RHEL 5.5 clone) and came across this installation problem:

make[1]: Leaving directory `/home/neteler/software/gdal-1.7.svn/apps'
(cd swig; make install)
make[1]: Entering directory `/home/neteler/software/gdal-1.7.svn/swig'
for dir in python ; do (cd $dir; make install) || exit; done
make[2]: Entering directory `/home/neteler/software/gdal-1.7.svn/swig/python'
python install 
running install
running bdist_egg
running egg_info
creating GDAL.egg-info
writing GDAL.egg-info/PKG-INFO
writing top-level names to GDAL.egg-info/top_level.txt
writing dependency_links to GDAL.egg-info/dependency_links.txt
writing manifest file 'GDAL.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "", line 248, in ?
    ext_modules = ext_modules )
  File "/usr/lib64/python2.4/distutils/", line 149, in setup
  File "/usr/lib64/python2.4/distutils/", line 946, in run_commands
  File "/usr/lib64/python2.4/distutils/", line 966, in run_command
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 76, in run
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 92, in do_egg_install
  File "/usr/lib64/python2.4/distutils/", line 333, in run_command
  File "/usr/lib64/python2.4/distutils/", line 966, in run_command
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 167, in run
  File "/usr/lib64/python2.4/distutils/", line 333, in run_command
  File "/usr/lib64/python2.4/distutils/", line 966, in run_command
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 171, in run
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 252, in find_sources
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 306, in run
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 333, in add_defaults
    rcfiles = list(walk_revctrl())
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 45, in walk_revctrl
    for item in ep.load()(dirname):
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 52, in _default_revctrl
    for path in finder(dirname,path):
  File "/usr/lib/python2.4/site-packages/setuptools/command/", line 98, in entries_finder
    log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/neteler/software/gdal-1.7.svn/swig/python'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/neteler/software/gdal-1.7.svn/swig'
make: *** [install-actions] Error 2

[root@fep gdal-1.7.svn]# rpm -qa | grep python | sort

[root@fep gdal-1.7.svn]# uname -a
Linux fep 2.6.18-194.17.1.el5 #1 SMP Wed Sep 29 12:09:22 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

[root@fep gdal-1.7.svn]# cat /etc/issue
Scientific Linux SL release 5.5 (Boron)
Kernel \r on an \m

[root@fep gdal-1.7.svn]# svn --version
svn, version 1.5.4 (r33841)
   compiled Mar 19 2009, 16:01:25

Attachments (1) (3.9 KB ) - added by Markus Neteler 13 years ago.
Python 2.4 setuptools fix

Download all attachments as: .zip

Change History (4)

comment:1 by Even Rouault, 13 years ago


I've just grabbed SL 5.5 x86_64 LiveDVD, installed it on a VM harddisk, checkout 1.7 branch and built successfully the python bindings. So I'd suspect something wrong/unusual in your install ?

by Markus Neteler, 13 years ago

Attachment: added

Python 2.4 setuptools fix

comment:2 by Markus Neteler, 13 years ago

Resolution: invalid
Status: newclosed


thanks for trying. I have a standard installation here.

Fixed this way: I have updated /usr/lib/python2.4/site-packages/setuptools/command/ to a newer version from Python 2.6 and it works now. For the record, patch to setuptools attached.

Closing as invalid since GDAL isn't involved.

comment:3 by Even Rouault, 11 years ago

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.