[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2021-10-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Special method lookup fails on uninitialized types ___ Python tracker

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2016-10-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2016-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a generic issue as there are multiple unready types that can raise (or in this case crash) with code that should work. #26906 gives other examples and discussion of possible generic solutions that would make this issue obsolete. -- nosy:

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2014-07-15 Thread Mark Lawrence
Mark Lawrence added the comment: The attached patch is short and sweet and looks okay to my untrained eye. I believe it should apply cleanly as there've been very few changes to _msi.c. Can we have a formal patch review please. -- nosy: +BreamoreBoy, steve.dower, tim.golden,

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2014-07-15 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11702 ___ ___ Python-bugs-list

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-05-20 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: I wasn't so happy trawling through \windows\installer either :) Creating an MSI to test is very simple, and actually quicker than I had originally thought. The latest patch (support_dir_for_msi_objs.patch) creates the one and just uses

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-05-17 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: If we can generate a testable MSI file that would be the best. Including a very small pre-generated MSI for the purposes of the test would be acceptable. As-is, the tests don't pass because my machine has C:\Windows\installer\1032f.msi that

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: That fixed it - but it seems we need that for the other Types defined in the module. Regarding testing - would it be a good idea to add an MSI to the test suite - or better to create one during testing (using msilib) and then use that

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-28 Thread Mark Mc Mahon
New submission from Mark Mc Mahon mtnbikingm...@gmail.com: Running the following code: import msilib db = msilib.OpenDatabase('c:/windows/installer/1c7a1.msi', 1) db _msi.Database object at 0x01E230A0 dir(db) (Python crashes - tested on current Trunk and Python 2.7.1). I tried tracking

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-28 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11702 ___ ___ Python-bugs-list mailing

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A call to PyType_Ready() fixes the issue, see attached patch. I added a test that opens a random file in c:\windows\installer, I don't know if this is correct for all Windows version. -- keywords: +patch nosy: