[Tkinter-discuss] crash on tkFileDialog:asksaveasfilename()

Lynn Oliver raycores at gmail.com
Mon Oct 1 01:25:13 CEST 2012


On Sep 30, 2012, at 2:32 PM, wrw at mac.com wrote:

> On Sep 30, 2012, at 3:46 PM, Lynn Oliver <raycores at gmail.com> wrote:
> 
>> It's packaged using pyinstaller, so it unpacks into a temp folder and runs from there.
>> 
>> Sent from my iPad
>> 
>> On Sep 30, 2012, at 12:22 PM, wrw at mac.com wrote:
>> 
>>> On Sep 30, 2012, at 2:07 PM, Lynn Oliver <raycores at gmail.com> wrote:
>>> 
>>>> I'm puzzled by reports from a single person using my program, who states that he consistently crashes in the common file dialog invoked by asksaveasfilename() if, and only if, he attempts to change folders.  He says this is happening on two different machines, an iMac (see below) and a 2011 MacBookPro, both running 10.8.2 (current version of Mountain Lion).
>>>> 
>>>> The program is using Python 2.7.2, Tcl/Tk 8.5.  I have never seen this error or been able to reproduce it on my machine, a 2011 iMac also running 10.8.2. 
>>>> 
>>>> My understanding is that Tkinter is handing control over to a system dialog, so the crash occurs before control returns to Tkinter.  Is there anything I could be doing in my program that would affect this?  I couldn't find any problem reports similar to this for Tkinter.
>>>> 
>>>> The crash report he sent is below.
>>>> 
>>>> Thanks...
>>>> Lynn
>>>> 
>>> 
>>> Lynn, I'm no help reading the dump, but I have a question, which is possibly relevant.
>>> 
>>> How was your program distributed?  That is, is it an OS-X 'bundle' produced by py2app, or is your user executing python source directly?
>>> 
>>> -Bill
>>> 
> 
> So, have you included _all_ the necessary libraries in the compressed package, and are the imports precise enough that it isn't maybe picking up one of the Apple system python libraries?
> 
> -Bill

That is certainly the idea, and I test it on a machine that has nothing installed other than the OS.  It's not unlikely that the user in question has some dev tools on his machine, but he gets the same result on his wife's MBP, which is unlikely to have the same libraries installed.  I'll check into it, though.

-Lynn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20120930/6549c298/attachment-0001.html>


More information about the Tkinter-discuss mailing list