Bug 2293802 - [abrt] whipper: error_deprecation(): main.py:1039:error_deprecation:AttributeError:
Summary: [abrt] whipper: error_deprecation(): main.py:1039:error_deprecation:Attribute...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: whipper
Version: 40
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Oliver
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6716ca9f403cf784bbe189e0dea...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-22 22:06 UTC by Dario Castellarin
Modified: 2024-07-12 04:18 UTC (History)
2 users (show)

Fixed In Version: whipper-0.10.0-14.fc40
Clone Of:
Environment:
Last Closed: 2024-07-12 04:18:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (734 bytes, text/plain)
2024-06-22 22:06 UTC, Dario Castellarin
no flags Details
File: environ (3.28 KB, text/plain)
2024-06-22 22:06 UTC, Dario Castellarin
no flags Details
File: mountinfo (3.13 KB, text/plain)
2024-06-22 22:06 UTC, Dario Castellarin
no flags Details
File: open_fds (1.13 KB, text/plain)
2024-06-22 22:06 UTC, Dario Castellarin
no flags Details
File: namespaces (171 bytes, text/plain)
2024-06-22 22:06 UTC, Dario Castellarin
no flags Details
File: backtrace (2.83 KB, text/plain)
2024-06-22 22:06 UTC, Dario Castellarin
no flags Details
File: cpuinfo (3.16 KB, text/plain)
2024-06-22 22:06 UTC, Dario Castellarin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github whipper-team whipper issues 626 0 None open Empty .log files 2024-06-22 22:12:02 UTC

Description Dario Castellarin 2024-06-22 22:06:12 UTC
Description of problem:
whipper consistenly crashes at the end of album ripping, when trying to write the rip log. The log creates is empty, while the ripped files are fine.

Version-Release number of selected component:
whipper-0.10.0-12.fc40

Additional info:
reporter:       libreport-2.17.15
kernel:         6.9.4-200.fc40.x86_64
cmdline:        /usr/bin/python3 /usr/bin/whipper cd rip
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-559c3279-2aef-44bf-9f9d-b55b8513d488.scope
uid:            1000
reason:         main.py:1039:error_deprecation:AttributeError: 
executable:     /usr/bin/whipper
type:           Python3
package:        whipper-0.10.0-12.fc40
runlevel:       N 5
exception_type: AttributeError
crash_function: error_deprecation
interpreter:    python3-3.12.3-2.fc40.x86_64
comment:        whipper consistenly crashes at the end of album ripping, when trying to write the rip log. The log creates is empty, while the ripped files are fine.

Truncated backtrace:
main.py:1039:error_deprecation:AttributeError: 
"dump()" has been removed, use

  yaml = YAML(typ='unsafe', pure=True)
  yaml.dump(...)

instead of file "/usr/lib64/python3.12/site-packages/whipper/result/logger.py", line 151

        riplog = yaml.dump(



Traceback (most recent call last):
  File "/usr/bin/whipper", line 33, in <module>
    sys.exit(load_entry_point('whipper==0.10.0', 'console_scripts', 'whipper')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/whipper/command/main.py", line 56, in main
    ret = cmd.do()
          ^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/whipper/command/basecommand.py", line 141, in do
    return self.cmd.do()
           ^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/whipper/command/basecommand.py", line 141, in do
    return self.cmd.do()
           ^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/whipper/command/cd.py", line 203, in do
    ret = self.doCommand()
          ^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/whipper/command/cd.py", line 589, in doCommand
    self.program.writeLog(discName, self.logger)
  File "/usr/lib64/python3.12/site-packages/whipper/common/program.py", line 699, in writeLog
    log = txt_logger.log(self.result)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/whipper/result/logger.py", line 22, in log
    return self.logRip(ripResult, epoch)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/site-packages/whipper/result/logger.py", line 151, in logRip
    riplog = yaml.dump(
             ^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1251, in dump
    error_deprecation('dump', 'dump', arg="typ='unsafe', pure=True")
  File "/usr/lib/python3.12/site-packages/ruamel/yaml/main.py", line 1039, in error_deprecation
    raise AttributeError(s, name=None)
AttributeError: 
"dump()" has been removed, use

  yaml = YAML(typ='unsafe', pure=True)
  yaml.dump(...)

instead of file "/usr/lib64/python3.12/site-packages/whipper/result/logger.py", line 151

        riplog = yaml.dump(



Local variables in innermost frame:
fun: 'dump'
method: 'dump'
arg: "typ='unsafe', pure=True"
comment: 'instead of'
inspect: <module 'inspect' from '/usr/lib64/python3.12/inspect.py'>
s: '\n"dump()" has been removed, use\n\n  yaml = YAML(typ=\'unsafe\', pure=True)\n  yaml.dump(...)\n\ninstead of file "/usr/lib64/python3.12/site-packages/whipper/result/logger.py", line 151\n\n        riplog = yaml.dump(\n\n'
info: Traceback(filename='/usr/lib64/python3.12/site-packages/whipper/result/logger.py', lineno=151, function='logRip', code_context=['        riplog = yaml.dump(\n'], index=0, positions=Positions(lineno=151, end_lineno=156, col_offset=17, end_col_offset=9))
context: '        riplog = yaml.dump(\n'

Comment 1 Dario Castellarin 2024-06-22 22:06:16 UTC
Created attachment 2038003 [details]
File: os_info

Comment 2 Dario Castellarin 2024-06-22 22:06:18 UTC
Created attachment 2038004 [details]
File: environ

Comment 3 Dario Castellarin 2024-06-22 22:06:19 UTC
Created attachment 2038005 [details]
File: mountinfo

Comment 4 Dario Castellarin 2024-06-22 22:06:20 UTC
Created attachment 2038006 [details]
File: open_fds

Comment 5 Dario Castellarin 2024-06-22 22:06:22 UTC
Created attachment 2038007 [details]
File: namespaces

Comment 6 Dario Castellarin 2024-06-22 22:06:23 UTC
Created attachment 2038008 [details]
File: backtrace

Comment 7 Dario Castellarin 2024-06-22 22:06:25 UTC
Created attachment 2038009 [details]
File: cpuinfo

Comment 8 Dario Castellarin 2024-06-22 22:12:02 UTC
Also reported upstream https://github.com/whipper-team/whipper/issues/626

Comment 9 Fedora Update System 2024-07-03 18:05:12 UTC
FEDORA-2024-954f77c437 (whipper-0.10.0-14.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-954f77c437

Comment 10 Fedora Update System 2024-07-04 01:58:50 UTC
FEDORA-2024-954f77c437 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-954f77c437`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-954f77c437

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2024-07-12 04:18:28 UTC
FEDORA-2024-954f77c437 (whipper-0.10.0-14.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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