[Bug 1220478] Re: /usr/bin/eyeD3 depends on PATH to find python, crashes with ImportError

Bug Watch Updater 1220478 at bugs.launchpad.net
Tue Nov 15 21:42:34 UTC 2016


** Changed in: eyed3 (Debian)
       Status: Unknown => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eyed3 in Ubuntu.
https://bugs.launchpad.net/bugs/1220478

Title:
  /usr/bin/eyeD3 depends on PATH to find python, crashes with
  ImportError

Status in eyed3 package in Ubuntu:
  Fix Released
Status in eyed3 package in Debian:
  Fix Released

Bug description:
  /usr/bin/eyeD3 is a python script which starts with

       #!/usr/bin/env python

  but instead should hard-code the path where Ubuntu installed the
  version of python which has eyeD3's companion libraries:

       #!/usr/bin/python

  Depending on PATH leads to disaster if multiple python executables are
  installed and anything other than the system default is first in PATH.
  The problem is that eyeD3 depends on its own app-specific libraries,
  and each python installation uses its own separate library
  directories.  So if the "wrong" python interpreter is used, the
  expected libraries will not be found.  This causes the eye3D program
  to crash with

      ImportError: No module named eyeD3

  In particular, if a Libre Office test build is installed and
  /opt/libreoffice*/program is before /usr/bin in PATH (as it must be to
  use conveniently), then "eyeD3" crashes with an import error because
  libreoffice comes with its own python installation.

  This is also a security risk because a script named "python" will be
  executed without the user's knowledge if "." is in PATH before
  /usr/bin

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: eyed3 0.6.18-1
  ProcVersionSignature: Ubuntu 3.8.0-29.42-generic 3.8.13.5
  Uname: Linux 3.8.0-29-generic x86_64
  ApportVersion: 2.9.2-0ubuntu8.3
  Architecture: amd64
  Date: Tue Sep  3 16:47:18 2013
  InstallationDate: Installed on 2013-08-06 (28 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: eyed3
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eyed3/+bug/1220478/+subscriptions



More information about the foundations-bugs mailing list