Bug 1707572 - crash with dnf copr disable: NotImplementedError: Wrong number or type of arguments for overloaded function 'ConfigParser_setValue'
Summary: crash with dnf copr disable: NotImplementedError: Wrong number or type of arg...
Keywords:
Status: CLOSED DUPLICATE of bug 1693551
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 29
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Parag Nemade
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-07 19:36 UTC by Randy Barlow
Modified: 2019-05-07 19:45 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-07 19:45:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Randy Barlow 2019-05-07 19:36:49 UTC
Description of problem:
# dnf copr disable jrohel/libdnf-bodhi
Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 192, in user_main
    errcode = main(args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 115, in cli_run
    cli.run()
  File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 1129, in run
    return self.command.run()
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 266, in run
    self._disable_repo(copr_username, copr_projectname)
  File "/usr/lib/python3.7/site-packages/dnf-plugins/copr.py", line 521, in _disable_repo
    self.base.conf.substitutions, {"enabled": 0})
  File "/usr/lib/python3.7/site-packages/dnf/conf/config.py", line 198, in write_raw_configfile
    parser.setValue(section_id, name, value)
  File "/usr/lib64/python3.7/site-packages/libdnf/conf.py", line 1858, in setValue
    return _conf.ConfigParser_setValue(self, *args)
NotImplementedError: Wrong number or type of arguments for overloaded function 'ConfigParser_setValue'.
  Possible C/C++ prototypes are:
    libdnf::ConfigParser::setValue(std::string const &,std::string const &,std::string const &,std::string const &)                                                                                               
    libdnf::ConfigParser::setValue(std::string const &,std::string const &,std::string const &)


Version-Release number of selected component (if applicable):
python3-dnf-plugins-core-4.0.6-1.fc29


How reproducible:
Every time.

Comment 1 Randy Barlow 2019-05-07 19:45:19 UTC

*** This bug has been marked as a duplicate of bug 1693551 ***


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