Description of problem: On fedora run: import dnf import hawkey q=dnf.query.Query(hawkey.Sack()) u=q.upgrades() for i in u: print(i) Version-Release number of selected component: python-ipython-console-3.2.1-7.fc24 Additional info: reporter: libreport-2.7.2 backtrace_rating: 4 cmdline: /usr/bin/python3 /usr/bin/ipython crash_function: filter_updown executable: /usr/bin/python3.5 global_pid: 31805 kernel: 4.6.4-301.fc24.x86_64 pkg_fingerprint: 73BD E983 81B4 6521 pkg_vendor: Fedora Project runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #4 filter_updown at /usr/src/debug/hawkey-0.6.3/src/query.c:643 #5 hy_query_apply at /usr/src/debug/hawkey-0.6.3/src/query.c:892 #6 hy_query_run_set at /usr/src/debug/hawkey-0.6.3/src/query.c:1274 #7 run at /usr/src/debug/hawkey-0.6.3/src/python/query-py.c:313 #8 call_function at /usr/src/debug/Python-3.5.1/Python/ceval.c:4663 #9 PyEval_EvalFrameEx at /usr/src/debug/Python-3.5.1/Python/ceval.c:3209 #10 _PyEval_EvalCodeWithName at /usr/src/debug/Python-3.5.1/Python/ceval.c:3995 #11 fast_function at /usr/src/debug/Python-3.5.1/Python/ceval.c:4793 #12 call_function at /usr/src/debug/Python-3.5.1/Python/ceval.c:4710 #13 PyEval_EvalFrameEx at /usr/src/debug/Python-3.5.1/Python/ceval.c:3209
Created attachment 1185088 [details] File: backtrace
Created attachment 1185089 [details] File: cgroup
Created attachment 1185090 [details] File: core_backtrace
Created attachment 1185091 [details] File: dso_list
Created attachment 1185092 [details] File: environ
Created attachment 1185093 [details] File: limits
Created attachment 1185094 [details] File: maps
Created attachment 1185095 [details] File: mountinfo
Created attachment 1185096 [details] File: namespaces
Created attachment 1185097 [details] File: open_fds
Created attachment 1185098 [details] File: proc_pid_status
Created attachment 1185099 [details] File: var_log_messages
Can reproduce with python3-3.5.1-12
I can also reproduce this with $ rpm -q python python3 python-2.7.13-1.fc25.x86_64 python3-3.5.2-4.fc25.x86_64 This has nothing to do with ipython, assigning to hawkey instead.
It could be fixed in hawkey and return empty list when the Sack is empty. BTW base.sack() from DNF base object should be used not hawkey directly. It's more convenient.
I created a patch that should solve the problem (https://github.com/rpm-software-management/libdnf/pull/323).
dnf-plugins-extras-2.0.3-1.fc27 dnf-plugins-core-2.1.4-1.fc27 dnf-2.7.2-1.fc27 libdnf-0.10.1-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-faf235c683
dnf-plugins-extras-2.0.3-1.fc26 dnf-plugins-core-2.1.4-1.fc26 dnf-2.7.2-1.fc26 libdnf-0.10.1-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-70a8618065
dnf-2.7.2-1.fc26, dnf-plugins-core-2.1.4-1.fc26, dnf-plugins-extras-2.0.3-1.fc26, libdnf-0.10.1-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-70a8618065
dnf-2.7.2-1.fc27, dnf-plugins-core-2.1.4-1.fc27, dnf-plugins-extras-2.0.3-1.fc27, libdnf-0.10.1-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-faf235c683
dnf-2.7.2-1.fc27, dnf-plugins-core-2.1.4-1.fc27, dnf-plugins-extras-2.0.3-1.fc27, libdnf-0.10.1-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
dnf-2.7.2-1.fc26, dnf-plugins-core-2.1.4-1.fc26, dnf-plugins-extras-2.0.3-1.fc26, libdnf-0.10.1-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.