[ python-Bugs-889200 ] bundlebuilder standalone app doesn't fully
quit
SourceForge.net
noreply at sourceforge.net
Wed Feb 25 17:33:15 EST 2004
Bugs item #889200, was opened at 2004-02-02 10:08
Message generated for change (Comment added) made by reowen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=889200&group_id=5470
Category: Macintosh
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Russell Owen (reowen)
Assigned to: Jack Jansen (jackjansen)
Summary: bundlebuilder standalone app doesn't fully quit
Initial Comment:
I used bundlebuilder to create a fully standalone app (well, it fails on Jaguar, alas, but the python framework is inside the app). It works fine, but when I quit the app and try to delete it I get the following message from Finder and the item "python" in the .app is not deleted:
The operation cannot be completed because the item "Python" is in use.
The only way I've found to delete the app is to REBOOT. Simply logging out and in again does not do the job (which I find quite startling).
I worked around the problem by making the app semi_standalone, but would rather have it fully self-contained
It's a huge app; I've not tried to break it down, but some things to consider:
- it uses networking (though I need not make a connection to cause this problem)
- it uses Tkinter (and yes the Tcl and Tk frameworks were installed in the app along with the Python framework)
- it uses a few threads for networking (again, though, the problem occurs even if no connection is ever made, suggesting that no threads have to be started to cause the problem)
-- Russell
I have attached the two code files I use to build the application (combined in one zip archive).
----------------------------------------------------------------------
>Comment By: Russell Owen (reowen)
Date: 2004-02-25 14:33
Message:
Logged In: YES
user_id=431773
First of all, after trying to empty the trash (and saying "Continue" when it complains that Python is in use), all that is left of the application bundle is:
Contents/Frameworks/Python.framework/Versions/2.3/Python
I opened the system.log and console.log and watched while I started and stopped the application and then deleted as much of it as I could. Absolutely nothing showed up in system.log. The console showed: "running sitecustomize.py" as usual on startup and then 0 (the digit zero) on quit. No messages during the partial emptying of trash.
Next I tried rm -R. It did empty the trash. I hope it doesn't cause any problems (nothing so far, but I just did it a minute ago).
Any other ideas? (Trying rm on a specific file seems sort of pointless because I think I already know which single file is tied up.)
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2004-02-25 12:26
Message:
Logged In: YES
user_id=45365
Hmm. Let's first try and find out what else can be meant by "in use". It is
probably either a filesystem-related thing or a process/framework-
related thing.
First: could you check both the console log file and the system log file
(both with Utilities->Console) for any clues? Probably best to open both,
then run the app, then try to delete it, and see whether anything shows
up.
Next thing to try is good old unix "rm -r" on the app. Does that work or
not?
If rm -r works then I think I would proceed by "rm -r"ing specific parts of
the app, and see whether there's any part that, when removed, will
make empty trash continue.
----------------------------------------------------------------------
Comment By: Russell Owen (reowen)
Date: 2004-02-25 11:53
Message:
Logged In: YES
user_id=431773
I build the applications on Panther (10.3.2 with all but the 2004-02-23 security patch installed).
I checked ps -x before running the app and then again after I did all this: ran, quit and trashed the app and (unsuccessfully, as per the bug report) to empty the trash. Unfortunately there was NO change (aside from CPU time) in the ps -x listing from before to after -- same PIDs and names (and of course the same # of processes). I saved the output in case anyone wants a copy. I only checked by eye so I might have missed something very subtle, but I doubt it.
Any other tests you can think of? I'm really puzzled.
----------------------------------------------------------------------
Comment By: Bob Ippolito (etrepum)
Date: 2004-02-12 20:55
Message:
Logged In: YES
user_id=139309
Was the standalone bundle created on Jaguar or Panther?
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2004-02-06 15:17
Message:
Logged In: YES
user_id=45365
Russell,
could you try using "ps" (probably "ps -x", both before running the .app
and after running it) to check that the application has indeed fully exited?
The fact that you mention there are multiple threads somehow suggests
that there is something still using that Python...
----------------------------------------------------------------------
Comment By: Russell Owen (reowen)
Date: 2004-02-02 10:10
Message:
Logged In: YES
user_id=431773
Note: the included BuildMacTUI.py uses semi_standalone = True, but the problem only occurs if I use standalone = True instead. Sorry for the potential confusion.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=889200&group_id=5470
More information about the Python-bugs-list
mailing list