[ python-Bugs-1123727 ] gensuitemodule.processfile fails

SourceForge.net noreply at sourceforge.net
Fri Feb 25 12:22:07 CET 2005


Bugs item #1123727, was opened at 2005-02-16 07:17
Message generated for change (Comment added) made by jneb
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1123727&group_id=5470

Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Jurjen N.E. Bos (jneb)
Assigned to: Jack Jansen (jackjansen)
Summary: gensuitemodule.processfile fails

Initial Comment:
gensuitemodule.processfile fails for an application as trivial as 
Safari, while the same procedure works OK on version 2.3.

On version 2.3:
>>> from gensuitemodule import processfile; processfile('/
Applications/Safari.app')
[lots of dialogs]

On version 2.4, same machine:
>>> from gensuitemodule import processfile; processfile('/
Applications/Safari.app')
Traceback (most recent call last):
  File "<input>", line 1, in ?
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/plat-mac/gensuitemodule.py", line 222, in processfile
    verbose=verbose)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/plat-mac/gensuitemodule.py", line 436, in compileaete
    creatorsignature, dummy = MacOS.GetCreatorAndType(fname)
Error: (-43, 'File not found')
I'm pretty conviced the application did not move in the 20 seconds 
between those two invocations :-)

Any suggestions?

- Jurjen

----------------------------------------------------------------------

>Comment By: Jurjen N.E. Bos (jneb)
Date: 2005-02-25 11:22

Message:
Logged In: YES 
user_id=446428

Yep, you're right. On both 2.3, and 2.4, I get:
>>> import MacOS
>>> print MacOS.GetCreatorAndType('/Applications/TextEdit.app')
Traceback (most recent call last):
  File "<input>", line 1, in ?
Error: (-43, 'File not found')
When will appscript be incorporated into the standard libraries?
- Jurjen

----------------------------------------------------------------------

Comment By: has (hhas)
Date: 2005-02-24 00:53

Message:
Logged In: YES 
user_id=996627

I think the MacOS extension is broken. The gensuitemodule error you 
observe on Python 2.4 is probably being masked on Python 2.3 by other 
bugs that have since been cleaned up.

e.g. The following errors OMM (OS10.2.8, Python 2.3.3):

print MacOS.GetCreatorAndType('/Applications/TextEdit.app')
--> MacOS.Error: (-43, 'File not found')

Seems to work on non bundle-based applications, but not bundle-based 
ones. Maybe you could check this and file a new report on the MacOS 
extension if you can confirm it.

has

p.s. Note that gensuitemodule and friends are obsolete. See appscript: 
http://freespace.virgin.net/hamish.sanderson/appscript.html

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1123727&group_id=5470


More information about the Python-bugs-list mailing list