#365 fedora-review fails with "Exception down the road" on Fedora 31
Closed: fixed 4 years ago by nonamedotc. Opened 4 years ago by nonamedotc.

This the content of ~/.cache/fedora-review.log

$ cat ~/.cache/fedora-review.log 
09-18 17:42 root         DEBUG    fedora-review 0.7.2 65d36bb 2019-04-09 16:30:26 -0400 started
09-18 17:42 root         DEBUG    Command  line: /usr/bin/fedora-review --rpm-spec -n R-wesanderson-0.3.6-1.fc30.src.rpm
09-18 17:42 root         INFO     Processing local files: R-wesanderson-0.3.6-1.fc30.src.rpm
09-18 17:42 root         DEBUG    Active settings after processing options
09-18 17:42 root         DEBUG        bz_url: https://bugzilla.redhat.com
09-18 17:42 root         DEBUG        _con_handler: <StreamHandler <stderr> (INFO)>
09-18 17:42 root         DEBUG        _log_config_done: True
09-18 17:42 root         DEBUG        cache: False
09-18 17:42 root         DEBUG        resultdir: None
09-18 17:42 root         DEBUG        init_done: True
09-18 17:42 root         DEBUG        uniqueext: None
09-18 17:42 root         DEBUG        configdir: None
09-18 17:42 root         DEBUG        log_level: 20
09-18 17:42 root         DEBUG        prebuilt: False
09-18 17:42 root         DEBUG        verbose: False
09-18 17:42 root         DEBUG        name: R-wesanderson-0.3.6-1.fc30.src.rpm
09-18 17:42 root         DEBUG        use_colors: True
09-18 17:42 root         DEBUG        session_log: /home/mukundan/.cache/fedora-review.log
09-18 17:42 root         DEBUG        bug: None
09-18 17:42 root         DEBUG        url: None
09-18 17:42 root         DEBUG        copr_build_descriptor: None
09-18 17:42 root         DEBUG        list_checks: False
09-18 17:42 root         DEBUG        list_flags: False
09-18 17:42 root         DEBUG        list_plugins: False
09-18 17:42 root         DEBUG        version: False
09-18 17:42 root         DEBUG        flags: []
09-18 17:42 root         DEBUG        repo: None
09-18 17:42 root         DEBUG        mock_config: fedora-rawhide-x86_64
09-18 17:42 root         DEBUG        no_report: False
09-18 17:42 root         DEBUG        nobuild: False
09-18 17:42 root         DEBUG        mock_options: --no-bootstrap-chroot --no-cleanup-after --no-clean
09-18 17:42 root         DEBUG        other_bz: None
09-18 17:42 root         DEBUG        plugins_arg: None
09-18 17:42 root         DEBUG        single: None
09-18 17:42 root         DEBUG        rpm_spec: True
09-18 17:42 root         DEBUG        exclude: None
09-18 17:42 root         DEBUG        checksum: sha256
09-18 17:42 root         DEBUG        plugins: {}
09-18 17:42 root         INFO     Getting .spec and .srpm Urls from : Local files in /home/mukundan/nextcloud/open_source_contrib/pkg_reviews/1751456-R-wesanderson
09-18 17:42 root         INFO       --> SRPM url: file:///home/mukundan/nextcloud/open_source_contrib/pkg_reviews/1751456-R-wesanderson/R-wesanderson-0.3.6-1.fc30.src.rpm
09-18 17:42 root         INFO     Using review directory: /home/mukundan/nextcloud/open_source_contrib/pkg_reviews/1751456-R-wesanderson/R-wesanderson
09-18 17:42 root         DEBUG    find_urls completed: 0.015
09-18 17:42 root         DEBUG    Avoiding init of working mock root
09-18 17:42 root         DEBUG    Url download completed: 1.477
09-18 21:42 root         DEBUG    Exception down the road...
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 236, in run
    self._do_run(outfile)
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 226, in _do_run
    self._do_report(outfile)
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 99, in _do_report
    self._run_checks(self.bug.spec_file, self.bug.srpm_file, outfile)
  File "/usr/lib/python3.7/site-packages/FedoraReview/review_helper.py", line 108, in _run_checks
    self.checks = Checks(spec, srpm)
  File "/usr/lib/python3.7/site-packages/FedoraReview/checks.py", line 280, in __init__
    self.spec = SpecFile(spec_file, self.flags)
  File "/usr/lib/python3.7/site-packages/FedoraReview/spec_file.py", line 89, in __init__
    self.expand_tag(rpm.RPMTAG_NAME).decode("utf-8"),
AttributeError: 'str' object has no attribute 'decode'
09-18 21:42 root         ERROR    Exception down the road... (logs in /home/mukundan/.cache/fedora-review.log)
09-18 21:42 root         DEBUG    Report completed:  2.313 seconds

Same issue happens even with fedora-review -b. spec and srpm are downloaded.

Is this the version from git?

No. This is version 0.7.2-2.fc31 from the repos.

Metadata Update from @nonamedotc:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Yup! 0.7.3 fixes it. Thanks!

Login to comment on this ticket.

Metadata