Bug 1066098

Summary: Uncaught exception
Product: [Fedora] Fedora Reporter: Alice Wonder <alicewonder>
Component: python-eyed3Assignee: Christopher Meng <i>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: alicewonder, bdpepple, i
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-30 00:54:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to fix none

Description Alice Wonder 2014-02-17 16:44:42 UTC
Description of problem:
When attempting to look at lametag I get an uncaught exception

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


How reproducible:
python-eyed3-0.7.4-1.fc20.noarch

Steps to Reproduce:
1. eyeD3 -P lameinfo whatever.mp3
2.
3.

Actual results:
CustomAudioAliceWonderHead.mp3	[ 13.65 MB ]
-------------------------------------------------------------------------------
Uncaught exception: global name 'math' is not defined

eyed3:ERROR: global name 'math' is not defined
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 282, in <module>
    retval = mainFunc(args, config)
  File "/usr/lib/python2.7/site-packages/eyed3/main.py", line 51, in main
    fs_encoding=args.fs_encoding)
  File "/usr/lib/python2.7/site-packages/eyed3/utils/__init__.py", line 109, in walk
    handler.handleFile(os.path.abspath(path))
  File "/usr/lib/python2.7/site-packages/eyed3/plugins/lameinfo.py", line 77, in handleFile
    db = 20 * math.log10(peak)
NameError: global name 'math' is not defined

Expected results:
Show the lame tag

Additional info:
I am not a python coder but I suspect it is just a case of the spec file needing a dependency not declared as Requires

Comment 1 Alice Wonder 2014-02-17 21:20:56 UTC
Adding the line

import math

in

/usr/lib/python2.7/site-packages/eyed3/plugins/lameinfo.py

seems to have fixed it.

Comment 2 Alice Wonder 2014-02-20 10:13:48 UTC
Created attachment 865403 [details]
patch to fix

Comment 3 Christopher Meng 2014-04-11 06:18:27 UTC
Have you notified upstream of this problem?

Comment 4 Fedora End Of Life 2015-05-29 10:57:16 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2015-06-30 00:54:11 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.