RPM Community Forums

Mailing List Message of <rpm-users>

Making rpm5 work with dnf

From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Date: Tue 22 Nov 2016 - 16:16:52 CET
Message-ID: <4184eae9-48e6-0660-78f7-573d25bf4208@linux.intel.com>
On 11/15/2016 10:25 PM, Jeffrey Johnson wrote:
> The first step is still to get DNF “working” with RPM5 using python2: there are multiple ports involved.
> If you expose you git repositories, I can try to help.

Alright. This is the error I'm getting:

Traceback (most recent call last):
line 57, in <module>
     from dnf.cli import main
line 31, in <module>
     import dnf.base
line 72, in <module>
     class Base(object):
line 361, in Base
     'nocontexts': rpm.RPMTRANS_FLAG_NOCONTEXTS,
AttributeError: 'module' object has no attribute 'RPMTRANS_FLAG_NOCONTEXTS'

Looking at rpm5's python module source code, the 
RPMTRANS_FLAG_NOCONTEXTS attribute is excluded by a NOYET define (which 
is a typo and should be NOTYET).

Any guidance as to how it should be enabled? Is it better to disable the 
feature in dnf for now?

Received on Tue Nov 22 16:16:54 2016
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.