← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 1526963] [NEW] mythburn.py crashes: AttributeError: 'weakref' object has no attribute 'commit'

 

Public bug reported:

While archiving a mpg video to DVD, I go through all the steps to define
what I want to write to DVD, press the 'next' button, and after a delay,
the log view is displayed, but no text, and nothing is happening.   When
I look in mythburn.log, I find the following error message:

Traceback (most recent call last):
  File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 197, in <module>
    DB = MythTV.MythDB()
  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 1271, in __init__
    elif self._testconfig(tmpconfig):
  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 1301, in _testconfig
    self._schema_name)
  File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 1324, in _check_schema
    sver = int(cursor.fetchone()[0])
  File "/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 107, in __exit__
    self.commit()
  File "/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 98, in commit
    def commit(self): self.connection.commit()
AttributeError: 'weakref' object has no attribute 'commit'

That's the whole content of the file.  I have had this working before,
but it was several months ago, probably with a different release of
mythtv.

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: mytharchive 2:0.27.1+fixes.20140624.aa822f5-0ubuntu6 [origin: unknown]
ProcVersionSignature: Ubuntu 4.2.0-21.25-generic 4.2.6
Uname: Linux 4.2.0-21-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CrashDB: mythbuntu
CurrentDesktop: Unity
Date: Wed Dec 16 21:33:31 2015
Installed_mythtv_dbg: 2:0.27.1+fixes.20140624.aa822f5-0ubuntu6
SourcePackage: mythtv
UpgradeStatus: Upgraded to wily on 2015-10-25 (52 days ago)

** Affects: mythbuntu
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug third-party-packages wily

** Attachment added: "mythburn.log file as referenced above"
   https://bugs.launchpad.net/bugs/1526963/+attachment/4535908/+files/mythburn.log

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
https://bugs.launchpad.net/bugs/1526963

Title:
  mythburn.py crashes: AttributeError: 'weakref' object has no attribute
  'commit'

Status in Mythbuntu:
  New

Bug description:
  While archiving a mpg video to DVD, I go through all the steps to
  define what I want to write to DVD, press the 'next' button, and after
  a delay, the log view is displayed, but no text, and nothing is
  happening.   When I look in mythburn.log, I find the following error
  message:

  Traceback (most recent call last):
    File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 197, in <module>
      DB = MythTV.MythDB()
    File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 1271, in __init__
      elif self._testconfig(tmpconfig):
    File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 1301, in _testconfig
      self._schema_name)
    File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 1324, in _check_schema
      sver = int(cursor.fetchone()[0])
    File "/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 107, in __exit__
      self.commit()
    File "/usr/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 98, in commit
      def commit(self): self.connection.commit()
  AttributeError: 'weakref' object has no attribute 'commit'

  That's the whole content of the file.  I have had this working before,
  but it was several months ago, probably with a different release of
  mythtv.

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: mytharchive 2:0.27.1+fixes.20140624.aa822f5-0ubuntu6 [origin: unknown]
  ProcVersionSignature: Ubuntu 4.2.0-21.25-generic 4.2.6
  Uname: Linux 4.2.0-21-generic x86_64
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  CrashDB: mythbuntu
  CurrentDesktop: Unity
  Date: Wed Dec 16 21:33:31 2015
  Installed_mythtv_dbg: 2:0.27.1+fixes.20140624.aa822f5-0ubuntu6
  SourcePackage: mythtv
  UpgradeStatus: Upgraded to wily on 2015-10-25 (52 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mythbuntu/+bug/1526963/+subscriptions