Bug 1295214 - TypeError: 'map' object is not subscriptable
TypeError: 'map' object is not subscriptable
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2016-01-03 11:57 EST by charlesvdv
Modified: 2016-01-04 07:33 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-01-04 07:33:45 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description charlesvdv 2016-01-03 11:57:13 EST
Hello !

Description of problem:

If I launch dnf in commandline with any option (even nothing) I got this error on my terminal :

Traceback (most recent call last):
  File "/usr/bin/dnf", line 57, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 93, in _main
    cli.configure(map(ucd, args))
  File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 928, in configure
    opts, cmds = self.optparser.parse_known_args(args)
  File "/usr/lib/python3.4/site-packages/argparse-1.1-py3.4.egg/argparse.py", line 1754, in parse_known_args
    for dest in self._defaults:
  File "/usr/lib/python3.4/site-packages/argparse-1.1-py3.4.egg/argparse.py", line 1966, in _parse_known_args
    start_index = consume_optional(start_index)
TypeError: 'map' object is not subscriptable

and in systemd logs I got an error this error :

Message : Failed to start dnf makecache. 
Priority : 3
Subject : Unit dnf-makecache.service has failed 

Version-Release number of selected component (if applicable):

I can really say because I can't do "dnf --version" but I have a up-to-date system. 

How reproducible:

I don't really know how I got this bug in the first place so I don't know how to recreate it. Sorry guys.

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

I hope it's enough. It's my first bug report.

Thank a lot !
Comment 1 Jaroslav Mracek 2016-01-04 07:33:45 EST
Please try to remove argparse-1.1-py3.4.egg from pip. Argparse is present in python by default. If it doesn't help, feel free to reopen the bug report. In this case please provide dnf version by command rpm -q dnf.

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