Opened 9 years ago

Closed 9 years ago

Last modified 6 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@…

Description

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 setup.py 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 "setup.py", line 248, in ?
    ext_modules = ext_modules )
  File "/usr/lib64/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib64/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/site-packages/setuptools/command/install.py", line 76, in run
    self.do_egg_install()
  File "/usr/lib/python2.4/site-packages/setuptools/command/install.py", line 92, in do_egg_install
    self.run_command('bdist_egg')
  File "/usr/lib64/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/site-packages/setuptools/command/bdist_egg.py", line 167, in run
    self.run_command("egg_info")
  File "/usr/lib64/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", line 171, in run
    self.find_sources()
  File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", line 252, in find_sources
    mm.run()
  File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", line 306, in run
    self.add_defaults()
  File "/usr/lib/python2.4/site-packages/setuptools/command/egg_info.py", line 333, in add_defaults
    rcfiles = list(walk_revctrl())
  File "/usr/lib/python2.4/site-packages/setuptools/command/sdist.py", line 45, in walk_revctrl
    for item in ep.load()(dirname):
  File "/usr/lib/python2.4/site-packages/setuptools/command/sdist.py", line 52, in _default_revctrl
    for path in finder(dirname,path):
  File "/usr/lib/python2.4/site-packages/setuptools/command/sdist.py", 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
...
python-2.4.3-27.el5.x86_64
python-ctypes-1.0.2-1.1.el5.x86_64
python-devel-2.4.3-27.el5.x86_64
...

[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)

sdist.py.diff (3.9 KB) - added by Markus Neteler 9 years ago.
Python 2.4 setuptools fix

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by Even Rouault

Markus,

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 ?

Changed 9 years ago by Markus Neteler

Attachment: sdist.py.diff added

Python 2.4 setuptools fix

comment:2 Changed 9 years ago by Markus Neteler

Resolution: invalid
Status: newclosed

Rouault,

thanks for trying. I have a standard installation here.

Fixed this way: I have updated /usr/lib/python2.4/site-packages/setuptools/command/sdist.py 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 Changed 6 years ago by Even Rouault

Milestone: 1.7.4

Milestone 1.7.4 deleted

Note: See TracTickets for help on using tickets.