python-coverage crashed with NameError in make_local_static_report_files(): global name 'system_javascript' is not defined

Bug #1109090 reported by Francis Ginther
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-coverage (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Full Trace:
$ python-coverage html --include="*.py,*/*.py"
Traceback (most recent call last):
  File "/usr/bin/python-coverage", line 9, in <module>
    load_entry_point('coverage==3.6', 'console_scripts', 'coverage')()
  File "/usr/lib/python2.7/dist-packages/coverage/cmdline.py", line 710, in main
    status = CoverageScript().command_line(argv)
  File "/usr/lib/python2.7/dist-packages/coverage/cmdline.py", line 452, in command_line
    **report_args)
  File "/usr/lib/python2.7/dist-packages/coverage/control.py", line 615, in html_report
    return reporter.report(morfs)
  File "/usr/lib/python2.7/dist-packages/coverage/html.py", line 96, in report
    self.make_local_static_report_files()
  File "/usr/lib/python2.7/dist-packages/coverage/html.py", line 122, in make_local_static_report_files
    os.path.join(system_javascript.path, "jquery-tablesorter"),
NameError: global name 'system_javascript' is not defined

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: python-coverage 3.6-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-2.6-generic 3.8.0-rc4
Uname: Linux 3.8.0-2-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.8-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Tue Jan 29 11:10:12 2013
ExecutablePath: /usr/bin/python-coverage
InstallationDate: Installed on 2012-06-03 (240 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
InterpreterPath: /usr/bin/python2.7
MarkForUpload: True
ProcCmdline: /usr/bin/python /usr/bin/python-coverage html --include=*.py,*/*.py
ProcEnviron:
 TERM=xterm
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 XDG_RUNTIME_DIR=<set>
PythonArgs: ['/usr/bin/python-coverage', 'html', '--include=*.py,*/*.py']
SourcePackage: python-coverage
Title: python-coverage crashed with NameError in make_local_static_report_files(): global name 'system_javascript' is not defined
UpgradeStatus: Upgraded to raring on 2013-01-11 (17 days ago)
UserGroups: adm cdrom dip libvirtd lpadmin plugdev sambashare sbuild sudo vboxusers

Related branches

Revision history for this message
Francis Ginther (fginther) wrote :
tags: removed: need-duplicate-check
Changed in python-coverage (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Francis Ginther (fginther) wrote :

Looks like a typo when specifying the variable name: 'system_javascript.path' instead of 'system_javascript_path'.

Patch file is based on lp:ubuntu/python-coverage.

information type: Private → Public
Changed in python-coverage (Ubuntu):
status: New → Triaged
tags: added: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "fix_system_javascript_patch.diff" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Allan LeSage (allanlesage) wrote :

The above patch resolved my own encounter with this bug while testing under Django using nose.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-coverage - 3.6-0ubuntu2

---------------
python-coverage (3.6-0ubuntu2) raring; urgency=low

  * Fix a typo in 02.use-system-js-libraries.patch that was causing
    NameErrors (LP: #1109090).
 -- Dmitry Shachnev <email address hidden> Tue, 19 Mar 2013 19:25:38 +0400

Changed in python-coverage (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.