softwarefactory-project / rdopkg

power to the packagers
Apache License 2.0
28 stars 21 forks source link

rdopkg fails to update spec due to "Module rpm is not available" #124

Closed bregman-arie closed 7 years ago

bregman-arie commented 7 years ago

I ran: "sudo dnf install rpm-python" and this is what I got:

"Last metadata expiration check: 0:19:56 ago on Tue Jul 4 12:52:26 2017. Package python2-rpm-4.13.0.1-1.fc25.x86_64 is already installed, skipping."

I also tried: "python -c "import rpm" -> NO error

And yet, when I run 'rdopkg patch' I get: "Module rpm is not available. It is required to parse .spec files. Pro tip: yum install rpm-python" and the spec remains the same, without any modification.

Operating system: Fedora 25

yac commented 7 years ago

How did you install? RPM? pip? master?

What is the output of

rdopkg --version

and

rdopkg pkgenv

?

bregman-arie commented 7 years ago

RPM.

Version: 0.43 ENV:

get_package_env RHOS package detected. show_package_env

Package: openstack-neutron-lbaas NVR: 1:9.2.0-3 Version: 9.2.0 Upstream: upstream remote/branch not found Tag style: X.Y.Z

Patches style: branch Dist-git branch: rhos-10.0-rhel-7 Local patches branch: rhos-10.0-patches Remote patches branch: rhos/rhos-10.0-patches Remote upstream branch: upstream/master

OS dist: RHOS Patches apply method: autosetup

yac commented 7 years ago

This works OK for that particular dist-git on my fedora 24 with both 0.43 and master... weird. Some local python magicks must be in play...

bregman-arie commented 7 years ago

k, closing issue. If you'll have an idea in the future as to why it's happening, please ping me.