Bug 1245792 - [abrt] abrt-addon-ccpp: dnfdebuginfo.py:21:<module>:ImportError: No module named dnf
Summary: [abrt] abrt-addon-ccpp: dnfdebuginfo.py:21:<module>:ImportError: No module na...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: libreport
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matej Habrnal
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:0c323e19564620b1fdea2ff364e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-22 19:05 UTC by Giulio 'juliuxpigface'
Modified: 2016-12-20 14:17 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-12-20 14:17:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (6.52 KB, text/plain)
2015-07-22 19:05 UTC, Giulio 'juliuxpigface'
no flags Details
File: environ (67 bytes, text/plain)
2015-07-22 19:05 UTC, Giulio 'juliuxpigface'
no flags Details

Description Giulio 'juliuxpigface' 2015-07-22 19:05:44 UTC
Description of problem:
I encountered this while letting abrt collect info for bug 1245789

Version-Release number of selected component:
abrt-addon-ccpp-2.6.1-1.fc23

Additional info:
reporter:       libreport-2.6.1
cmdline:        /usr/bin/python -u /usr/bin/abrt-action-install-debuginfo --ids /proc/self/fd/3 --
dso_list:       libreport-python-2.6.1-1.fc23.x86_64
executable:     /usr/bin/abrt-action-install-debuginfo
kernel:         4.2.0-0.rc2.git1.1.fc23.x86_64
runlevel:       N 5
type:           Python
uid:            173

Truncated backtrace:
#1 <module> in /usr/lib64/python2.7/site-packages/reportclient/dnfdebuginfo.py:21
#2 <module> in /usr/bin/abrt-action-install-debuginfo:228

Comment 1 Giulio 'juliuxpigface' 2015-07-22 19:05:48 UTC
Created attachment 1054987 [details]
File: backtrace

Comment 2 Giulio 'juliuxpigface' 2015-07-22 19:05:50 UTC
Created attachment 1054988 [details]
File: environ

Comment 3 Jakub Filak 2015-07-22 19:52:44 UTC
Thank you for the bug report! It looks like that it is not enough to Require: dnf, we have to Require: python3-dnf.

Can you please install python3-dnf, re-test and report the results here?

Comment 4 Giulio 'juliuxpigface' 2015-07-22 20:35:03 UTC
I found that the exception is raised when I tell abrt to generate the stacktrace locally (instead of uploading it).


(In reply to Jakub Filak from comment #3)
> Thank you for the bug report! It looks like that it is not enough to
> Require: dnf, we have to Require: python3-dnf.
> 
> Can you please install python3-dnf, re-test and report the results here?

python3-dnf is already installed:

[root@saturn giulio]# dnf install python3-dnf
Fedora 23 - x86_64 - Updates                    110  B/s | 257  B     00:02    
Last metadata expiration check performed 0:00:00 ago on Wed Jul 22 22:28:51 2015.
Package python3-dnf-1.0.1-3.fc23.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!

Comment 5 Jakub Filak 2015-07-22 20:57:53 UTC
Hmm, python3-dnf is installed and the uncaught exception is reproducible.
Can you please provide the output of the following commands?

$ echo "import sys; import dnf; print(dir(dnf))" | python3
$ rpm -V python3-dnf
$ ls -arl /usr/lib/python3.4/site-packages/dnf/

Comment 6 Giulio 'juliuxpigface' 2015-07-23 19:07:20 UTC
(In reply to Jakub Filak from comment #5)
> Can you please provide the output of the following commands?
> 

The second one returns no output.

> $ echo "import sys; import dnf; print(dir(dnf))" | python3
[giulio@saturn ~]$ echo "import sys; import dnf; print(dir(dnf))" | python3
['Base', 'Plugin', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '__version__', 'arch', 'base', 'callback', 'comps', 'conf', 'const', 'crypto', 'dnf', 'drpm', 'exceptions', 'goal', 'history', 'i18n', 'lock', 'logging', 'package', 'persistor', 'plugin', 'pycomp', 'query', 'repo', 'repodict', 'rpm', 'sack', 'selector', 'subject', 'transaction', 'unicode_literals', 'util', 'warnings', 'yum']

> $ rpm -V python3-dnf
[giulio@saturn ~]$ rpm -V python3-dnf
[giulio@saturn ~]$

> $ ls -arl /usr/lib/python3.4/site-packages/dnf/
[giulio@saturn ~]$ ls -arl /usr/lib/python3.4/site-packages/dnf/
totale 288
drwxr-xr-x. 1 root root   182 17 lug 14.14 yum
-rw-r--r--. 1 root root  8452  9 giu 12.46 util.py
-rw-r--r--. 1 root root  6891  9 giu 12.46 transaction.py
-rw-r--r--. 1 root root  5427  9 giu 12.46 subject.py
-rw-r--r--. 1 root root  1454  9 giu 12.46 selector.py
-rw-r--r--. 1 root root  3282  9 giu 12.46 sack.py
drwxr-xr-x. 1 root root   138 17 lug 14.14 rpm
-rw-r--r--. 1 root root 27063  9 giu 12.46 repo.py
-rw-r--r--. 1 root root  2169  9 giu 12.46 repodict.py
-rw-r--r--. 1 root root  5475  9 giu 12.46 query.py
-rw-r--r--. 1 root root  2953  9 giu 12.46 pycomp.py
drwxr-xr-x. 1 root root  2308 17 lug 14.14 __pycache__
-rw-r--r--. 1 root root  4063  9 giu 12.46 plugin.py
-rw-r--r--. 1 root root 10469  9 giu 12.46 persistor.py
-rw-r--r--. 1 root root  5634  9 giu 12.46 package.py
-rw-r--r--. 1 root root  3853  9 giu 12.46 match_counter.py
-rw-r--r--. 1 root root  5976  9 giu 12.46 logging.py
-rw-r--r--. 1 root root  5148  9 giu 12.46 lock.py
-rw-r--r--. 1 root root  1395  9 giu 12.46 __init__.py
-rw-r--r--. 1 root root  9635  9 giu 12.46 i18n.py
-rw-r--r--. 1 root root 19206  9 giu 12.46 history.py
-rw-r--r--. 1 root root  2164  9 giu 12.46 goal.py
-rw-r--r--. 1 root root  3425  9 giu 12.46 exceptions.py
-rw-r--r--. 1 root root  5832  9 giu 12.46 drpm.py
-rw-r--r--. 1 root root  4407  9 giu 12.46 crypto.py
-rw-r--r--. 1 root root  2248 17 giu 06.27 const.py
drwxr-xr-x. 1 root root   108 17 lug 14.14 conf
-rw-r--r--. 1 root root 17245  9 giu 12.46 comps.py
drwxr-xr-x. 1 root root   264 17 lug 14.14 cli
-rw-r--r--. 1 root root  2863  9 giu 12.46 callback.py
-rw-r--r--. 1 root root 70176 17 giu 06.27 base.py
-rw-r--r--. 1 root root  2066  9 giu 12.46 arch.py
drwxr-xr-x. 1 root root  2728 17 lug 14.18 ..
drwxr-xr-x. 1 root root   554 17 lug 14.14 .

Comment 7 Fedora End Of Life 2016-11-24 12:13:27 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2016-12-20 14:17:48 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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