This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author berker.peksag
Recipients berker.peksag, gentoo90, loewis, steve.dower, tim.golden, xoviat, zach.ware
Date 2017-11-07.13:01:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510059717.62.0.213398074469.issue20486@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you, all. The OP's snippet should work now:

>>> import msilib as m
>>> db = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)
>>> db.Commit()
>>> db2 = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_msi.MSIError: 1: 2203 2: py33.msi 3: -2147287008
>>> db.Close()
>>> db2 = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)

I didn't backport this to bugfix branches since we added a new public function to the API.
History
Date User Action Args
2017-11-07 13:01:57berker.peksagsetrecipients: + berker.peksag, loewis, tim.golden, zach.ware, steve.dower, gentoo90, xoviat
2017-11-07 13:01:57berker.peksagsetmessageid: <1510059717.62.0.213398074469.issue20486@psf.upfronthosting.co.za>
2017-11-07 13:01:57berker.peksaglinkissue20486 messages
2017-11-07 13:01:57berker.peksagcreate