[Gdal-dev] Re: swig python doesn't install with pyrex 0.9.6

Vincent Schut schut at sarvision.nl
Thu Oct 11 04:18:47 EDT 2007


Sorry for the spam, after some more research this appears to have
nothing to do with gdal, but with an incompatibility between setuptools
and pyrex 0.9.6.

Vincent.

Vincent Schut wrote:
> After upgrading my pyrex to 0.9.6, I get the following error in the
> 'make install' stage of gdal's ngpython bindings:
>
> make[2]: Entering directory `/usr/local/src/gdal/swig/python'
> python setup.py install --root / --single-version-externally-managed
> numpy include /usr/lib64/python2.5/site-packages/numpy/core/include
> running install
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-2.5
> copying gdal.py -> build/lib.linux-x86_64-2.5
> copying ogr.py -> build/lib.linux-x86_64-2.5
> copying osr.py -> build/lib.linux-x86_64-2.5
> copying gdalconst.py -> build/lib.linux-x86_64-2.5
> creating build/lib.linux-x86_64-2.5/osgeo
> copying osgeo/gdalnumeric.py -> build/lib.linux-x86_64-2.5/osgeo
> copying osgeo/gdalconst.py -> build/lib.linux-x86_64-2.5/osgeo
> copying osgeo/__init__.py -> build/lib.linux-x86_64-2.5/osgeo
> copying osgeo/osr.py -> build/lib.linux-x86_64-2.5/osgeo
> copying osgeo/gdal_array.py -> build/lib.linux-x86_64-2.5/osgeo
> copying osgeo/gdal.py -> build/lib.linux-x86_64-2.5/osgeo
> copying osgeo/ogr.py -> build/lib.linux-x86_64-2.5/osgeo
> running build_ext
> Traceback (most recent call last):
>   File "setup.py", line 219, in <module>
>     ext_modules = ext_modules )
>   File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
>     dist.run_commands()
>   File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
>     self.run_command(cmd)
>   File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
>     cmd_obj.run()
>   File
> "/usr/lib64/python2.5/site-packages/setuptools/command/install.py", line
> 56, in run
>     return _install.run(self)
>   File "/usr/lib/python2.5/distutils/command/install.py", line 506, in run
>     self.run_command('build')
>   File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
>     self.distribution.run_command(command)
>   File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
>     cmd_obj.run()
>   File "/usr/lib/python2.5/distutils/command/build.py", line 112, in run
>     self.run_command(cmd_name)
>   File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
>     self.distribution.run_command(command)
>   File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
>     cmd_obj.run()
>   File
> "/usr/lib64/python2.5/site-packages/setuptools/command/build_ext.py",
> line 46, in run
>     _build_ext.run(self)
>   File "/usr/lib/python2.5/distutils/command/build_ext.py", line 290, in run
>     self.build_extensions()
>   File
> "/usr/lib64/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line
> 81, in build_extensions
>     ext.sources = self.pyrex_sources(ext.sources, ext)
>   File
> "/usr/lib64/python2.5/site-packages/Pyrex/Distutils/build_ext.py", line
> 152, in pyrex_sources
>     if not self.inplace and (self.pyrex_c_in_temp or
> extension.pyrex_c_in_temp):
> AttributeError: Extension instance has no attribute 'pyrex_c_in_temp'
> make[2]: *** [install] Error 1
> make[2]: Leaving directory `/usr/local/src/gdal/swig/python'
> make[1]: *** [install] Error 2
> make[1]: Leaving directory `/usr/local/src/gdal/swig'
> make: *** [install-actions] Error 2
>
> the changelog for pyrex 0.9.6 can be viewed here:
> http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/changes-0.9.6.html;
> pyrex_c_in_temp is mentioned as a new option if I understand correctly...
>
>   



More information about the Gdal-dev mailing list