[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Python error building RPM on RedHat 7.3

From: David Summers <david_at_summersoft.fay.ar.us>
Date: 2004-07-10 22:49:12 CEST

On Sat, 10 Jul 2004, Russell Yanofsky wrote:

> Ben Reser wrote:
> > On Sat, Jul 10, 2004 at 03:07:11PM -0500, David Summers wrote:
> >> On Sat, 10 Jul 2004, Russell Yanofsky wrote:
> >>> That call syntax should be supported in python 2.2. Are you sure
> >>> you are not using an earlier version of python?
> >>
> >> RedHat 7.3 comes with both python 1.5.2 and python 2.2. My guess
> >> is that the default is 1.5.2. Is python 2.2 a new requirement for
> >> the build?
> >>
> >> How can I determine which version the build is using?
> >>
> >> (This was working several weeks ago).
> >
> > I thought our build system only was supposed to require Python 1...
> > Or am I mistaken?
>
> You're probably right. A patch is attached which should fix the problem.
>
> Log Message:
>
> Make build generator compatible with older versions of python.
>
> * build/generator/gen_base.py
> (TargetJavaHeaders.add_dependencies, TargetJavaClasses.add_dependencies):
> don't use extended call syntax

Well, I think we got farther. Now I'm getting:

Creating build-outputs.mk...
Traceback (innermost last):
  File "./gen-make.py", line 176, in ?
    main(conf, gentype, skip_depends=skip, other_options=rest.list)
  File "./gen-make.py", line 43, in main
    generator = gen_module.Generator(fname, verfname, other_options)
  File "build/generator/gen_base.py", line 68, in __init__
    self._extension_map)
  File "build/generator/gen_base.py", line 317, in create_targets
    self.target.add_dependencies(graph, cfg, extmap)
  File "build/generator/gen_base.py", line 639, in add_dependencies
    self.package.replace(".", "_")
AttributeError: 'string' object has no attribute 'replace'
ERROR: gen-make.py failed

If I knew python I'd (try to) fix it myself. :-)

   Thanks!

-- 
David Wayne Summers          "Linux: Because reboots are for hardware upgrades!"
david_at_summersoft.fay.ar.us   PGP Key: http://summersoft.fay.ar.us/~david/pgp.txt
PGP Key fingerprint =  C0 E0 4F 50 DD A9 B6 2B  60 A1 31 7E D2 28 6D A8 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jul 10 22:49:24 2004

This is an archived mail posted to the Subversion Dev mailing list.