Bug 1236493

Summary: rpm-python3: ImportError: No module named '_rpmb'
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: rpmAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jzeleny, lkardos, novyjindrich, packaging-team-maint, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rpm-4.12.0.1-12.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-02 17:08:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1762942    

Description Miroslav Suchý 2015-06-29 08:33:10 UTC
Description of problem:
I got traceback when using rpm-python3

Version-Release number of selected component (if applicable):
rpm-python3-4.12.0.1-11.fc22.x86_64

How reproducible:
always

Steps to Reproduce:
mock -r fedora-22-x86_64 --scm-enable --scm-option method=git --scm-option package=rpmconf --scm-option git_get=set --scm-option spec=rpmconf.spec --scm-option branch=master --scm-option write_tar=True --scm-option git_get='git clone https://github.com/xsuchy/rpmconf.git'
...

Traceback (most recent call last):
  File "/usr/sbin/mock", line 828, in <module>
    main()
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 650, in main
    run_command(options, args, config_opts, commands, buildroot, state)
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/sbin/mock", line 663, in run_command
    (options.sources, options.spec) = scmWorker.prepare_sources()
  File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.4/site-packages/mockbuild/scm.py", line 126, in prepare_sources
    rpm_spec = ts.parseSpec(self.spec)
  File "/usr/lib64/python3.4/site-packages/rpm/transaction.py", line 40, in parseSpec
    import _rpmb
ImportError: No module named '_rpmb'

Comment 1 Miroslav Suchý 2015-06-29 08:43:27 UTC
This seems to be fixed in upstream in commit
  97989236c0f39ccbc7f2c1d52cc30f167fd827fe
It would be nice if you can backport it to current Fedoras.

Comment 2 Fedora Update System 2015-06-29 10:41:41 UTC
rpm-4.12.0.1-12.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/rpm-4.12.0.1-12.fc22

Comment 3 Fedora Update System 2015-06-30 00:13:27 UTC
Package rpm-4.12.0.1-12.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpm-4.12.0.1-12.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-10901/rpm-4.12.0.1-12.fc22
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2015-07-02 17:08:17 UTC
rpm-4.12.0.1-12.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.