[XML-SIG] Redhat RPM for PyXML 0.8.2?

Martin v. Löwis martin@v.loewis.de
14 Apr 2003 07:29:31 +0200


Craeg K Strong <cstrong@arielpartners.com> writes:

> AttributeError: Distribution instance has no attribute 'get_license'
> 
> I went ahead and changed line 353 in bdist_rpm.py from
> 
> 'Copyright: ' + self.distribution.get_license(),
> 
> to
> 
> 'Copyright: n/a',
> 
> and it worked.   I looked like the older version of bdist_rpm.py would
> have had
> the same problem, however, as it also calls get_license().  Any ideas?

It's surprising you get this error. In distutils/dist.py, I see the
function

    def get_license(self):
        return self.license or "UNKNOWN"
    get_licence = get_license

which always gives a value. Do you have no function get_license in
dist.py?

Regards,
Martin