Bug 1894261 - ModuleNotFoundError: No module named 'koji'
Summary: ModuleNotFoundError: No module named 'koji'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: koji
Version: 33
Hardware: armhfp
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Mike McLean
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-03 20:59 UTC by Paul Whalen
Modified: 2021-01-15 01:20 UTC (History)
6 users (show)

Fixed In Version: koji-1.23.0-2.fc33 koji-1.23.0-2.fc32
Clone Of:
Environment:
Last Closed: 2020-12-04 19:52:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paul Whalen 2020-11-03 20:59:02 UTC
Description of problem:
After upgrading to koji-1.23.0-1.fc33, running koji commands fails:


koji list-targets --name f33
Traceback (most recent call last):
  File "/usr/bin/koji", line 39, in <module>
    import koji
ModuleNotFoundError: No module named 'koji'



Version-Release number of selected component (if applicable):
koji-1.23.0-1.fc33

How reproducible:
Seems to only happen on armhfp, downgrading to koji-1.22.1-1 got it working. I was also 
testing on aarch64 which worked fine.

Comment 1 Kevin Fenzi 2020-11-07 19:25:37 UTC
Strange. Is python3-koji installed? 

Can you attach: 

rpm -qa | grep koji | sort

and

rpm -ql python3-koji

?

Comment 2 Paul Whalen 2020-11-09 14:47:46 UTC

[root@bpi ~]# rpm -qa | grep koji | sort
koji-1.23.0-1.fc33.noarch
koji-utils-1.23.0-1.fc33.noarch
python3-koji-1.23.0-1.fc33.noarch

[root@bpi ~]# rpm -ql python3-koji
/usr/lib64/python3.9/site-packages/koji
/usr/lib64/python3.9/site-packages/koji/__init__.py
/usr/lib64/python3.9/site-packages/koji/__pycache__
/usr/lib64/python3.9/site-packages/koji/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/_version.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/_version.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/arch.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/arch.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/auth.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/auth.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/context.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/context.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/daemon.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/daemon.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/db.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/db.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/plugin.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/plugin.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/policy.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/policy.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/rpmdiff.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/rpmdiff.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/server.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/server.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/tasks.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/tasks.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/util.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/util.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/xmlrpcplus.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji/__pycache__/xmlrpcplus.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji/_version.py
/usr/lib64/python3.9/site-packages/koji/arch.py
/usr/lib64/python3.9/site-packages/koji/auth.py
/usr/lib64/python3.9/site-packages/koji/context.py
/usr/lib64/python3.9/site-packages/koji/daemon.py
/usr/lib64/python3.9/site-packages/koji/db.py
/usr/lib64/python3.9/site-packages/koji/plugin.py
/usr/lib64/python3.9/site-packages/koji/policy.py
/usr/lib64/python3.9/site-packages/koji/rpmdiff.py
/usr/lib64/python3.9/site-packages/koji/server.py
/usr/lib64/python3.9/site-packages/koji/tasks.py
/usr/lib64/python3.9/site-packages/koji/util.py
/usr/lib64/python3.9/site-packages/koji/xmlrpcplus.py
/usr/lib64/python3.9/site-packages/koji_cli
/usr/lib64/python3.9/site-packages/koji_cli/__init__.py
/usr/lib64/python3.9/site-packages/koji_cli/__pycache__
/usr/lib64/python3.9/site-packages/koji_cli/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji_cli/__pycache__/__init__.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji_cli/__pycache__/commands.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji_cli/__pycache__/commands.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji_cli/__pycache__/lib.cpython-39.opt-1.pyc
/usr/lib64/python3.9/site-packages/koji_cli/__pycache__/lib.cpython-39.pyc
/usr/lib64/python3.9/site-packages/koji_cli/commands.py
/usr/lib64/python3.9/site-packages/koji_cli/lib.py

[root@bpi ~]# koji list-targets --name f33
Traceback (most recent call last):
  File "/usr/bin/koji", line 39, in <module>
    import koji
ModuleNotFoundError: No module named 'koji'

Comment 3 Kevin Fenzi 2020-11-19 01:43:03 UTC
yeah, /usr/lib64 there is... wrong for a 32bit thing. ;) 

Looks like there was a upstream commit that made it install to /usr/lib64 on 64bit oses... which means the resulting package is not usable on 32bit ones. ;( 

filed: https://pagure.io/koji/issue/2578

Comment 4 Michal Privoznik 2020-11-24 14:37:20 UTC
Fix proposed here:

https://pagure.io/koji/pull-request/2579

Comment 5 Michal Privoznik 2020-11-30 13:56:11 UTC
Fixed:

https://pagure.io/koji/issue/2578
https://pagure.io/koji/c/2fa1f05

Comment 6 Fedora Update System 2020-12-01 03:32:26 UTC
FEDORA-2020-e3cff2530e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e3cff2530e

Comment 7 Fedora Update System 2020-12-01 03:32:27 UTC
FEDORA-2020-4cdebf648f has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-4cdebf648f

Comment 8 Fedora Update System 2020-12-02 01:38:39 UTC
FEDORA-2020-4cdebf648f has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-4cdebf648f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-4cdebf648f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2020-12-02 02:27:01 UTC
FEDORA-2020-e3cff2530e has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e3cff2530e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e3cff2530e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2020-12-04 19:52:19 UTC
FEDORA-2020-4cdebf648f has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-01-15 01:20:52 UTC
FEDORA-2020-e3cff2530e has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.