Bug 1262608 - [abrt] python3-dnf: completion_helper.py:190:main:AttributeError: 'module' object has no attribute 'Exception'
Summary: [abrt] python3-dnf: completion_helper.py:190:main:AttributeError: 'module' ob...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:637c9c74ae812692b134f13df45...
: 1264642 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-13 11:36 UTC by Szymon Janc
Modified: 2015-10-05 08:58 UTC (History)
9 users (show)

Fixed In Version: dnf-1.1.2-4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-05 08:58:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.26 KB, text/plain)
2015-09-13 11:36 UTC, Szymon Janc
no flags Details
File: environ (3.32 KB, text/plain)
2015-09-13 11:37 UTC, Szymon Janc
no flags Details

Description Szymon Janc 2015-09-13 11:36:55 UTC
Version-Release number of selected component:
python3-dnf-1.1.1-2.fc23

Additional info:
reporter:       libreport-2.6.2
cmdline:        python3 /usr/lib/python3.4/site-packages/dnf/cli/completion_helper.py list list '' -d 0 -q -C
executable:     /usr/lib/python3.4/site-packages/dnf/cli/completion_helper.py
kernel:         4.2.0-300.fc23.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
completion_helper.py:190:main:AttributeError: 'module' object has no attribute 'Exception'

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/dnf/cli/completion_helper.py", line 189, in main
    cli.run()
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1084, in run
    self._process_demands()
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 806, in _process_demands
    load_available_repos=lar)
  File "/usr/lib/python3.4/site-packages/dnf/base.py", line 249, in fill_sack
    self._add_repo_to_sack(r.id)
  File "/usr/lib/python3.4/site-packages/dnf/base.py", line 127, in _add_repo_to_sack
    load_updateinfo=True)
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/dnf/cli/completion_helper.py", line 195, in <module>
    main(sys.argv[1:])
  File "/usr/lib/python3.4/site-packages/dnf/cli/completion_helper.py", line 190, in main
    except dnf.exceptions.Exception:
AttributeError: 'module' object has no attribute 'Exception'

Local variables in innermost frame:
base: <dnf.cli.cli.BaseCli object at 0x7f97b330ea20>
args: ['list', 'list', '', '-d', '0', '-q', '-C']
cli: <dnf.cli.cli.Cli object at 0x7f979f1c8978>

Comment 1 Szymon Janc 2015-09-13 11:36:59 UTC
Created attachment 1072849 [details]
File: backtrace

Comment 2 Szymon Janc 2015-09-13 11:37:00 UTC
Created attachment 1072850 [details]
File: environ

Comment 3 Honza Silhan 2015-09-16 11:16:08 UTC
This should be fixed by this PR: https://github.com/rpm-software-management/dnf/pull/352

Comment 4 Radek Holy 2015-09-21 08:40:05 UTC
*** Bug 1264642 has been marked as a duplicate of this bug. ***

Comment 5 Kamil Páral 2015-09-30 06:44:41 UTC
Another user experienced a similar problem:

Tried to use tab completion for dnf in the terminal

reporter:       libreport-2.6.2
cmdline:        python3 /usr/lib/python3.4/site-packages/dnf/cli/completion_helper.py install extremetux -d 0 -q -C
executable:     /usr/lib/python3.4/site-packages/dnf/cli/completion_helper.py
kernel:         4.2.1-300.fc23.x86_64
package:        python3-dnf-1.1.1-2.fc23
reason:         completion_helper.py:190:main:AttributeError: 'module' object has no attribute 'Exception'
runlevel:       N 5
type:           Python3
uid:            1000


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