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):
   File 
"/home/ak/development/poky/build/tmp/sysroots/x86_64-linux/usr/bin/dnf-2", 
line 57, in <module>
     from dnf.cli import main
   File 
"/home/ak/development/poky/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/dnf/__init__.py", 
line 31, in <module>
     import dnf.base
   File 
"/home/ak/development/poky/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/dnf/base.py", 
line 72, in <module>
     class Base(object):
   File 
"/home/ak/development/poky/build/tmp/sysroots/x86_64-linux/usr/lib/python2.7/site-packages/dnf/base.py", 
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?


Alex
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.