Hide Forgot
Description of problem: I've changed my token and login in the config, but I forgot to change the username. Version-Release number of selected component: copr-cli-1.15-1.fc20 Additional info: reporter: libreport-2.1.9 cmdline: /usr/bin/python2 /usr/bin/copr-cli build openscad-devel http://churchyard.fedorapeople.org/SRPMS/openscad-2013.12-0.2.20131215gite64bf96.fc20.src.rpm dso_list: python-libs-2.7.5-9.fc20.x86_64 executable: /usr/bin/copr-cli kernel: 3.11.10-301.fc20.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: ConfigParser.py:546:_read:ParsingError: File contains parsing errors: /home/churchyard/.config/copr [line 2]: ' username = msuchy\n' [line 3]: ' login = babooooo\n' [line 4]: ' token = hooooooo\n' Traceback (most recent call last): File "/usr/bin/copr-cli", line 9, in <module> load_entry_point('copr-cli==0.1.0', 'console_scripts', 'copr-cli')() File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 125, in main arg.func(arg) File "/usr/lib/python2.7/site-packages/copr_cli/main.py", line 21, in action_build args.memory, args.timeout, not args.nowait) File "/usr/lib/python2.7/site-packages/copr_cli/subcommands.py", line 197, in build user = get_user() File "/usr/lib/python2.7/site-packages/copr_cli/subcommands.py", line 24, in get_user 'copr')): File "/usr/lib64/python2.7/ConfigParser.py", line 305, in read self._read(fp, filename) File "/usr/lib64/python2.7/ConfigParser.py", line 546, in _read raise e ParsingError: File contains parsing errors: /home/churchyard/.config/copr [line 2]: ' username = msuchy\n' [line 3]: ' login = baboooo\n' [line 4]: ' token = hoooo\n' Local variables in innermost frame: sectname: 'copr-cli' cursect: OrderedDict([('__name__', 'copr-cli')]) e: File contains parsing errors: /home/churchyard/.config/copr [line 2]: ' username = msuchy\n' [line 3]: ' login = babooooo\n' [line 4]: ' token = hooooooo\n' fpname: '/home/churchyard/.config/copr' mo: None optname: None fp: <open file '/home/churchyard/.config/copr', mode 'r' at 0x1d3b9c0> lineno: 5 line: '' self: <ConfigParser.ConfigParser instance at 0x1eb5908>
Created attachment 837980 [details] File: backtrace
Created attachment 837981 [details] File: environ
[copr-cli] username = churchyard login = Y29wcg==##laptsijpskfsnhlgtxnu token = lhzzcoypxdgutxqjufbznqtbxaksqf (I've regenerated the token now, so I can publish it here) So, this error was not because of wrong filename, but probably because the ## in the login.
So after all, this seems to be created by the indention on the beginning of the lines. Copied that from the manpage.
fixed in commit 62a7525 copr-cli does not print TB now, just error and as bonus it gives you guidenance (as this will be probably common error): Lines in INI file should not be indented. In this case copr-cli will return status code 4.
copr-1.20-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/copr-1.20-1.fc20
Package copr-1.20-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing copr-1.20-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0449/copr-1.20-1.fc20 then log in and leave karma (feedback).
copr-1.21-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.