From Chris.Barker at noaa.gov Mon Aug 1 19:02:05 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Mon, 01 Aug 2005 10:02:05 -0700 Subject: [Pythonmac-SIG] memory allocation issue In-Reply-To: <71D9441A-F9F5-4734-872D-B8ABC64B0EDA@redivi.com> References: <723eb69305073007274b6a4cdc@mail.gmail.com> <71D9441A-F9F5-4734-872D-B8ABC64B0EDA@redivi.com> Message-ID: <42EE558D.5010003@noaa.gov> Bob Ippolito wrote: > I imagine that the issue here is related to the following: > http://bob.pythonmac.org/archives/2005/01/01/realloc-doesnt/ > I suggest taking a look for code that creates big objects, resizes > them to be smaller, and keeps them around for a bit. Good idea, but I doubt that Numeric ever uses realloc(). A search through the code and/or a post to the NumPy list will tell you. Chris Fonnesbeck wrote: > It essentially > generates long sample arrays of parameter values, > Should I be using numarray instead -- it sounds like > I would take a performance hit if I did. From your brief description, you wouldn't take a performance hit. numarray is slower when creating new arrays, but if you're working with big arrays, then the creation time is small anyway, compared to doing things with them. Numarray can be faster than Numeric for some operations with large arrays. I don't' think it's likely that numarray will solve your problem, but if it does, it will give you hint as to what the problem is. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From Benjamin.Schollnick at xerox.com Wed Aug 3 21:21:53 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Wed, 3 Aug 2005 15:21:53 -0400 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python? Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFA5@usa0300ms04.na.xerox.net> Folks, Anyone have any idea on how to get the Machine Name from the Sharing Preference pane? The only real solution that I have thought up is to find the plist and read it from there.... I could use Socket to get the TCPIP name, but in this case, that is a DHCP name, and wouldn't help me figure out who's system it is... Any one know which plist contains the share name? And possibly a better way to find the computers name? - Benjamin From Henning.Ramm at mediapro-gmbh.de Wed Aug 3 21:28:34 2005 From: Henning.Ramm at mediapro-gmbh.de (Henning.Ramm@mediapro-gmbh.de) Date: Wed, 3 Aug 2005 21:28:34 +0200 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python? Message-ID: >Anyone have any idea on how to get the Machine Name from the Sharing >Preference pane? Is `hostname` what you look for? Best regards, Henning Hraban Ramm S?dkurier Medienhaus / MediaPro Support/Admin/Development Dept. From njriley at uiuc.edu Wed Aug 3 21:41:25 2005 From: njriley at uiuc.edu (Nicholas Riley) Date: Wed, 3 Aug 2005 14:41:25 -0500 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python? In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFA5@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFA5@usa0300ms04.na.xerox.net> Message-ID: <20050803194125.GB57416@uiuc.edu> On Wed, Aug 03, 2005 at 03:21:53PM -0400, Schollnick, Benjamin wrote: > Folks, > > Anyone have any idea on how to get the Machine Name from the Sharing > Preference pane? > The only real solution that I have thought up is to find the plist and > read it from there.... -- Nicholas Riley | From sriram at malhar.net Thu Aug 4 01:07:29 2005 From: sriram at malhar.net (Sriram Srinivasan) Date: Thu, 4 Aug 2005 04:37:29 +0530 Subject: [Pythonmac-SIG] Subprocess module hangs with select Message-ID: <92137BEF-76CC-43A8-AC98-02C21AEB1974@malhar.net> I wonder if anyone has seen this behavior or can explain it to me. I Popen a process and monitor its stdout using select, as follows. process = Popen(args,stdin=PIPE, stdout=PIPE, stderr=PIPE) while True: if not (process.returncode == None): print process.returncode break ready,_, _ = select.select([process.stdout, process.stderr], [], [], 5) if ready: for fd in ready: print fd.readline() Now this works fine, in that it dumps out everything that the program can print, but when the exec'd program finishes executing, the select () call just hangs. The timeout on the select has no effect. Ideas? Thank you very much. --Sriram From bob at redivi.com Thu Aug 4 03:11:52 2005 From: bob at redivi.com (Bob Ippolito) Date: Wed, 3 Aug 2005 15:11:52 -1000 Subject: [Pythonmac-SIG] Subprocess module hangs with select In-Reply-To: <92137BEF-76CC-43A8-AC98-02C21AEB1974@malhar.net> References: <92137BEF-76CC-43A8-AC98-02C21AEB1974@malhar.net> Message-ID: <70E0BD98-1268-4FCD-9F79-F469DBA47EA5@redivi.com> On Aug 3, 2005, at 1:07 PM, Sriram Srinivasan wrote: > I wonder if anyone has seen this behavior or can explain it to me. > > I Popen a process and monitor its stdout using select, as follows. > > process = Popen(args,stdin=PIPE, stdout=PIPE, stderr=PIPE) > while True: > if not (process.returncode == None): > print process.returncode > break > ready,_, _ = select.select([process.stdout, process.stderr], > [], [], 5) > if ready: > for fd in ready: > print fd.readline() > > Now this works fine, in that it dumps out everything that the program > can print, but when the exec'd program finishes executing, the select > () call just hangs. The timeout on the select has no effect. I'm relatively sure that subprocess module is not suitable for non- blocking IO like that... Check the docs or shoot a message over to python-list, I'm sure someone there knows. -bob From sriram at malhar.net Thu Aug 4 05:19:35 2005 From: sriram at malhar.net (Sriram Srinivasan) Date: Thu, 4 Aug 2005 08:49:35 +0530 Subject: [Pythonmac-SIG] Subprocess module hangs with select In-Reply-To: <70E0BD98-1268-4FCD-9F79-F469DBA47EA5@redivi.com> References: <92137BEF-76CC-43A8-AC98-02C21AEB1974@malhar.net> <70E0BD98-1268-4FCD-9F79-F469DBA47EA5@redivi.com> Message-ID: <28C92B68-ED44-4850-9679-705F3332EA14@malhar.net> Thanks Bob, for the prompt response. I guessed as much. In any case, select over a pipe isn't portable to Windows, so I converted it to a threaded + blocking I/O. Simpler code and works well enough for my case (I won't end up spawning too many threads) --Sriram On Aug 4, 2005, at 6:41 AM, Bob Ippolito wrote: > > On Aug 3, 2005, at 1:07 PM, Sriram Srinivasan wrote: > > >> I wonder if anyone has seen this behavior or can explain it to me. >> >> I Popen a process and monitor its stdout using select, as follows. >> >> process = Popen(args,stdin=PIPE, stdout=PIPE, stderr=PIPE) >> while True: >> if not (process.returncode == None): >> print process.returncode >> break >> ready,_, _ = select.select([process.stdout, process.stderr], >> [], [], 5) >> if ready: >> for fd in ready: >> print fd.readline() >> >> Now this works fine, in that it dumps out everything that the program >> can print, but when the exec'd program finishes executing, the select >> () call just hangs. The timeout on the select has no effect. >> > > I'm relatively sure that subprocess module is not suitable for non- > blocking IO like that... Check the docs or shoot a message over to > python-list, I'm sure someone there knows. > > -bob > > > > From dfh at forestfield.co.uk Thu Aug 4 09:14:00 2005 From: dfh at forestfield.co.uk (David Hughes) Date: Thu, 4 Aug 2005 08:14 +0100 (BST) Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python? In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFA5@usa0300ms04.na.xerox.net> Message-ID: > *From:* "Schollnick, Benjamin" > *To:* > *Date:* Wed, 3 Aug 2005 15:21:53 -0400 > > Anyone have any idea on how to get the Machine Name from the Sharing > Preference pane? import os def get_system_info(): """ Use system_profiler command to return a dict of information about system """ info_dict = {'systemversion': None, 'kernelversion': None, 'bootvolume': None, 'computername': None, 'username': None } command = 'system_profiler SPSoftwareDataType' fo = os.popen(command, 'r') for line in fo.readlines(): ilist = line[:-1].split(':') if len(ilist) >= 2: for key in info_dict: if key == ilist[0].replace(' ','').lower(): info_dict[key] = ilist[1] return info_dict print repr(get_system_info()) Regards, David Hughes Forestfield Software www.foresoft.co.uk From Benjamin.Schollnick at xerox.com Thu Aug 4 11:43:59 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Thu, 4 Aug 2005 05:43:59 -0400 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python? Message-ID: <266589E1B9392B4C9195CC25A07C73B9124CFE@usa0300ms04.na.xerox.net> > Anyone have any idea on how to get the Machine Name from the Sharing > Preference pane? > The only real solution that I have thought up is to find the plist and > read it from there.... The major problem with this is that I'm trying for a python based solution.... So I guess I could use PyObj to bridge to Objective C... But I've never touched that... (Sorry Bob! >grin<) Any ideas on a Python based solution? - Benjamin From Benjamin.Schollnick at xerox.com Thu Aug 4 11:53:46 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Thu, 4 Aug 2005 05:53:46 -0400 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh viaPython? Message-ID: <266589E1B9392B4C9195CC25A07C73B9124CFF@usa0300ms04.na.xerox.net> I'll double check... to see how that shows up on Sol_Bianca... 1) But I believe that hostname will return the TCPIP name, which in this case would be DHCP207-xxxx-yyyyy-zzzz...etc... 2) The system profiler does have networking configuration data, but I did not see the computer name in there... I'll double check.... Under Panther it certainly does, but it maybe based off the TCPIP name... - Benjamin From bob at redivi.com Thu Aug 4 12:10:34 2005 From: bob at redivi.com (Bob Ippolito) Date: Thu, 4 Aug 2005 00:10:34 -1000 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python? In-Reply-To: <266589E1B9392B4C9195CC25A07C73B9124CFE@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B9124CFE@usa0300ms04.na.xerox.net> Message-ID: <7A314151-F11A-47DF-B877-EFEDD6C774EC@redivi.com> On Aug 3, 2005, at 11:43 PM, Schollnick, Benjamin wrote: >> Anyone have any idea on how to get the Machine Name from the Sharing >> Preference pane? >> The only real solution that I have thought up is to find the plist >> and >> read it from there.... >> > > > > The major problem with this is that I'm trying for a python > based solution.... > > So I guess I could use PyObj to bridge to Objective C... But > I've never touched that... (Sorry Bob! >grin<) > > Any ideas on a Python based solution? Unless you're using ctypes or PyObjC to FFI those functions, there is no Python based solution that I'm aware of. Alternatively, you could of course write an extension in C or Pyrex. In general, if it wasn't part of MacOS 9 or isn't standard POSIX, you're not going to find it in the stdlib... except for a few CoreFoundation functions, which you shouldn't use anyway because some of them are/were broken. -bob From Benjamin.Schollnick at xerox.com Thu Aug 4 15:10:43 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Thu, 4 Aug 2005 09:10:43 -0400 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh viaPython? Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFA6@usa0300ms04.na.xerox.net> > Is `hostname` what you look for? I just confirmed.... The Command Line "hostname" application does indeed return the TCP/IP hostname... In this case the DHCP assigned hostname... But system_profiler does indeed for Local_host_name return the Sharing pref. Plane machine name.... Since I'm reading that information anyway, that works nicely... (But I would swear that I had checked that earlier...) - Benjamin From Benjamin.Schollnick at xerox.com Thu Aug 4 16:20:54 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Thu, 4 Aug 2005 10:20:54 -0400 Subject: [Pythonmac-SIG] Augh? Is this possible? Python can not read ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFA7@usa0300ms04.na.xerox.net> Folks, This is strange... But I suspect it is a permissions issue.... 1) I can not seemingly read my screensaver preference file. ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist os.path.exists ( r"~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist" ) returns False... The file exists... I can CAT or GREP it.. But I can not seemingly read it from inside of python..... Can anyone duplicate this? I suspect that this maybe that it is -rw------? (Read/writable by Administrators Only).... But if I SUDO the python application (ie. sudo python console4.py) it still fails.... Any ideas? or work arounds? System_profiler does not have this data... I checked the XML file... It only lists the screensaver module name... (I need the IdleTime, and if it is password protected...) - Ben From steve at spvi.com Thu Aug 4 16:30:20 2005 From: steve at spvi.com (Steve Spicklemire) Date: Thu, 4 Aug 2005 09:30:20 -0500 Subject: [Pythonmac-SIG] Augh? Is this possible? Python can not read ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFA7@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFA7@usa0300ms04.na.xerox.net> Message-ID: <363E485B-8555-4177-BEF4-511B3D6A4F4E@spvi.com> I don't think you can use the '~' shortcut in python: >>> os.path.exists('~/.bashrc') False >>> os.path.exists('/Users/steve/.bashrc') True -steve On Aug 4, 2005, at 9:20 AM, Schollnick, Benjamin wrote: > Folks, > > This is strange... But I suspect it is a permissions issue.... > > 1) I can not seemingly read my screensaver preference file. > ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist > > os.path.exists ( > r"~/Library/Preferences/ByHost/com.apple.screensaver. > 003065980c94.plist" > ) > > returns False... > > The file exists... I can CAT or GREP it.. But I can not > seemingly read > it from inside of python..... > > Can anyone duplicate this? > > I suspect that this maybe that it is -rw------? (Read/writable > by Administrators > Only).... > > But if I SUDO the python application (ie. sudo python > console4.py) it still > fails.... > > Any ideas? or work arounds? > > System_profiler does not have this data... I checked the XML > file... It only > lists the screensaver module name... (I need the IdleTime, and > if it is password > protected...) > > - Ben > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > From bob at redivi.com Thu Aug 4 16:35:22 2005 From: bob at redivi.com (Bob Ippolito) Date: Thu, 4 Aug 2005 04:35:22 -1000 Subject: [Pythonmac-SIG] Augh? Is this possible? Python can not read ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFA7@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFA7@usa0300ms04.na.xerox.net> Message-ID: <457C1455-3D27-4069-B373-B6075252B7DB@redivi.com> On Aug 4, 2005, at 4:20 AM, Schollnick, Benjamin wrote: > Folks, > > This is strange... But I suspect it is a permissions issue.... > > 1) I can not seemingly read my screensaver preference file. > ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist > > os.path.exists ( > r"~/Library/Preferences/ByHost/com.apple.screensaver. > 003065980c94.plist" > ) > > returns False... os.path.exists(os.path.expanduser('~/....')) -bob From Benjamin.Schollnick at xerox.com Thu Aug 4 16:44:16 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Thu, 4 Aug 2005 10:44:16 -0400 Subject: [Pythonmac-SIG] Augh? Is this possible? Python can not read ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFA9@usa0300ms04.na.xerox.net> > os.path.exists(os.path.expanduser('~/....')) Thanks Bob.... I should of remembered that... (Doh!)... I've read it a few times in the library reference... But my excuse of the day is that I normally program with Python on a Windows box... ~ doesn't exist there.... Oh well... I knew it had to of been my fault... Thanks for the fast reply! - Ben From bob at redivi.com Thu Aug 4 16:50:59 2005 From: bob at redivi.com (Bob Ippolito) Date: Thu, 4 Aug 2005 04:50:59 -1000 Subject: [Pythonmac-SIG] Augh? Is this possible? Python can not read ~/Library/Preferences/ByHost/com.apple.screensaver.003065980c94.plist In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFA9@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFA9@usa0300ms04.na.xerox.net> Message-ID: <65D18378-6FA7-4F4F-AB31-FB18958AB8BA@redivi.com> On Aug 4, 2005, at 4:44 AM, Schollnick, Benjamin wrote: > > >> os.path.exists(os.path.expanduser('~/....')) >> > > Thanks Bob.... > > I should of remembered that... (Doh!)... I've read it a few times in > the library reference... But my excuse of the day is that I normally > program with Python on a Windows box... ~ doesn't exist there.... IIRC, it actually does exist on Windows as far as os.path.expanduser is concerned... at least on Windows NT-based machines (Windows 2000, XP, NT4, etc.) :) -bob From Benjamin.Schollnick at xerox.com Fri Aug 5 15:29:18 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Fri, 5 Aug 2005 09:29:18 -0400 Subject: [Pythonmac-SIG] Py2app Question... Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFAF@usa0300ms04.na.xerox.net> Folks, I just started using py2app.... So this is probably due to operator error... But I'm quite surprised that the actual application's .py file is stored in the py2app bundle. I expected the PYC file to be used. While it's not a "huge" concern, I don't like the idea of anyone with a text editor being able to see my source code for the main unit.... Is there someway to force it to use a PYC instead? from distutils.core import setup import py2app py2app_options = { 'argv_emulation':True, 'optimize':2, 'compressed':1} data_files = [ ("", ["AUDIT.INI", "AUDIT_GUI.RSRC.PY", "sample_audit.ini", "clean_desk.rpt", "software.rpt"]) ] #setup ( app=['console4.py'], # options={"py2app": dict(py2app_options)}, # data_files= data_files ) setup ( app=['audit_gui.py'], options={"py2app": dict(py2app_options)}, data_files= data_files ) From bob at redivi.com Fri Aug 5 15:41:41 2005 From: bob at redivi.com (Bob Ippolito) Date: Fri, 5 Aug 2005 03:41:41 -1000 Subject: [Pythonmac-SIG] Py2app Question... In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFAF@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFAF@usa0300ms04.na.xerox.net> Message-ID: On Aug 5, 2005, at 3:29 AM, Schollnick, Benjamin wrote: > Folks, > > I just started using py2app.... So this is probably due to operator > error... > But I'm quite surprised that the actual application's .py file is > stored > in the > py2app bundle. I expected the PYC file to be used. > > While it's not a "huge" concern, I don't like the idea of anyone > with a > text > editor being able to see my source code for the main unit.... > > Is there someway to force it to use a PYC instead? Use a script that imports your module, instead of using your module directly. -bob From brad.allen at omsdal.com Sat Aug 6 02:00:04 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Fri, 5 Aug 2005 19:00:04 -0500 Subject: [Pythonmac-SIG] Getting Sharing name of the Macintosh viaPython? In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFA6@usa0300ms04.na.xerox.net> Message-ID: I've long been successfully using this hack I found at macosxhints.com: /usr/bin/awk '/ComputerName/ {{{getline} print substr($0,12,length($0)-20)} exit}' /Library/Preferences/SystemConfiguration/preferences.plist The output of this command can of course be parsed by Python. A better way would be to use plistlib to parse the preferences.plist file, but I just never got around to it since the awk thing has been working reliably. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050805/928448a3/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050805/928448a3/attachment-0001.jpeg From brad.allen at omsdal.com Sat Aug 6 03:21:46 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Fri, 5 Aug 2005 20:21:46 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python Message-ID: I'm looking for someone who can provide some limited consultation for a Python project we're doing in in the IT dept at my place of employment (OMS). In particular, we have a Python client/server app which needs to do Active Directory authentication from both Mac OS X and Windows XP clients. The client Python app will take username and password input from the user, and then contact the Active Directory to obtain credentials. The client app will then pass the credentials to the server app, which will inspect the credentials and provide appropriate authorizations. The server app runs under Windows XP. We'd like to get this accomplished fairly soon, and expect lots of folks have already done this sort of thing with Python in the Windows realm. However, I'm worried that we're going to get stuck doing this on the Mac. If anyone can help us with this part of the project, it would be much appreciated. If you know how to do it on Windows as well, even better. If are willing and able to provide consultation services for this, please respond to me off list. Of course, any comments about this posted freely to this list would be appreciated as well. Thanks! Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050805/0abdc023/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050805/0abdc023/attachment.jpeg From bob at redivi.com Sat Aug 6 04:05:23 2005 From: bob at redivi.com (Bob Ippolito) Date: Fri, 5 Aug 2005 16:05:23 -1000 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: References: Message-ID: <22758E3B-FCE7-4314-9154-3C6BA22EFD70@redivi.com> On Aug 5, 2005, at 3:21 PM, brad.allen at omsdal.com wrote: > I'm looking for someone who can provide some limited consultation for > a Python project we're doing in in the IT dept at my place > of employment (OMS). In particular, we have a Python client/server app > which needs to do Active Directory authentication from both Mac OS X > and Windows XP clients. > > The client Python app will take username and password input from the > user, and then contact the Active Directory to obtain credentials. The > client app will then pass the credentials to the server app, which > will inspect the credentials and provide appropriate authorizations. > The server app runs under Windows XP. > > We'd like to get this accomplished fairly soon, and expect lots of > folks have already done this sort of thing with Python in the Windows > realm. However, I'm worried that we're going to get stuck doing this > on the Mac. If anyone can help us with this part of the project, it > would be much appreciated. If you know how to do it on Windows as > well, > even better. The generic way to do the authentication is just to use LDAP, since Active Directory is just a jazzed up LDAP database server with a non- standard Kerberos implementation. You can crib some code from LDAPUserFolder for the authentication bits. I'm not sure exactly what "obtaining credentials" involves, but I'm guessing that's just a Kerberos ticket? Mac OS X should have all the APIs to do it, since it has good Kerberos support which supposedly integrates well with Active Directory... you'll probably have to a C extension to get at that, but that should be no big deal. Good luck, I don't have any Windows Server machines around, and am not really interested in dealing with Windows... but hopefully somebody else can help you :) -bob From dangoor at gmail.com Sat Aug 6 04:51:50 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Fri, 5 Aug 2005 22:51:50 -0400 Subject: [Pythonmac-SIG] noob question: handling protocols and files Message-ID: <3f085ecd05080519517d4c1616@mail.gmail.com> I've been looking through the docs on Apple's site a bit today, and I'm not entirely certain where I *should* be looking. All I need is a pointer to the correct terminology for what I'm trying to do (and if PyObjC offers any specific bits that I should be aware of), and I should be good to go from there. I'm trying to figure out how to make my app open something the user has requested to open from another app. My app is registered nicely via LaunchServices with a trivial addition to Info.plist. I'm using CFBundleURLTypes to register a URL scheme. So, once that is registered, how do I actually get the incoming URL? I've gathered that the application delegate gets called when the user wants to open a file. Is a subclass of NibClassBuilder.AutoBaseClass an application delegate? Don't worry about writing a long description... any pointers at all would be helpful, since the Apple docs are pretty good once you know what you're looking for. Part of my problem is that searches on Apple's site return an interesting mix of Carbon and Cocoa APIs, making it less clear what the best way to do it is. (For reference, my target is Python 2.4.1, Mac OS 10.3+, latest PyObjC...) Thanks in advance! Kevin From bob at redivi.com Sat Aug 6 05:01:28 2005 From: bob at redivi.com (Bob Ippolito) Date: Fri, 5 Aug 2005 17:01:28 -1000 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: <3f085ecd05080519517d4c1616@mail.gmail.com> References: <3f085ecd05080519517d4c1616@mail.gmail.com> Message-ID: On Aug 5, 2005, at 4:51 PM, Kevin Dangoor wrote: > I've been looking through the docs on Apple's site a bit today, and > I'm not entirely certain where I *should* be looking. All I need is a > pointer to the correct terminology for what I'm trying to do (and if > PyObjC offers any specific bits that I should be aware of), and I > should be good to go from there. > > I'm trying to figure out how to make my app open something the user > has requested to open from another app. My app is registered nicely > via LaunchServices with a trivial addition to Info.plist. I'm using > CFBundleURLTypes to register a URL scheme. > > So, once that is registered, how do I actually get the incoming URL? You may have to do that with a get URL apple event handler, see here: http://developer.apple.com/documentation/Cocoa/Conceptual/ Scriptability/Concepts/ScriptabilityOverview.html (you shouldn't need any Carbon) Speaking of which, it might be cool if someone submitted a patch to the PyDocURLProtocol example to make it handle the "pydoc" URL scheme from other applications, rather than just its own WebKit view. https://svn.red-bean.com/pyobjc/trunk/pyobjc/Examples/WebKit/ PyDocURLProtocol > I've gathered that the application delegate gets called when the user > wants to open a file. Is a subclass of NibClassBuilder.AutoBaseClass > an application delegate? The application delegate is the object wired up to the delegate of the NSApplication instance.. it has nothing to do with what the superclass is. NibClassBuilder.AutoBaseClass reads the nib file to determine what the superclass is. -bob From brad.allen at omsdal.com Sat Aug 6 06:14:11 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Fri, 5 Aug 2005 23:14:11 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <200508052233.40218.jeff@taupro.com> Message-ID: Jeff Rush wrote on 08/05/2005 10:33:39 PM: > If you have only the new stuff that *requires* COM, I don't know that you can > do COM programming on the Mac (not being a Mac developer). Thanks, Jeff. I don't think COM will be an option. Bob Ippolito suggests it should be do-able via Mac APIs. We will probably need a Mac programmer with experience in this area. However, it's a higher priority to do this on the Windows side, so we'll do that first and in doing so get a better understanding of how it's supposed to work. Also, if push comes to shove we could fall back on handling the AD authentication at the server level, but that is far less secure (this won't go outside our internal network, so it's not totally unthinkable). Here is Bob Ippolito's posting from the MacPython mailing list: > The generic way to do the authentication is just to use LDAP, since > Active Directory is just a jazzed up LDAP database server with a non- > standard Kerberos implementation. You can crib some code from > LDAPUserFolder for the authentication bits. I'm not sure exactly > what "obtaining credentials" involves, but I'm guessing that's just a > Kerberos ticket? Mac OS X should have all the APIs to do it, since > it has good Kerberos support which supposedly integrates well with > Active Directory... you'll probably have to a C extension to get at > that, but that should be no big deal. > > Good luck, I don't have any Windows Server machines around, and am > not really interested in dealing with Windows... but hopefully > somebody else can help you :) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050805/8bc5b361/attachment.htm From brad.allen at omsdal.com Sat Aug 6 06:31:57 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Fri, 5 Aug 2005 23:31:57 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <22758E3B-FCE7-4314-9154-3C6BA22EFD70@redivi.com> Message-ID: Bob Ippolito wrote on 08/05/2005 09:05:23 PM: > The generic way to do the authentication is just to use LDAP, since > Active Directory is just a jazzed up LDAP database server with a non- > standard Kerberos implementation. You can crib some code from > LDAPUserFolder for the authentication bits. I'm not sure exactly > what "obtaining credentials" involves, but I'm guessing that's just a > Kerberos ticket? Mac OS X should have all the APIs to do it, since > it has good Kerberos support which supposedly integrates well with > Active Directory... you'll probably have to a C extension to get at > that, but that should be no big deal. > > Good luck, I don't have any Windows Server machines around, and am > not really interested in dealing with Windows... but hopefully > somebody else can help you :) Thanks, Bob. By saying "obtain credentials" I meant to stay generic in describing goals since I don't know whether the options presented to us would involve Kerberos or NTLM, though we definitely prefer Kerberos. I guess there's no need to restrict this query to Python mailing lists, since I guess we could wrap a C solution. I guess I need to go look at some Mac developer mailing lists. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050805/12cff418/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050805/12cff418/attachment-0001.jpeg From dangoor at gmail.com Sat Aug 6 16:16:45 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Sat, 6 Aug 2005 10:16:45 -0400 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: References: <3f085ecd05080519517d4c1616@mail.gmail.com> Message-ID: <3f085ecd0508060716233a8743@mail.gmail.com> On 8/5/05, Bob Ippolito wrote: > You may have to do that with a get URL apple event handler, see here: > http://developer.apple.com/documentation/Cocoa/Conceptual/ > Scriptability/Concepts/ScriptabilityOverview.html > (you shouldn't need any Carbon) I had actually been to that page, but I wasn't completely sure that was the right place. Having some confirmation is good... I'll head down that path. > Speaking of which, it might be cool if someone submitted a patch to > the PyDocURLProtocol example to make it handle the "pydoc" URL scheme > from other applications, rather than just its own WebKit view. > https://svn.red-bean.com/pyobjc/trunk/pyobjc/Examples/WebKit/ > PyDocURLProtocol Seems like that'll be easy once I figure out how to do this in my app. > > I've gathered that the application delegate gets called when the user > > wants to open a file. Is a subclass of NibClassBuilder.AutoBaseClass > > an application delegate? > > The application delegate is the object wired up to the delegate of > the NSApplication instance.. it has nothing to do with what the > superclass is. NibClassBuilder.AutoBaseClass reads the nib file to > determine what the superclass is. I was confused about how this wiring was done, until I loaded one of the example MainMenu.nib files in IB and noticed the delegate outlet. D'oh. That's too easy. Kevin From dangoor at gmail.com Sat Aug 6 19:46:31 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Sat, 6 Aug 2005 13:46:31 -0400 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: References: <3f085ecd05080519517d4c1616@mail.gmail.com> Message-ID: <3f085ecd0508061046204c0799@mail.gmail.com> On 8/5/05, Bob Ippolito wrote: > You may have to do that with a get URL apple event handler, see here: > http://developer.apple.com/documentation/Cocoa/Conceptual/ > Scriptability/Concepts/ScriptabilityOverview.html > (you shouldn't need any Carbon) Before I go chasing around the Apple docs a bit more to see if I'm registering the *correct* event handler, can you confirm if I'm doing the right thing here? The first questionable thing is that the constant for the type of event is defined in the Apple Events docs (and in the AppleEvents python module) as 'gurl'. However, the Apple Event Manager method call is asking for an unsigned long. Should I convert "gurl" to 1735750252L? Here's the objC example from Apple's doc: [appleEventManager setEventHandler:self andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kAEInternetSuite andEventID:kAEISGetURL]; Here's my translation to Python: sel = objc.selector(MacController.handleGetURLEvent_withReplyEvent_, signature="vO:O:") aem.setEventHandler_andSelector_forEventClass_andEventID_(self, sel, 1735750252L, 1735750252L) This is in my application delegate's applicationWillFinishLaunching_ method, which is where Apple recommended doing this. I can see that this is getting called, but my handler itself doesn't get called. I'm testing by just doing "open " at the commandline, which does bring my app to the front but does not call my handler method. Assuming all of the above is kosher, I'll do some more digging around to make sure that this is, in fact, the specific handler I want. Thanks for your help so far! Kevin From dangoor at gmail.com Sat Aug 6 19:50:51 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Sat, 6 Aug 2005 13:50:51 -0400 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: <3f085ecd0508061046204c0799@mail.gmail.com> References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> Message-ID: <3f085ecd05080610501a21110@mail.gmail.com> Less than 5 minutes ago, I said: > I'm testing by just doing "open " at the > commandline, which does bring my app to the front but does not call my > handler method. Assuming all of the above is kosher, I'll do some more > digging around to make sure that this is, in fact, the specific > handler I want. Something must not be wrong with what I'm doing there... the LaunchServices docs specifically states that opening with a URL sends the app a 'gurl' event, unless the URL scheme is file. Kevin From brad.allen at omsdal.com Sat Aug 6 22:38:41 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Sat, 6 Aug 2005 15:38:41 -0500 Subject: [Pythonmac-SIG] python-ldap install difficulties on Mac OS 10.4.2 Message-ID: (this is posted to both the Python-ldap-dev list and the PythonMac list) I'm running into problems getting Python ldap built and installed on Mac OS 10.4.2. The postings on this subject in the Python-ldap list were from people who found that they had to build and install OpenLDAP from scratch, and were not able to make use of the builtin OpenLDAP as was possible under Tiger. http://sourceforge.net/mailarchive/forum.php?thread_id=7610322&forum_id=4346 http://sourceforge.net/mailarchive/forum.php?thread_id=7610322&forum_id=4346 I spent hours working on this with no success. I got stuck at the final "make" stage, working from instructions that came with the BerkeleyDB and OpenLDAP source directories, along with some help from: http://blogs.nuxeo.com/sections/blogs/florent_guillaume/ This seemed like a lot of ass-ache to get a Python module installed. So I decided to take a look at seeing if I could get away with installing using 10.4.2's built-in Python 2.3.5 and the built-in OpenLDAP. After all, there has been a new release of OpenLDAP since those postings. Well, I got stuck on the basic problem of locating Apple's include and library directories for OpenLDAP and SASL, which are needed for the setup.cfg. Doing a locate on openldap and sasl turned up lots of directories, but none of them really fit the expected pattern in the setup.cfg: library_dirs = /usr/local/openldap-REL_ENG_2_1/lib /usr/local/cyrus-sasl/lib include_dirs = /usr/local/openldap-REL_ENG_2_1/include /usr/local/cyrus-sasl/include Any help on this would be much appreciated. I'm not sure what I could have read to let me know how to locate those directories...I dug around in Apple's developer docs but found nothing that jumped out at me. Thanks! Btw, I found an easy to install binary of Python-ldap for Windows XP, but it contained no SASL support :-(. I'm guessing SASL is needed for Active Directory authentication, though I don't know that for sure. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050806/bc007491/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050806/bc007491/attachment-0001.jpeg From ronaldoussoren at mac.com Sun Aug 7 11:58:42 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Sun, 7 Aug 2005 11:58:42 +0200 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: <3f085ecd0508061046204c0799@mail.gmail.com> References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> Message-ID: On 6-aug-2005, at 19:46, Kevin Dangoor wrote: > On 8/5/05, Bob Ippolito wrote: > >> You may have to do that with a get URL apple event handler, see here: >> http://developer.apple.com/documentation/Cocoa/Conceptual/ >> Scriptability/Concepts/ScriptabilityOverview.html >> (you shouldn't need any Carbon) >> > > Before I go chasing around the Apple docs a bit more to see if I'm > registering the *correct* event handler, can you confirm if I'm doing > the right thing here? > > The first questionable thing is that the constant for the type of > event is defined in the Apple Events docs (and in the AppleEvents > python module) as 'gurl'. However, the Apple Event Manager method call > is asking for an unsigned long. Should I convert "gurl" to > 1735750252L? The 'gurl' value is an long integer value, you should indeed convert it to 1735750252L. The Carbon modules in MacPython know about 4 character codes (such as 'gurl') and accept both integers in 4-byte strings in APIs that use 4 character codes. PyObjC doesn't implement this convienence conversion, basically because it doesn't know which APIs might accept 4 character codes. I'd do the conversion using struct.unpack: gurl_code = struct.unpack ('l', 'gurl')[0] > > Here's the objC example from Apple's doc: > [appleEventManager setEventHandler:self > andSelector:@selector(handleGetURLEvent:withReplyEvent:) > forEventClass:kAEInternetSuite andEventID:kAEISGetURL]; > > Here's my translation to Python: > sel = objc.selector > (MacController.handleGetURLEvent_withReplyEvent_, > signature="vO:O:") > > aem.setEventHandler_andSelector_forEventClass_andEventID_(self, > sel, > 1735750252L, 1735750252L) That's very wrong. You shouldn't call objc.selector unless you're defining a new method (in a class definition on the argument for objc.classAddMethods). The call to objc.selector should be in the class definition of MacController. I don't think this will help, if the method really has an object and selector argument you're program would have crashed when aem tried to call your method. A quick glance at the AppleEventManager docs tells my that the call to objc.selector is not needed, the signature argument is just plain wrong (you signature is for a method that returns void and has two arguments: and object and a SEL (method name)). One other thing: according to LaunchServicesConcepts.pdf (link below) the even code is 'GURL' (upper-case), which is different from 'gurl'. http://developer.apple.com/documentation/Carbon/Conceptual/ LaunchServicesConcepts/LaunchServicesConcepts.pdf > > This is in my application delegate's applicationWillFinishLaunching_ > method, which is where Apple recommended doing this. I can see that > this is getting called, but my handler itself doesn't get called. > > I'm testing by just doing "open " at the > commandline, which does bring my app to the front but does not call my > handler method. Assuming all of the above is kosher, I'll do some more > digging around to make sure that this is, in fact, the specific > handler I want. Could you post your code? I've tried to avoid AppleScript related code upto know and can't even manage to bring my application to the front :-) > > Thanks for your help so far! > Kevin > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From ronaldoussoren at mac.com Sun Aug 7 17:46:23 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Sun, 7 Aug 2005 17:46:23 +0200 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> Message-ID: <6B0C9676-5535-4DEC-B9B0-389B22EC5B6B@mac.com> On 7-aug-2005, at 11:58, Ronald Oussoren wrote: > > Could you post your code? I've tried to avoid AppleScript related > code upto know and can't even manage to bring my application to the > front :-) Never mind, that was a typo in my code. Somehow the system didn't understand what an CFBunldeURLScheme is :-) The trunk of pyobjc now contains a version of the PyDocURLProtocol applet that can will handle pydoc:-urls in other programs. That is, after running the applet once you can do this from the shell: $ open pydoc:///os.open This will open the pydoc for os.open in the applet. I guess a in a HTML file will also work. The important issue that kept me guessing for a while is that the AppleEvent is GURL/GURL, while gurl/gurl is used in Carbon.AppleEvents (and the system headers, this is not really a bug in MacPython). Ronald From dangoor at gmail.com Sun Aug 7 19:43:40 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Sun, 7 Aug 2005 13:43:40 -0400 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: <6B0C9676-5535-4DEC-B9B0-389B22EC5B6B@mac.com> References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> <6B0C9676-5535-4DEC-B9B0-389B22EC5B6B@mac.com> Message-ID: <3f085ecd050807104372e163ef@mail.gmail.com> > $ open pydoc:///os.open > > This will open the pydoc for os.open in the applet. I guess a href="pydoc:///os.open"> in a HTML file will also work. Wow. That should be a great example for me! Thanks! > > The important issue that kept me guessing for a while is that the > AppleEvent is GURL/GURL, while gurl/gurl is used in > Carbon.AppleEvents (and the system headers, this is not really a bug > in MacPython). That's very odd. I did notice that the LaunchServices doc said GURL, but I had been assuming that the Apple Events documentation (which says gurl) was correct. Thanks again. It's always good to have confirmation about exactly where I'm going wrong :) Kevin From dangoor at gmail.com Sun Aug 7 22:01:17 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Sun, 7 Aug 2005 16:01:17 -0400 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> Message-ID: <3f085ecd05080713015dc96c60@mail.gmail.com> On 8/7/05, Ronald Oussoren wrote: > > Here's the objC example from Apple's doc: > > [appleEventManager setEventHandler:self > > andSelector:@selector(handleGetURLEvent:withReplyEvent:) > > forEventClass:kAEInternetSuite andEventID:kAEISGetURL]; > > > > Here's my translation to Python: > > sel = objc.selector > > (MacController.handleGetURLEvent_withReplyEvent_, > > signature="vO:O:") > > > > aem.setEventHandler_andSelector_forEventClass_andEventID_(self, > > sel, > > 1735750252L, 1735750252L) > > > That's very wrong. You shouldn't call objc.selector unless you're > defining a new method (in a class definition on the argument for > objc.classAddMethods). The call to objc.selector should be in the > class definition of MacController. I was confused by @selector(handleGetURLEvent:withReplyEvent:) and the error message I got when I tried my first intuition. My first attempt was to just pass my Python method, but that complained saying that SEL was expected instead of an instance method. I really don't think I would have guessed to pass a string with the selector name. That and the use of GURL instead of gurl was all it took to get my program called at the right time. The PyObjC examples are hugely useful, so this is a great addition to the pydoc example. Kevin From bob at redivi.com Mon Aug 8 00:30:38 2005 From: bob at redivi.com (Bob Ippolito) Date: Sun, 7 Aug 2005 12:30:38 -1000 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: <3f085ecd05080713015dc96c60@mail.gmail.com> References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> <3f085ecd05080713015dc96c60@mail.gmail.com> Message-ID: On Aug 7, 2005, at 10:01 AM, Kevin Dangoor wrote: > On 8/7/05, Ronald Oussoren wrote: > >>> Here's the objC example from Apple's doc: >>> [appleEventManager setEventHandler:self >>> andSelector:@selector(handleGetURLEvent:withReplyEvent:) >>> forEventClass:kAEInternetSuite andEventID:kAEISGetURL]; >>> >>> Here's my translation to Python: >>> sel = objc.selector >>> (MacController.handleGetURLEvent_withReplyEvent_, >>> signature="vO:O:") >>> >>> aem.setEventHandler_andSelector_forEventClass_andEventID_(self, >>> sel, >>> 1735750252L, 1735750252L) >>> >> >> >> That's very wrong. You shouldn't call objc.selector unless you're >> defining a new method (in a class definition on the argument for >> objc.classAddMethods). The call to objc.selector should be in the >> class definition of MacController. >> > > I was confused by @selector(handleGetURLEvent:withReplyEvent:) and the > error message I got when I tried my first intuition. My first attempt > was to just pass my Python method, but that complained saying that SEL > was expected instead of an instance method. That should've worked. > I really don't think I would have guessed to pass a string with the > selector name. That and the use of GURL instead of gurl was all it > took to get my program called at the right time. Selectors themselves are just interned char* -bob From dangoor at gmail.com Mon Aug 8 04:31:41 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Sun, 7 Aug 2005 22:31:41 -0400 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> <3f085ecd05080713015dc96c60@mail.gmail.com> Message-ID: <3f085ecd050807193142c586fe@mail.gmail.com> On 8/7/05, Bob Ippolito wrote: > > I was confused by @selector(handleGetURLEvent:withReplyEvent:) and the > > error message I got when I tried my first intuition. My first attempt > > was to just pass my Python method, but that complained saying that SEL > > was expected instead of an instance method. > > That should've worked. > > > I really don't think I would have guessed to pass a string with the > > selector name. That and the use of GURL instead of gurl was all it > > took to get my program called at the right time. > > Selectors themselves are just interned char* Ahh... That I wouldn't have guessed. That's good to know. That might also explain the error I got about passing an instance method when a SEL was expected. I seem to remember getting that error while doing some exploration at the Python prompt. It's entirely possible that the method I was passing at that time was not properly named for a selector. Kevin From ronaldoussoren at mac.com Mon Aug 8 12:40:46 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Mon, 08 Aug 2005 12:40:46 +0200 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> <3f085ecd05080713015dc96c60@mail.gmail.com> Message-ID: <12227404.1123497646875.JavaMail.ronaldoussoren@mac.com> On Monday, August 08, 2005, at 00:30AM, Bob Ippolito wrote: >> >> I was confused by @selector(handleGetURLEvent:withReplyEvent:) and the >> error message I got when I tried my first intuition. My first attempt >> was to just pass my Python method, but that complained saying that SEL >> was expected instead of an instance method. > >That should've worked. If it didn't work you're class is probably not a subclass from NSObject, I'd advise against doing that. It is possible to access methods in pure-python classes from Objective-C, but that code is not as well tested as accessing methods in subclasses from NSObject. > >> I really don't think I would have guessed to pass a string with the >> selector name. That and the use of GURL instead of gurl was all it >> took to get my program called at the right time. > >Selectors themselves are just interned char* That depends on your point of view :-). The C type 'SEL' and the result of @selector is indeed an interned char*, I'd say a selector is the same as an instance method. > >-bob > > > > From bob at redivi.com Mon Aug 8 12:54:55 2005 From: bob at redivi.com (Bob Ippolito) Date: Mon, 8 Aug 2005 00:54:55 -1000 Subject: [Pythonmac-SIG] noob question: handling protocols and files In-Reply-To: <12227404.1123497646875.JavaMail.ronaldoussoren@mac.com> References: <3f085ecd05080519517d4c1616@mail.gmail.com> <3f085ecd0508061046204c0799@mail.gmail.com> <3f085ecd05080713015dc96c60@mail.gmail.com> <12227404.1123497646875.JavaMail.ronaldoussoren@mac.com> Message-ID: <470E98D3-791F-4B6F-977E-33B767FDAC6F@redivi.com> On Aug 8, 2005, at 12:40 AM, Ronald Oussoren wrote: > > On Monday, August 08, 2005, at 00:30AM, Bob Ippolito > wrote: > >>> I really don't think I would have guessed to pass a string with the >>> selector name. That and the use of GURL instead of gurl was all it >>> took to get my program called at the right time. >>> >> >> Selectors themselves are just interned char* >> > > That depends on your point of view :-). The C type 'SEL' and the > result of @selector is indeed an interned char*, I'd say a selector > is the same as an instance method. A selector is just a name, it's not an instance method until you ask an instance for its implementation of a selector :) -bob From Benjamin.Schollnick at xerox.com Tue Aug 9 17:46:11 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Tue, 9 Aug 2005 11:46:11 -0400 Subject: [Pythonmac-SIG] Py2app Question... Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFC4@usa0300ms04.na.xerox.net> Bob, I just upgraded my development machine to Tiger... And something weird is happening... The application is working fine from the command line, using pythonw.... But if I py2app it.... I am using the Stock v2.3.5 of Python, and have installed TigerFix... ---mac_build.py---- from distutils.core import setup import py2app py2app_options = { 'argv_emulation':True, 'optimize':2, 'compressed':1} data_files = [ ("", ["AUDIT.INI", "AUDIT_GUI.RSRC.PY", "sample_audit.ini", "clean_desk.rpt", "software.rpt"]) ] setup ( app=['audit_gui.py'], options={"py2app": dict(py2app_options)}, data_files= data_files ) ----------------- I get the following console exception... Traceback (most recent call last): File "/Users/benjamin/Desktop/Auditor Source (Mac)/dist/audit_gui.app/Contents/Resources/__boot__.py", line 42, in ? _run('audit_gui.py') File "/Users/benjamin/Desktop/Auditor Source (Mac)/dist/audit_gui.app/Contents/Resources/__boot__.py", line 39, in _run execfile(path, globals(), globals()) File "/Users/benjamin/Desktop/Auditor Source (Mac)/dist/audit_gui.app/Contents/Resources/audit_gui.py", line 81, in ? from PythonCard import model File "PythonCard/model.pyo", line 24, in ? ImportError: No module named wxPython.wx 2005-08-09 11:41:19.910 audit_gui[743] audit_gui Error 2005-08-09 11:41:19.910 audit_gui[743] An unexpected error has occurred during execution of the main script ImportError: No module named wxPython.wx See the Console for a detailed traceback. wxPython appears to be working fine.... And so is pythoncard.... At least from the command line.... So I am not positive where to start looking.... Any suggestions? - Ben > -----Original Message----- > From: Bob Ippolito [mailto:bob at redivi.com] > Sent: Friday, August 05, 2005 9:42 AM > To: Schollnick, Benjamin > Cc: pythonmac-sig at python.org > Subject: Re: [Pythonmac-SIG] Py2app Question... > > > > On Aug 5, 2005, at 3:29 AM, Schollnick, Benjamin wrote: > > > Folks, > > > > I just started using py2app.... So this is probably due to > operator > > error... But I'm quite surprised that the actual application's .py > > file is > > stored > > in the > > py2app bundle. I expected the PYC file to be used. > > > > While it's not a "huge" concern, I don't like the idea of anyone > > with a > > text > > editor being able to see my source code for the main unit.... > > > > Is there someway to force it to use a PYC instead? > > Use a script that imports your module, instead of using your module > directly. > > -bob > > From robert at venetwork.net Tue Aug 9 20:40:46 2005 From: robert at venetwork.net (=?ISO-8859-1?Q?Robert_Valsj=F6?=) Date: Tue, 9 Aug 2005 20:40:46 +0200 Subject: [Pythonmac-SIG] [q] Help with choosing "right" python port Message-ID: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> Hi all! This is my first mail to this mailing list. I'm just starting with Python. I've tried some PHP, Java, C and Pascal before, and of course Prograph from Pictorius ;-) OK I'm a longtime Mac user and I really want to develop Python on this platform (Mac OS X). I've read many mails on the most popular python mailling lists and I can't really decide which IDE and also which python distribution I should choose. E.g I've seen that Jack Jansen official python for Mac webpages dosen't seem to be updated. Is that site "dead"? Bob's pages seems more updated. Is this the new "official" python for Mac (Framework based)? Even Activestate has now a distribution for Macs. I've also some questions about IDE's for Mac (sorry for this, I know this have been discussed before but that is your latest opinions). OK I should tell you that today I'm using Xcode, emacs and vi, but I would like to have a "real" IDE. I've looked at WingIDE, IDLE, Komodo (the new beta), SPE, Eric3. Komodo looks very interesting (someone testing this?). WingIDE website is not updated (dead?). SPE looks interesting, but what I can see is it just one person developing this. Maybe I'm wrong. Anyway, what do you suggest? Is python a good choice for development on Macs. I hope this is the case. The last question. I been following the mailing list python- list at python.org and there been some discussion about python's future. Some is suggesting other languages than python, e.g Ruby, PHP, Haskell. What is your opinion about python's future in general term not just for Macs? Thanx! :-) /rob Robert Valsj? "Of course there are intelligent beings in the Universe, otherwise they would have come here a long time ago" ;-) From bob at redivi.com Tue Aug 9 20:44:57 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 9 Aug 2005 08:44:57 -1000 Subject: [Pythonmac-SIG] Py2app Question... In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFC4@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFC4@usa0300ms04.na.xerox.net> Message-ID: <236E5ECB-5125-49AA-98CA-53B02B1E62A0@redivi.com> On Aug 9, 2005, at 5:46 AM, Schollnick, Benjamin wrote: > Bob, > > I just upgraded my development machine to Tiger... And something > weird is happening... > > The application is working fine from the command line, using > pythonw.... But if I py2app it.... > > I am using the Stock v2.3.5 of Python, and have installed > TigerFix... > > ---mac_build.py---- > from distutils.core import setup > import py2app > > py2app_options = { 'argv_emulation':True, > 'optimize':2, > 'compressed':1} > > data_files = [ ("", ["AUDIT.INI", > "AUDIT_GUI.RSRC.PY", > "sample_audit.ini", > "clean_desk.rpt", > "software.rpt"]) > ] > > setup ( app=['audit_gui.py'], > options={"py2app": dict(py2app_options)}, > data_files= data_files ) > ----------------- > > I get the following console exception... > > Traceback (most recent call last): > File "/Users/benjamin/Desktop/Auditor Source > (Mac)/dist/audit_gui.app/Contents/Resources/__boot__.py", line 42, > in ? > _run('audit_gui.py') > File "/Users/benjamin/Desktop/Auditor Source > (Mac)/dist/audit_gui.app/Contents/Resources/__boot__.py", line 39, in > _run > execfile(path, globals(), globals()) > File "/Users/benjamin/Desktop/Auditor Source > (Mac)/dist/audit_gui.app/Contents/Resources/audit_gui.py", line 81, > in ? > from PythonCard import model > File "PythonCard/model.pyo", line 24, in ? > ImportError: No module named wxPython.wx > 2005-08-09 11:41:19.910 audit_gui[743] audit_gui Error > 2005-08-09 11:41:19.910 audit_gui[743] An unexpected error has > occurred > during execution of the main script > > ImportError: No module named wxPython.wx > > See the Console for a detailed traceback. > > wxPython appears to be working fine.... And so is pythoncard.... At > least from the command line.... So I am not positive where to start > looking.... > > Any suggestions? Add 'site_packages': True to your options and see if that helps. You're trying to use modules from site-packages (wxPython), which py2app does not do by default on Tiger because it only knows how to include modules from site-packages, and in Tiger the default wxPython is in a System directory so there is another stronger rule that excludes them. Or, upgrade to 2.4.1. -bob From sheila at thinkspot.net Tue Aug 9 20:48:48 2005 From: sheila at thinkspot.net (Sheila King) Date: Tue, 09 Aug 2005 11:48:48 -0700 Subject: [Pythonmac-SIG] [q] Help with choosing "right" python port In-Reply-To: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> References: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> Message-ID: --On Tuesday, August 9, 2005 8:40 PM +0200 Robert Valsj? wrote: > I've looked at WingIDE, IDLE, Komodo (the new beta), SPE, Eric3. > > Komodo looks very interesting (someone testing this?). WingIDE > website is not updated (dead?). I'm not sure what makes you think the WingIDE web site is not updated or dead? Their mailing list is active. IMO the web site does not appear dead. I've been trialing wingIDE recently too. The support is responsive and prompt. Not dead IMO. -- Sheila King sheila at thinkspot.net http://www.thinkspot.net/sheila/ From sheila at thinkspot.net Tue Aug 9 20:54:02 2005 From: sheila at thinkspot.net (Sheila King) Date: Tue, 09 Aug 2005 11:54:02 -0700 Subject: [Pythonmac-SIG] [q] Help with choosing "right" python port In-Reply-To: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> References: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> Message-ID: <1D37B1E537B0AC330CCB604D@[192.168.1.102]> --On Tuesday, August 9, 2005 8:40 PM +0200 Robert Valsj? wrote: > Bob's pages seems more updated. Is this the new "official" python for > Mac (Framework based)? Where is "Bob's pages" ? Are these the ones at undefined.org? I've installed Bob's version of Python 2.4.1 recently under Tiger and found it to go much more smoothly for me than anything I tried to do with the "official" or for that matter "Bob's" python under Panther. I could not get the requisite Tcl-aqua libraries installed properly under Panther (not that I tried very hard when it didn't work out of the box). Personally, as someone new to Macs (long time Python user ... well, 4+ years, anyhow) coming from Windows/Linux, I found it very difficult to get oriented as to what I should try to install on my Mac for using up-to-date Python. (Clearly, this is reflected in the originating email for this thread, as well as a recent post at discussions.apple.com in the Developer forum under the title "Python".) Newcomers to Mac have a very difficult time at present deciding what Python to install and I think it is a real shame that the MacPython site, officially linked from Python.org, does not clearly and plainly address this issue. I've lurked on this list for a few months now, and it took me a long time to figure out where and how to get "Bob's" python. It shouldn't be that hard. (Yes, I know I could have just asked...but how many people do you want posting to this list asking that question all the time? It should be easy to figure out from the web pages...) Sorry for the Tuesday morning rant. Off to get more coffee... -- Sheila King sheila at thinkspot.net http://www.thinkspot.net/sheila/ From bob at redivi.com Tue Aug 9 20:54:33 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 9 Aug 2005 08:54:33 -1000 Subject: [Pythonmac-SIG] [q] Help with choosing "right" python port In-Reply-To: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> References: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> Message-ID: <819A2FAB-2437-44E3-9144-76963F40325F@redivi.com> On Aug 9, 2005, at 8:40 AM, Robert Valsj? wrote: > OK I'm a longtime Mac user and I really want to develop Python on > this platform (Mac OS X). > > I've read many mails on the most popular python mailling lists and I > can't really decide which IDE and also which python distribution I > should choose. > > E.g I've seen that Jack Jansen official python for Mac webpages > dosen't seem to be updated. Is that site "dead"? It's not up to date, I'm not sure if it's going to stay that way forever or not. > Bob's pages seems more updated. Is this the new "official" python for > Mac (Framework based)? The framework-based Python on undefined.org is the same one you can download from python.org. > Even Activestate has now a distribution for Macs. I'd use either my release, or ActiveState's. ActiveState's release is more supported than mine is, because it's part of somebody's job over there to care (and my job is better served if I don't ;), so theirs might be a pretty good option right now. -bob From robert at venetwork.net Tue Aug 9 21:11:17 2005 From: robert at venetwork.net (=?ISO-8859-1?Q?Robert_Valsj=F6?=) Date: Tue, 9 Aug 2005 21:11:17 +0200 Subject: [Pythonmac-SIG] [q] Help with choosing "right" python port In-Reply-To: <1D37B1E537B0AC330CCB604D@[192.168.1.102]> References: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> <1D37B1E537B0AC330CCB604D@[192.168.1.102]> Message-ID: <49C02583-AE52-49CF-81D1-5596308F683E@venetwork.net> On 9 aug 2005, at 20.54, Sheila King wrote: > --On Tuesday, August 9, 2005 8:40 PM +0200 Robert Valsj? > wrote: > > >> Bob's pages seems more updated. Is this the new "official" python for >> Mac (Framework based)? >> > > Where is "Bob's pages" ? Are these the ones at undefined.org? > Yes that's the one. > I've installed Bob's version of Python 2.4.1 recently under Tiger > and found > it to go much more smoothly for me than anything I tried to do with > the > "official" or for that matter "Bob's" python under Panther. I agree! > I could not get > the requisite Tcl-aqua libraries installed properly under Panther > (not that > I tried very hard when it didn't work out of the box). > Personally, as someone new to Macs (long time Python user ... well, 4+ > years, anyhow) coming from Windows/Linux, I found it very difficult > to get > oriented as to what I should try to install on my Mac for using up- > to-date > Python. (Clearly, this is reflected in the originating email for this > thread, as well as a recent post at discussions.apple.com in the > Developer > forum under the title "Python".) > Hm so it wasn't me beeing stupid then he he...!? :-) > Newcomers to Mac have a very difficult time at present deciding > what Python > to install and I think it is a real shame that the MacPython site, > officially linked from Python.org, does not clearly and plainly > address > this issue. > Is Jack on this list? Can we/I help updating the site or should python.org link directly to Bob's site? > I've lurked on this list for a few months now, and it took me a > long time > to figure out where and how to get "Bob's" python. It shouldn't be > that > hard. (Yes, I know I could have just asked...but how many people do > you > want posting to this list asking that question all the time? It > should be > easy to figure out from the web pages...) > Sorry for the Tuesday morning rant. Off to get more coffee... > OK I get my evening coffee now. /rob > -- > Sheila King > sheila at thinkspot.net > http://www.thinkspot.net/sheila/ > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > Robert Valsj? E-mail: robert at venetwork.net Phone: +46 70 861 87 82 www.venetwork.net "Of course there are intelligent beings in the Universe, otherwise they would have come here a long time ago" ;-) From rsfinn at gmail.com Tue Aug 9 21:15:35 2005 From: rsfinn at gmail.com (Russell Finn) Date: Tue, 9 Aug 2005 15:15:35 -0400 Subject: [Pythonmac-SIG] [q] Help with choosing "right" python port In-Reply-To: <819A2FAB-2437-44E3-9144-76963F40325F@redivi.com> References: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> <819A2FAB-2437-44E3-9144-76963F40325F@redivi.com> Message-ID: On 8/9/05, Bob Ippolito wrote: > The framework-based Python on undefined.org is the same one you can > download from python.org. Perhaps, but this is not obvious. The main download page says: "_Python 2.3 OS X 10.2 installer_ (requires admin privileges -- see _MacPython download page_ for details). Note that as of the 2.4 Python release, the Mac OS X installer is still at version 2.3." The first phrase does link to the 2.3 installer as suggested. If you click through to the 2.4.1-specific page, however, there is an up-to-date Mac OS X installer. Perhaps someone should correct the main download page? -- Russell Finn From bob at redivi.com Tue Aug 9 21:31:09 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 9 Aug 2005 09:31:09 -1000 Subject: [Pythonmac-SIG] [q] Help with choosing "right" python port In-Reply-To: References: <49221A74-A449-433D-83E7-1859A0920DA6@venetwork.net> <819A2FAB-2437-44E3-9144-76963F40325F@redivi.com> Message-ID: On Aug 9, 2005, at 9:15 AM, Russell Finn wrote: > On 8/9/05, Bob Ippolito wrote: > >> The framework-based Python on undefined.org is the same one you can >> download from python.org. >> > > Perhaps, but this is not obvious. The main download page > says: "_Python 2.3 OS X 10.2 installer_ > (requires admin privileges -- see _MacPython download page_ for > details). Note that as of the 2.4 Python release, the Mac OS X > installer is still at version 2.3." The first phrase does link to the > 2.3 installer as suggested. > > If you click through to the 2.4.1-specific page, however, there is an > up-to-date Mac OS X installer. > > Perhaps someone should correct the main download page? If someone files a bug at sourceforge, this will probably get taken care of pretty quickly -bob From gandreas at delver.com Mon Aug 8 13:25:14 2005 From: gandreas at delver.com (Glenn Andreas) Date: Mon, 08 Aug 2005 11:25:14 -0000 Subject: [Pythonmac-SIG] ANN: PyOXIDE 0.6.3 - Cocoa based Python IDE Message-ID: A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 264 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050808/e6c84e3c/attachment.bin From peter at bersch.de Tue Aug 9 22:51:34 2005 From: peter at bersch.de (Peter Bersch) Date: Tue, 09 Aug 2005 22:51:34 +0200 Subject: [Pythonmac-SIG] Configuring Python for Tkinter. Please help me. Message-ID: <42F91756.3080504@bersch.de> Dear Jack Jansen, I am a teacher, but with Python a Newbie. On the CD (for Windows) encluded in the book "Python f?r Kids" by Gregor Lingl I found the class "turtle". I would like to use the "turtle.py" in Python on my iMac with Mac OSX. Without success, neither with PythonIDE(Standard) nor with PythonLauncher. When importing Tkinter there is a request for _tkinter, but there is noc such file. There seems to be some configuration error in my Mac-Python. Could you please help me. Till last year I have used Oberon to teach programming and would like to change over to Python. Thanks for your help Yours sincerely Peter Bersch Bonn, Germany From bob at redivi.com Wed Aug 10 00:29:11 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 9 Aug 2005 12:29:11 -1000 Subject: [Pythonmac-SIG] Configuring Python for Tkinter. Please help me. In-Reply-To: <42F91756.3080504@bersch.de> References: <42F91756.3080504@bersch.de> Message-ID: On Aug 9, 2005, at 10:51 AM, Peter Bersch wrote: > I am a teacher, but with Python a Newbie. On the CD (for Windows) > encluded in the book "Python f?r Kids" by Gregor Lingl I found the > class > "turtle". > I would like to use the "turtle.py" in Python on my iMac with Mac OSX. > Without success, neither with PythonIDE(Standard) nor with > PythonLauncher. > > When importing Tkinter there is a request for _tkinter, but there > is noc > such file. > > There seems to be some configuration error in my Mac-Python. > Could you please help me. > Till last year I have used Oberon to teach programming and would > like to > change over to Python. On Mac OS X 10.4, this should work out of the box. Otherwise, you need to install the _tkinter extension for your Python (you can download one from ), and you must also install TclTkAqua . -bob From krisk at walford.asn.au Wed Aug 10 03:17:20 2005 From: krisk at walford.asn.au (Kris Kopicki) Date: Wed, 10 Aug 2005 10:47:20 +0930 Subject: [Pythonmac-SIG] Select module in 10.4 Message-ID: <60485915-B780-4A8F-BEC0-0E0FC18DBC61@walford.asn.au> Hi, I've just installed a package that requires python on 10.4.2 Server and notice that is crashes on calling select.poll(). I ran this on a 10.3 Server >>> import select >>> dir(select) ['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI', '__doc__', '__file__', '__name__', 'error', 'poll', 'select'] and this on the 10.4.2 Server >>> import select >>> dir(select) ['__doc__', '__file__', '__name__', 'error', 'select'] Is the python install on 10.4 broken? Or more to the point, anyone know of a way around this? Cheers, Kris -------------------------------------- Kris Kopicki Systems Administrator Walford Anglican School for Girls Inc. 316 Unley Road, Hyde Park SA 5061 Australia Web: http://www.walford.asn.au Phone: +61-8-82726555 Fax: +61-8-82720313 Mobile: +61407790415 From bob at redivi.com Wed Aug 10 03:30:34 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 9 Aug 2005 15:30:34 -1000 Subject: [Pythonmac-SIG] Select module in 10.4 In-Reply-To: <60485915-B780-4A8F-BEC0-0E0FC18DBC61@walford.asn.au> References: <60485915-B780-4A8F-BEC0-0E0FC18DBC61@walford.asn.au> Message-ID: On Aug 9, 2005, at 3:17 PM, Kris Kopicki wrote: > I've just installed a package that requires python on 10.4.2 Server > and notice that is crashes on calling select.poll(). > > I ran this on a 10.3 Server > >>>> import select >>>> dir(select) >>>> > ['POLLERR', 'POLLHUP', 'POLLIN', 'POLLNVAL', 'POLLOUT', 'POLLPRI', > '__doc__', '__file__', '__name__', 'error', 'poll', 'select'] > > and this on the 10.4.2 Server > >>>> import select >>>> dir(select) >>>> > ['__doc__', '__file__', '__name__', 'error', 'select'] > > Is the python install on 10.4 broken? Or more to the point, anyone > know of a way around this? IIRC, poll is broken in Mac OS X and newer versions of Python ignore the implementation if it doesn't work right. It's doing you a favor. Whatever package you're trying to use should fall back to select if poll isn't available, so it's the package that is broken (or rather, not cross-platform). -bob From pythondeveloper at gmail.com Wed Aug 10 18:52:21 2005 From: pythondeveloper at gmail.com (Scott Kaplan) Date: Wed, 10 Aug 2005 12:52:21 -0400 Subject: [Pythonmac-SIG] Is there a good Python C/C++ IDE? Message-ID: <86afeadf050810095249a6d3b@mail.gmail.com> Being new to Python, I was wondering if anyone knows of a good IDE that would let me develop Python and add extensions in C/C++, with the capability of debugging those extensions. I have a Mac XServe running version 10.2.X It looks like the standard download comes with PyObjC, however I want to extend Python to handle my C/C++ extensions not the other way around + I don't want to have to learn any ObjectiveC / ObjC syntax. Thanks, From krisk at walford.asn.au Thu Aug 11 00:58:18 2005 From: krisk at walford.asn.au (Kris Kopicki) Date: Thu, 11 Aug 2005 08:28:18 +0930 Subject: [Pythonmac-SIG] Is there a good Python C/C++ IDE? In-Reply-To: <86afeadf050810095249a6d3b@mail.gmail.com> References: <86afeadf050810095249a6d3b@mail.gmail.com> Message-ID: While not quite an IDE, I use jEdit (www.jedit.org). This editor has almost every feature you could want, and editing files remotely over ssh is very useful for servers. Kris On 11/08/2005, at 2:22 AM, Scott Kaplan wrote: > Being new to Python, I was wondering if anyone knows of a good IDE > that would let me develop Python and add extensions in C/C++, with the > capability of debugging those extensions. > > I have a Mac XServe running version 10.2.X > > It looks like the standard download comes with PyObjC, however I want > to extend Python to handle my C/C++ extensions not the other way > around + I don't want to have to learn any ObjectiveC / ObjC syntax. > > Thanks, > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > -------------------------------------- Kris Kopicki Systems Administrator Walford Anglican School for Girls Inc. 316 Unley Road, Hyde Park SA 5061 Australia Web: http://www.walford.asn.au Phone: +61-8-82726555 Fax: +61-8-82720313 Mobile: +61407790415 From smithsm at samuelsmith.org Thu Aug 11 18:15:32 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Thu, 11 Aug 2005 10:15:32 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: Maybe I am being stupid but I tried to install scipy on 10.4.2 using Bob Ippolito's Framework python 2.4.1 and following the directions on the scipy website for os x http:// www.scipy.org/Members/fonnesbeck/osx_build.txt/ I first installed python 2.4.1 and several of the packages from Bob's site http://undefined.org/python/#python and from the python packages http://pythonmac.org/packages/ I only installed packages that said they were compatible with Tiger and 2.4.1 I changed my PATH shell variable to >echo $PATH /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin so that python from the command line runs python 2.4.1 Installing Numeric 23.7, numarry 1.1.1 g77 3.4, fftw 2.15, f2py 2.45, aquaterm 1.0b2 gnuplot 4.0 all went smoothly The ploblem occurred with scipy 0.3.2 The setup instructions say one might need to remove if sys.platform == 'darwin': opt.append('cc_dynamic') from the file gnufcompiler.py prior to running python setup.py build However that code snippet doesn't exist in the version of gnufcompiler.py in scipy complete 0.3.2. The closest I could find was the following if sys.platform=='darwin': if os.path.realpath(sys.executable).startswith('/System'): # This is when Python is from Apple framework opt.extend(["-Wl,-framework","-Wl,Python"]) #else we are running in Fink python. opt.extend(["-lcc_dynamic","-bundle"]) else: opt.append("-shared") Which looked like to me that someone had already accounted for the framework build so I didn't make any changes to setup.py Unfortunately setup.py build exits with the following error collect2: ld returned 1 exit status /usr/bin/ld: Undefined symbols: _PyArg_ParseTuple _PyArg_ParseTupleAndKeywords _PyCObject_AsVoidPtr _PyCObject_Type _PyComplex_Type _PyDict_GetItemString _PyDict_SetItemString _PyErr_Clear _PyErr_NewException _PyErr_Occurred _PyErr_Print _PyErr_SetString _PyImport_ImportModule _PyInt_Type _PyModule_GetDict _PyNumber_Int _PyObject_GetAttrString _PySequence_Check _PySequence_GetItem _PyString_FromString _PyString_Type _PyType_IsSubtype _PyType_Type _Py_BuildValue _Py_FatalError _Py_InitModule4 __Py_NoneStruct _fprintf$LDBLStub _PyCObject_FromVoidPtr _PyDict_DelItemString _PyDict_New _PyErr_Format _PyExc_AttributeError _PyExc_RuntimeError _PyExc_TypeError _PyObject_Free _PyString_ConcatAndDel _Py_FindMethod __PyObject_New _sprintf$LDBLStub collect2: ld returned 1 exit status error: Command "/usr/local/bin/g77 -lcc_dynamic -bundle build/ temp.darwin-8.2.0-Power_Macintosh-2.4/build/src/Lib/fftpack/ _fftpackmodule.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ fftpack/src/zfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ fftpack/src/drfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ fftpack/src/zrfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ fftpack/src/zfftnd.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/ build/src/fortranobject.o -L/usr/local/lib -L/usr/local/lib/gcc/ powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.2.0- Power_Macintosh-2.4 -ldfftpack -lrfftw -lfftw -lg2c -o build/ lib.darwin-8.2.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so" failed with exit status 1 Anyone have any idea what the problem is. ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** From bob at redivi.com Thu Aug 11 18:34:53 2005 From: bob at redivi.com (Bob Ippolito) Date: Thu, 11 Aug 2005 06:34:53 -1000 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: <6609D033-CC7A-4871-A3AC-8A8A05F7D4FC@redivi.com> On Aug 11, 2005, at 6:15 AM, Samuel M. Smith wrote: > Maybe I am being stupid but I tried to install scipy on 10.4.2 using > Bob Ippolito's Framework python 2.4.1 > and following the directions on the scipy website for os x http:// > www.scipy.org/Members/fonnesbeck/osx_build.txt/ > > I first installed python 2.4.1 and several of the packages from Bob's > site > http://undefined.org/python/#python > and from the python packages > http://pythonmac.org/packages/ > > I only installed packages that said they were compatible with Tiger > and 2.4.1 Packages that say 10.4 are *ONLY* compatible with 10.4. Packages that say 10.3 also work on 10.4. > I changed my PATH shell variable to > >> echo $PATH >> > /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin > > so that python from the command line runs python 2.4.1 > > Installing > Numeric 23.7, > numarry 1.1.1 > g77 3.4, > fftw 2.15, > f2py 2.45, > aquaterm 1.0b2 > gnuplot 4.0 > > all went smoothly > The ploblem occurred with > scipy 0.3.2 > > The setup instructions say one might need to remove > if sys.platform == 'darwin': > opt.append('cc_dynamic') > > from the file gnufcompiler.py > > prior to running python setup.py build > > However that code snippet doesn't exist in the version of > gnufcompiler.py in scipy complete 0.3.2. > The closest I could find was the following > > > if sys.platform=='darwin': > if os.path.realpath(sys.executable).startswith('/System'): > # This is when Python is from Apple framework > opt.extend(["-Wl,-framework","-Wl,Python"]) > #else we are running in Fink python. > opt.extend(["-lcc_dynamic","-bundle"]) > else: > opt.append("-shared") > > Which looked like to me that someone had already accounted for the > framework build so I didn't make any changes > to setup.py Well, they tried to, but they did it wrong. It should be using a more robust way for detecting a framework Python. Something like 'Python.framework' in os.path.realpath(sys.executable) -bob From Chris.Barker at noaa.gov Thu Aug 11 19:26:08 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Thu, 11 Aug 2005 10:26:08 -0700 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <6609D033-CC7A-4871-A3AC-8A8A05F7D4FC@redivi.com> References: <6609D033-CC7A-4871-A3AC-8A8A05F7D4FC@redivi.com> Message-ID: <42FB8A30.3040305@noaa.gov> Bob Ippolito wrote: > On Aug 11, 2005, at 6:15 AM, Samuel M. Smith wrote: >>if sys.platform=='darwin': >> if os.path.realpath(sys.executable).startswith('/System'): >> # This is when Python is from Apple framework >> opt.extend(["-Wl,-framework","-Wl,Python"]) >> #else we are running in Fink python. >> opt.extend(["-lcc_dynamic","-bundle"]) >>else: >> opt.append("-shared") >> >>Which looked like to me that someone had already accounted for the >>framework build so I didn't make any changes >>to setup.py > > Well, they tried to, but they did it wrong. It should be using a > more robust way for detecting a framework Python. Something like > 'Python.framework' in os.path.realpath(sys.executable) Bob's exactly right (as usual) and I just feel the need to rant a little: This is really lame coding, and it's a pattern I see a lot: if ONE_WAY_TO_CHECK_FOR_ONE_THING: do this else: we MUST be doing what I have on my system! lame, and bug prone. At the very least, they could have done something like: if sys.platform=='darwin': if os.path.realpath(sys.executable).startswith('/System'): # This is when Python is from Apple framework opt.extend(["-Wl,-framework","-Wl,Python"]) elif (Do something to actually check for fink): opt.extend(["-lcc_dynamic","-bundle"]) else: raise Exception("You seem to have a python I haven't been configured for") else: opt.append("-shared") Would that be so hard? If they had done that, at least you would have gotten a clear message about what was wrong. Checking for fink could be a simple as: os.path.realpath(sys.executable).startswith('/sw'): That's not all that robust either, but it's a start. <\rant> -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From smithsm at samuelsmith.org Thu Aug 11 19:54:13 2005 From: smithsm at samuelsmith.org (Samuel M.Smith) Date: Thu, 11 Aug 2005 11:54:13 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <6609D033-CC7A-4871-A3AC-8A8A05F7D4FC@redivi.com> References: <6609D033-CC7A-4871-A3AC-8A8A05F7D4FC@redivi.com> Message-ID: <2EE64F9F-9DF7-4D2F-85A6-9A493B73F824@samuelsmith.org> >> >> I only installed packages that said they were compatible with Tiger >> and 2.4.1 >> > > Packages that say 10.4 are *ONLY* compatible with 10.4. Packages > that say 10.3 also work on 10.4. Sorry thats what I meant by my statement. I installed both 10.4 only and 10.4 compatible (which included some 10.3 packages) > > Well, they tried to, but they did it wrong. It should be using a > more robust way for detecting a framework Python. Something like > 'Python.framework' in os.path.realpath(sys.executable) So you think it may not be detecting it right? The error is consistent with not expecting a framework python? Anyway I changed gnufcompiler.py to if sys.platform=='darwin': #if os.path.realpath(sys.executable).startswith('/System'): if 'Python.framework' in os.path.realpath(sys.executable): # This is when Python is from Apple framework opt.extend(["-Wl,-framework","-Wl,Python"]) #else we are running in Fink python. opt.extend(["-lcc_dynamic","-bundle"]) else: opt.append("-shared") And now setup.py build still exits with an error in the same place but the error is different collect2: ld returned 1 exit status /usr/bin/ld: Undefined symbols: _fprintf$LDBLStub _sprintf$LDBLStub collect2: ld returned 1 exit status error: Command "/usr/local/bin/g77 -Wl,-framework -Wl,Python - lcc_dynamic -bundle build/temp.darwin-8.2.0-Power_Macintosh-2.4/build/ src/Lib/fftpack/_fftpackmodule.o build/temp.darwin-8.2.0- Power_Macintosh-2.4/Lib/fftpack/src/zfft.o build/temp.darwin-8.2.0- Power_Macintosh-2.4/Lib/fftpack/src/drfft.o build/temp.darwin-8.2.0- Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o build/temp.darwin-8.2.0- Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o build/temp.darwin-8.2.0- Power_Macintosh-2.4/build/src/fortranobject.o -L/usr/local/lib -L/usr/ local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/ temp.darwin-8.2.0-Power_Macintosh-2.4 -ldfftpack -lrfftw -lfftw -lg2c -o build/lib.darwin-8.2.0-Power_Macintosh-2.4/scipy/fftpack/ _fftpack.so" failed with exit status 1 So am I converging? Or should I give up and use DarwinPorts or Fink? > > -bob > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** From smithsm at samuelsmith.org Thu Aug 11 20:00:32 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Thu, 11 Aug 2005 12:00:32 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <42FB8A30.3040305@noaa.gov> References: <6609D033-CC7A-4871-A3AC-8A8A05F7D4FC@redivi.com> <42FB8A30.3040305@noaa.gov> Message-ID: <65E269E2-1AF8-47AA-9210-06055344E062@samuelsmith.org> > > Bob's exactly right (as usual) and I just feel the need to rant a > little: > > This is really lame coding, and it's a pattern I see a lot: > > if ONE_WAY_TO_CHECK_FOR_ONE_THING: > do this > else: > we MUST be doing what I have on my system! > > lame, and bug prone. > > At the very least, they could have done something like: > > if sys.platform=='darwin': > if os.path.realpath(sys.executable).startswith('/System'): > # This is when Python is from Apple framework > opt.extend(["-Wl,-framework","-Wl,Python"]) > elif (Do something to actually check for fink): > opt.extend(["-lcc_dynamic","-bundle"]) > else: > raise Exception("You seem to have a python I haven't been > configured for") > else: > opt.append("-shared") > > Would that be so hard? If they had done that, at least you would have > gotten a clear message about what was wrong. > > Checking for fink could be a simple as: > os.path.realpath(sys.executable).startswith('/sw'): Of course there is also a DarwinPorts version by maybe it doesn't matter since both the fink and darwin ports are non framework builds? From Chris.Barker at noaa.gov Thu Aug 11 20:01:36 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Thu, 11 Aug 2005 11:01:36 -0700 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <2EE64F9F-9DF7-4D2F-85A6-9A493B73F824@samuelsmith.org> References: <6609D033-CC7A-4871-A3AC-8A8A05F7D4FC@redivi.com> <2EE64F9F-9DF7-4D2F-85A6-9A493B73F824@samuelsmith.org> Message-ID: <42FB9280.7010805@noaa.gov> Samuel M.Smith wrote: > Or should I give up and use DarwinPorts or Fink? Please don't, it would be really nice to have SciPy build on a fink-free OS-X. Please make sure to file patches for the changes to need to make to get it to work. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From bgranger at scu.edu Thu Aug 11 20:26:38 2005 From: bgranger at scu.edu (Brian Granger) Date: Thu, 11 Aug 2005 11:26:38 -0700 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: What version of gcc are you using? I have not had any luck getting scipy and its dependencies working with gcc 4.0. Maybe this has changed? Has anyone had success with gcc 4.0 yet? If you need to change the default version of gcc on Mac OS X use the command: sudo gcc_select 3.3 Brian On Aug 11, 2005, at 9:15 AM, Samuel M. Smith wrote: > Maybe I am being stupid but I tried to install scipy on 10.4.2 using > Bob Ippolito's Framework python 2.4.1 > and following the directions on the scipy website for os x http:// > www.scipy.org/Members/fonnesbeck/osx_build.txt/ > > I first installed python 2.4.1 and several of the packages from Bob's > site > http://undefined.org/python/#python > and from the python packages > http://pythonmac.org/packages/ > > I only installed packages that said they were compatible with Tiger > and 2.4.1 > > I changed my PATH shell variable to > >> echo $PATH >> > /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin > > so that python from the command line runs python 2.4.1 > > Installing > Numeric 23.7, > numarry 1.1.1 > g77 3.4, > fftw 2.15, > f2py 2.45, > aquaterm 1.0b2 > gnuplot 4.0 > > all went smoothly > The ploblem occurred with > scipy 0.3.2 > > The setup instructions say one might need to remove > if sys.platform == 'darwin': > opt.append('cc_dynamic') > > from the file gnufcompiler.py > > prior to running python setup.py build > > However that code snippet doesn't exist in the version of > gnufcompiler.py in scipy complete 0.3.2. > The closest I could find was the following > > > if sys.platform=='darwin': > if os.path.realpath(sys.executable).startswith('/System'): > # This is when Python is from Apple framework > opt.extend(["-Wl,-framework","-Wl,Python"]) > #else we are running in Fink python. > opt.extend(["-lcc_dynamic","-bundle"]) > else: > opt.append("-shared") > > Which looked like to me that someone had already accounted for the > framework build so I didn't make any changes > to setup.py > > > Unfortunately setup.py build exits with the following error > > collect2: ld returned 1 exit status > /usr/bin/ld: Undefined symbols: > _PyArg_ParseTuple > _PyArg_ParseTupleAndKeywords > _PyCObject_AsVoidPtr > _PyCObject_Type > _PyComplex_Type > _PyDict_GetItemString > _PyDict_SetItemString > _PyErr_Clear > _PyErr_NewException > _PyErr_Occurred > _PyErr_Print > _PyErr_SetString > _PyImport_ImportModule > _PyInt_Type > _PyModule_GetDict > _PyNumber_Int > _PyObject_GetAttrString > _PySequence_Check > _PySequence_GetItem > _PyString_FromString > _PyString_Type > _PyType_IsSubtype > _PyType_Type > _Py_BuildValue > _Py_FatalError > _Py_InitModule4 > __Py_NoneStruct > _fprintf$LDBLStub > _PyCObject_FromVoidPtr > _PyDict_DelItemString > _PyDict_New > _PyErr_Format > _PyExc_AttributeError > _PyExc_RuntimeError > _PyExc_TypeError > _PyObject_Free > _PyString_ConcatAndDel > _Py_FindMethod > __PyObject_New > _sprintf$LDBLStub > collect2: ld returned 1 exit status > error: Command "/usr/local/bin/g77 -lcc_dynamic -bundle build/ > temp.darwin-8.2.0-Power_Macintosh-2.4/build/src/Lib/fftpack/ > _fftpackmodule.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ > fftpack/src/zfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ > fftpack/src/drfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ > fftpack/src/zrfft.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/Lib/ > fftpack/src/zfftnd.o build/temp.darwin-8.2.0-Power_Macintosh-2.4/ > build/src/fortranobject.o -L/usr/local/lib -L/usr/local/lib/gcc/ > powerpc-apple-darwin7.9.0/3.4.4 -Lbuild/temp.darwin-8.2.0- > Power_Macintosh-2.4 -ldfftpack -lrfftw -lfftw -lg2c -o build/ > lib.darwin-8.2.0-Power_Macintosh-2.4/scipy/fftpack/_fftpack.so" > failed with exit status 1 > > > Anyone have any idea what the problem is. > > > > > ********************************************************************** > Samuel M. Smith Ph.D. > 2966 Fort Hill Road > Eagle Mountain, Utah 84043 > 801-768-2768 voice > 801-768-2769 fax > ********************************************************************** > "The greatest source of failure and unhappiness in the world is > giving up what we want most for what we want at the moment" > ********************************************************************** > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From smithsm at samuelsmith.org Thu Aug 11 20:48:23 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Thu, 11 Aug 2005 12:48:23 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: On 11 Aug, 2005, at 12:26, Brian Granger wrote: > What version of gcc are you using? I have not had any luck getting > scipy and its dependencies working with gcc 4.0. > /usr/bin/gcc powerpc-apple-darwin8-gcc-4.0.0 From cookedm at physics.mcmaster.ca Thu Aug 11 21:03:04 2005 From: cookedm at physics.mcmaster.ca (David M. Cooke) Date: Thu, 11 Aug 2005 15:03:04 -0400 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: (Samuel M. Smith's message of "Thu, 11 Aug 2005 10:15:32 -0600") References: Message-ID: "Samuel M. Smith" writes: > Maybe I am being stupid but I tried to install scipy on 10.4.2 using > Bob Ippolito's Framework python 2.4.1 > and following the directions on the scipy website for os x http:// > www.scipy.org/Members/fonnesbeck/osx_build.txt/ > > I first installed python 2.4.1 and several of the packages from Bob's > site > http://undefined.org/python/#python > and from the python packages > http://pythonmac.org/packages/ > > I only installed packages that said they were compatible with Tiger > and 2.4.1 > > I changed my PATH shell variable to > >echo $PATH > /usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin > > so that python from the command line runs python 2.4.1 > > Installing > Numeric 23.7, > numarry 1.1.1 > g77 3.4, > fftw 2.15, > f2py 2.45, > aquaterm 1.0b2 > gnuplot 4.0 > > all went smoothly > The ploblem occurred with > scipy 0.3.2 > > The setup instructions say one might need to remove > if sys.platform == 'darwin': > opt.append('cc_dynamic') > > from the file gnufcompiler.py > > prior to running python setup.py build > > However that code snippet doesn't exist in the version of > gnufcompiler.py in scipy complete 0.3.2. Try getting the subversion version of Scipy. I know there were some fixes to how Scipy is built on Mac OS X since 0.3.2 (which is getting kind of old now). Unfortunately, it doesn't look scipy.org has been updated with instructions on pulling from Subversion, but Fernando Perez has put up a snapshot of CVS before it was switched to subversion at http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz This *should* build correctly on OS X. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm at physics.mcmaster.ca From smithsm at samuelsmith.org Thu Aug 11 22:06:09 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Thu, 11 Aug 2005 14:06:09 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: > > Unfortunately, it doesn't look scipy.org has been updated with > instructions on pulling from Subversion, but Fernando Perez has put up > a snapshot of CVS before it was switched to subversion at > > http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz > > This *should* build correctly on OS X. > I had more success with the snapshot above. It built, but I don't know how "correctly" during the build there were thousands of warnings and hundreds of warnings of the form gcc: build/src/scipy/linalg/calc_lworkmodule.c powerpc-apple-darwin8-gcc-4.0.0: -framework: linker input file unused because linking not done powerpc-apple-darwin8-gcc-4.0.0: Accelerate: linker input file unused because linking not done also hundreds of warnings like usr/bin/ld: warning multiple definitions of symbol _sinf /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libmx.dylib(single module) definition of _sinf /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/../../../libSystem.dylib (floating.o) definition of _sinf when I ran the self tests I got some errors that didn't look good. They would fill several pages but most were of the form shown at the end of this message. It ended the self test with ---------------------------------------------------------------------- Ran 150 tests in 0.547s FAILED (errors=7) >>> So did it build correctly? Also FYI to Chris Barker and Bob Ippolito The cvs snapshot had this code in gnufcompiler.py if sys.platform=='darwin': target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None) if target is None: target = '10.3' major, minor = target.split('.') if int(minor) < 3: minor = '3' warnings.warn('Environment variable ' 'MACOSX_DEPLOYMENT_TARGET reset to 10.3') os.environ['MACOSX_DEPLOYMENT_TARGET'] = '%s.%s' % (major, minor) opt.extend(['-undefined', 'dynamic_lookup', '-bundle']) else: opt.append("-shared") Looks like they cleaned up their act. ******************* AlBook:/install/development/python/scientific/scipyinstall/scipy smithsm$ python Python 2.4.1 (#2, Mar 31 2005, 00:05:10) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import scipy >>> scipy.test() exceptions.ImportError: Failure linking new module: /Library/ Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/ scipy/linalg/_flinalg.so: Symbol not found: _sprintf$LDBLStub Referenced from: /Library/Frameworks/Python.framework/Versions/2.4/ lib/python2.4/site-packages/scipy/linalg/_flinalg.so Expected in: dynamic lookup !! No test file 'test_lib.py' found for !! No test file 'test_lena.py' found for !! No test file 'test_build_py.py' found for !! No test file 'test_gistC.py' found for Found 4 tests for scipy.io.array_import Found 1 tests for scipy.xxx.yyy !! No test file 'test_xxx.py' found for !! No test file 'test_ccompiler.py' found for From smithsm at samuelsmith.org Thu Aug 11 22:16:13 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Thu, 11 Aug 2005 14:16:13 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: <2208EAC1-BCAC-40AF-86F1-8AB15AB8A559@samuelsmith.org> So has anyone built SciPy with Python 2.4.1 framework on 10.4? Has anyone used the DarwinPorts or Fink version. How would I know if the one I just built is good or as good as it gets without installing the other two? Does anyone know if there would by any conflicts in installing both the DarwinPorts version and what I have already installed? From smithsm at samuelsmith.org Fri Aug 12 08:12:57 2005 From: smithsm at samuelsmith.org (Samuel M.Smith) Date: Fri, 12 Aug 2005 00:12:57 -0600 Subject: [Pythonmac-SIG] matplotlib problems In-Reply-To: References: Message-ID: I installed the matplotlib from http://pythonmac.org/packages/ matplotlib-0.82-py2.4-macosx10.3.zip if I try to import pylab it exits and complains about not having pygtk. It is my understanding that if I have wxPython installed that I don't need pygtk. Apparently the dependency is still there. Am I missing something. I put matplotlibrc in ~/.matplotlib. i changed the default configuration to use the WxAgg #### CONFIGURATION BEGINS HERE backend : WxAgg # the default backend is GTKAgg numerix : Numeric # Numeric or numarray interactive : False # see http://matplotlib.sourceforge.net/ interactive.html toolbar : toolbar2 # None | classic | toolbar2 timezone : UTC # a pytz timezone string, eg US/Central or Europe/Paris but it didn't change anything. Anybody use matplotlib pylab and could tell me how to get it to work? $ pythonw Python 2.4.1 (#2, Mar 31 2005, 00:05:10) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import matplotlib >>> import pylab No module named pygtk PyGTK version 1.99.16 or greater is required to run the GTK Matplotlib backends $ From w.northcott at unsw.edu.au Fri Aug 12 11:01:15 2005 From: w.northcott at unsw.edu.au (Bill Northcott) Date: Fri, 12 Aug 2005 19:01:15 +1000 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> On 12/08/2005, at 4:26 AM, Brian Granger wrote: > What version of gcc are you using? I have not had any luck getting > scipy and its dependencies working with gcc 4.0. > > Maybe this has changed? Has anyone had success with gcc 4.0 yet? > > If you need to change the default version of gcc on Mac OS X use > the command: > > sudo gcc_select 3.3 This is probably the solution. Why? because you can only use g77 with gcc-3.x OR gfortran with gcc-4.x. You cannot use g77 with gcc-4 they are incompatible. So if you have a Python/R/Perl/you-name-it binary containing Fortran objects built with g77 you cannot extend it with code compiled with gcc-4. This is true on any platform. The issue arises mainly on Tiger because it does not have an included Fortran compiler and out of the box it defaults to using gcc-4. Binary packages are shipped built with g77 and sometimes including g77. These are bound to fail on Tiger unless the default compiler is changed using the gcc_select command as above. I have built Scipy with gcc-4, but you must use gfortran to compile all the Fortran code for that to work. I do wish someone on Python, R-project or some other web site would document this issue. I must have posted at least twenty messages saying the same thing. Bill Northcott From jdhunter at ace.bsd.uchicago.edu Fri Aug 12 14:45:09 2005 From: jdhunter at ace.bsd.uchicago.edu (John Hunter) Date: Fri, 12 Aug 2005 07:45:09 -0500 Subject: [Pythonmac-SIG] matplotlib problems In-Reply-To: ("Samuel M.Smith"'s message of "Fri, 12 Aug 2005 00:12:57 -0600") References: Message-ID: <871x4zuxwq.fsf@peds-pc311.bsd.uchicago.edu> >>>>> "Samuel" == Samuel M Smith writes: Samuel> I installed the matplotlib from Samuel> http://pythonmac.org/packages/ Samuel> matplotlib-0.82-py2.4-macosx10.3.zip Samuel> if I try to import pylab it exits and complains about not Samuel> having pygtk. Samuel> It is my understanding that if I have wxPython installed Samuel> that I don't need pygtk. Apparently the dependency is Samuel> still there. Am I missing something. Samuel> I put matplotlibrc in ~/.matplotlib. You did everything right, but for the most recent version. In matplotlib 0.83, we renamed ~/.matplotlibrc to ~/.matplotlib/matplotlibrc. Since you are using 0.82, it is looking for the old file name, and not finding it, falling back on the defaults. Rename your rc file back to ~/.matplotlibrc (until the next upgrade) an you should be good to go. Run your script with --verbose-helpful for extra diagnostic information, like which rc file is being loaded. JDH From Hubert.Holin at meteo.fr Fri Aug 12 15:00:37 2005 From: Hubert.Holin at meteo.fr (Hubert Holin) Date: Fri, 12 Aug 2005 15:00:37 +0200 Subject: [Pythonmac-SIG] Is there a good Python C/C++ IDE? In-Reply-To: References: Message-ID: <183D565B-0F6F-4FC1-9CA0-E0B975102723@meteo.fr> [Xposted and followups to pythonmac list which is perhaps more appropriate] Somewhere in the E.U., le 12/08/2005 Bonjour On 12 ao?t 2005, at 12:00, c++-sig-request at python.org wrote: > Date: Thu, 11 Aug 2005 13:49:08 -0400 > From: Scott Kaplan > Subject: [C++-sig] Is there a good Python C/C++ IDE? > To: Development of Python/C++ integration > Message-ID: <86afeadf05081110495776a14b at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Being new to Python, I was wondering if anyone knows of a good IDE > that would let me develop Python and add extensions in C/C++, with the > capability of debugging those extensions. > > This will be on a Mac. > > It looks like the standard download comes with PyObjC, however I want > to extend Python to handle my C/C++ extensions not the other way > around + I don't want to have to learn any ObjectiveC / ObjC syntax. > > Thanks, Well, if you do not want to create GUIs, but do want to use one, it is possible to use XCode (2.1, though the last few previous versions would presumably also work). More precisely, you can launch the command-line Python from within XCode with a chosen script as argument (and any other arguments you may care about), and of course you can do the C++ programming within that environment. I have not actually tried to have a custom Python extension used in such a setting, but it is in my current work plan. You can even use the free (and excellent) TextWrangler as the code editor (for C++ and Python). The debugging of the extension can then be done using XCode's front-end to GDB. For debugging of Python scripts proper, however, the (free) PythonIDE is preferable, though (which leads to: development of scripts within PythonIDE, extension coding and integration in XCode). You are, as well, not restricted to using the Apple-supplied version of Python. As an example, I installed Bob Ippolito's "Official Unofficial" Python 2.4.1. I then created an XCode project (***empty project***) "Python via XCode", added a target "Invoked Snake" (of type aggregate), and to it added a custom executable "Python 2.4.1 (Official Unofficial)", setting its properties as "Executable path: / Library/Frameworks/Python.framework/Versions/2.4/bin/python" and with an argument ""/Users/hubertholin/Documents/Scratch/Python via Xcode/ test.py"" (adding quotes around path arguments is safer... note the whitespaces). Clicking on the "Build and Go" icon then invoked python with my test script as argument. The creation of extensions should be straightforward from the Boost.Python documentation (so far, I have only tried embedding, not extension, which is on my to-do list). I am still trying to refine the process to something I like, though. As far as Objective-C and Objective-C++ are concerned, I only see them as something of an inconvenience, much as in the same way that Apple's system documentation had long been geared towards Pascal rather than C. PyObjC goes a long way to ease our suffering, though there are some rough spots still (and the Python Carbon bindings need a full overhaul). It should be said that Interface Builder is superb, though, and in the absence of a NIB to whatever- portable-package Python will understand (like there appears to be for PERL), if one wants GUIs, then building them in IB, using PyObjC as the glue (using documentation written for ObjC) and extending with C+ + is a possible road. At least that's the road I am taking, and if anybody's interested I'll report back if it actually leads somewhere :-) . Bon courage Hubert Holin From Benjamin.Schollnick at XEROX.COM Fri Aug 12 15:47:39 2005 From: Benjamin.Schollnick at XEROX.COM (Schollnick, Benjamin) Date: Fri, 12 Aug 2005 09:47:39 -0400 Subject: [Pythonmac-SIG] Py2app & wxPython problem... Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFCF@usa0300ms04.na.xerox.net> Bob, I spoke too soon.. Setting Site-packages works on the development machine, but does not seem to be helping on the non-development systems... Python 2.3.5 (Stock Tiger) Py2App v0.2-py2.3 wxPython 2.6 (unicode, 2.6.10) I have attempted to include wx, wxPython and PythonCard as packages, and I believe it moves the crash further down the chain. The issue appears that wxPython is not finding the _core module... (ie. the wxPython package is not receiving all the dependencies that it requires..) The development system is running Tiger (10.4), and I'm testing on a 10.3.9 system... Any suggestions? When this was being built on 10.39, it had worked fine on the test system... But I would prefer to not to regress to 10.3.9 on the development system. - Benjamin See the Console for a detailed traceback. Traceback (most recent call last): File "/Volumes/Users/bschollnick/dist/audit_gui.app/Contents/Resources/__boot __.py", line 61, in ? _run('audit_gui.py') File "/Volumes/Users/bschollnick/dist/audit_gui.app/Contents/Resources/__boot __.py", line 58, in _run execfile(path, globals(), globals()) File "/Volumes/Users/bschollnick/dist/audit_gui.app/Contents/Resources/audit_ gui.py", line 81, in ? from PythonCard import model File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/ site-packages/PythonCard/model.py", line 24, in ? File "/Volumes/Users/bschollnick/dist/audit_gui.app/Contents/Resources/Python /site-packages/wxPython/__init__.py", line 10, in ? import _wx File "/Volumes/Users/bschollnick/dist/audit_gui.app/Contents/Resources/Python /site-packages/wxPython/_wx.py", line 3, in ? from _core import * File "/Volumes/Users/bschollnick/dist/audit_gui.app/Contents/Resources/Python /site-packages/wxPython/_core.py", line 22, in ? wxNOT_FOUND = wx._core.NOT_FOUND AttributeError: 'module' object has no attribute 'NOT_FOUND' 2005-08-12 09:32:11.930 audit_gui[1506] audit_gui Error 2005-08-12 09:32:11.931 audit_gui[1506] An unexpected error has occurred during execution of the main script AttributeError: 'module' object has no attribute 'NOT_FOUND' from distutils.core import setup import py2app includes = ["encodings", "encodings.utf_8", "encodings.ascii", "wx", "wxPython", "PythonCard"] packages = ["wx", "wxPython", "PythonCard"] py2app_options = { 'argv_emulation':True, 'optimize':1, 'compressed':1, 'site_packages': True, 'includes' : includes, 'packages' : packages } data_files = [ ("", ["AUDIT.INI", "AUDIT_GUI.RSRC.PY", "sample_audit.ini", "clean_desk.rpt", "software.rpt"]) ] setup ( app=['audit_gui.py'], options={"py2app": dict(py2app_options)}, data_files= data_files ) From bob at redivi.com Fri Aug 12 15:52:16 2005 From: bob at redivi.com (Bob Ippolito) Date: Fri, 12 Aug 2005 03:52:16 -1000 Subject: [Pythonmac-SIG] Py2app & wxPython problem... In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFCF@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFCF@usa0300ms04.na.xerox.net> Message-ID: On Aug 12, 2005, at 3:47 AM, Schollnick, Benjamin wrote: > Bob, > > I spoke too soon.. > > Setting Site-packages works on the development machine, but does > not seem to be helping on the non-development systems... > > Python 2.3.5 (Stock Tiger) > Py2App v0.2-py2.3 > wxPython 2.6 (unicode, 2.6.10) > > I have attempted to include wx, wxPython and PythonCard as > packages, and I believe it moves the crash further down the chain. > > The issue appears that wxPython is not finding the _core > module... (ie. the wxPython package is not receiving all the > dependencies that it requires..) > > The development system is running Tiger (10.4), and I'm testing > on a 10.3.9 system... > > Any suggestions? > > When this was being built on 10.39, it had worked fine on the > test system... But I would prefer to not to regress to 10.3.9 on the > development system. You're going to need to upgrade to 2.4.1 if you want to be able to build backwards and forwards compatible stuff. The /System releases are only really suitable if your target is that exact release of Mac OS X. -bob From smithsm at samuelsmith.org Fri Aug 12 16:18:38 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Fri, 12 Aug 2005 08:18:38 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> References: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> Message-ID: <7DBA349F-5AA0-49D7-B12E-AB2CA2D7B620@samuelsmith.org> On 12 Aug, 2005, at 03:01, Bill Northcott wrote: > On 12/08/2005, at 4:26 AM, Brian Granger wrote: > >> What version of gcc are you using? I have not had any luck >> getting scipy and its dependencies working with gcc 4.0. >> >> Maybe this has changed? Has anyone had success with gcc 4.0 yet? >> >> If you need to change the default version of gcc on Mac OS X use >> the command: >> >> sudo gcc_select 3.3 >> > > This is probably the solution. > Why? > because you can only use g77 with gcc-3.x OR gfortran with > gcc-4.x. You cannot use g77 with gcc-4 they are incompatible. > So if you have a Python/R/Perl/you-name-it binary containing > Fortran objects built with g77 you cannot extend it with code > compiled with gcc-4. This is true on any platform. > > The issue arises mainly on Tiger because it does not have an > included Fortran compiler and out of the box it defaults to using > gcc-4. Binary packages are shipped built with g77 and sometimes > including g77. These are bound to fail on Tiger unless the default > compiler is changed using the gcc_select command as above. > > I have built Scipy with gcc-4, but you must use gfortran to compile > all the Fortran code for that to work. How hard is it to replace g77 with gfortran? > > I do wish someone on Python, R-project or some other web site would > document this issue. I must have posted at least twenty messages > saying the same thing. > > Bill Northcott > ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** From smithsm at samuelsmith.org Fri Aug 12 16:33:30 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Fri, 12 Aug 2005 08:33:30 -0600 Subject: [Pythonmac-SIG] matplotlib problems In-Reply-To: <871x4zuxwq.fsf@peds-pc311.bsd.uchicago.edu> References: <871x4zuxwq.fsf@peds-pc311.bsd.uchicago.edu> Message-ID: <901ED9D3-B135-495F-AD86-5EA79994919D@samuelsmith.org> Thanks that did it. I did find a verbose.level in the .matplotlibrc file which I set to helpful and that worked On 12 Aug, 2005, at 06:45, John Hunter wrote: > You did everything right, but for the most recent version. In > matplotlib 0.83, we renamed ~/.matplotlibrc to > ~/.matplotlib/matplotlibrc. Since you are using 0.82, it is looking > for the old file name, and not finding it, falling back on the > defaults. > > Rename your rc file back to ~/.matplotlibrc (until the next upgrade) > an you should be good to go. Run your script with --verbose-helpful > for extra diagnostic information, like which rc file is being loaded. > ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** From smithsm at samuelsmith.org Fri Aug 12 17:09:19 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Fri, 12 Aug 2005 09:09:19 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> References: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> Message-ID: <16DD70CF-47C5-4C5F-A0FF-4F1130D8BED2@samuelsmith.org> On 12 Aug, 2005, at 03:01, Bill Northcott wrote: > On 12/08/2005, at 4:26 AM, Brian Granger wrote: > >> What version of gcc are you using? I have not had any luck >> getting scipy and its dependencies working with gcc 4.0. >> >> Maybe this has changed? Has anyone had success with gcc 4.0 yet? >> >> If you need to change the default version of gcc on Mac OS X use >> the command: >> >> sudo gcc_select 3.3 >> > > This is probably the solution. > Why? > because you can only use g77 with gcc-3.x OR gfortran with > gcc-4.x. You cannot use g77 with gcc-4 they are incompatible. > So if you have a Python/R/Perl/you-name-it binary containing > Fortran objects built with g77 you cannot extend it with code > compiled with gcc-4. This is true on any platform. Why doesn't the setup.py script for scipy take care of this detail? Or how do I configure setup.py to take care of this dependency. So to be specific I select gcc 3.3 before I run scipy's setup.py build and setup.py install and then I set it back. The mac scipy install instructions list the following packages that scipy is dependent on. Some are downloadable binaries some you have to build. Do I need to redo all these packages with gcc 3.3 or are some of them smart enough to select the correct compiler? Numeric Numarray G77 FFTW F2PY GNUPlot AquaTerm basically I have to start over? Is DarwinPorts smart enough to use the correct compiler? Thanks for you help do you have documented how you set up scipy. I am trying to figure out what approach to use. I wanted to use framework python because I wanted to do some mac gui work as well but may I should just cut my losses and use DarwinPorts for scientific stuff. Any good reasons not to? > > The issue arises mainly on Tiger because it does not have an > included Fortran compiler and out of the box it defaults to using > gcc-4. Binary packages are shipped built with g77 and sometimes > including g77. These are bound to fail on Tiger unless the default > compiler is changed using the gcc_select command as above. > > I have built Scipy with gcc-4, but you must use gfortran to compile > all the Fortran code for that to work. > > I do wish someone on Python, R-project or some other web site would > document this issue. I must have posted at least twenty messages > saying the same thing. > > Bill Northcott > ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** From smithsm at samuelsmith.org Fri Aug 12 17:14:37 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Fri, 12 Aug 2005 09:14:37 -0600 Subject: [Pythonmac-SIG] Framework Installation Strategy, Package Manager? In-Reply-To: References: <266589E1B9392B4C9195CC25A07C73B90183CFCF@usa0300ms04.na.xerox.net> Message-ID: Only 8 packages show up in python install manager for macpython 2.4. Is this because nobody has time to maintain the database or has support gone away from the package manager because nobody liked it? Why isn't package manager being used for all the packages on http:// pythonmac.org/packages/ and http://undefined.org/python/#python? In general if I build a package from source and use framework python 2.4.1, then setup.py will do the right thing? Or are there extra tricks that I have to worry about. I was attracted to Bob's set of apple installer packages but have gotten bitten a couple of times because not the latest version etc. I am trying to figure out what my python installation and maintenance strategy should be. I have used Python mainly for cgi scripts and network utilities and only needed the standard library. But now I have a project where I plan to use it for a scientific research project that needs the graphics plotting etc. This requires more than the stock python. I also plan to write a gui app interface using the mac toolbox so I concluded that i should be using the framework build. But it seems that there is a lot of extra work to get all the scientific tools running under framework build. Anybody have any suggestions why or why not persist with framework. Apparently some people have built all these tools on framework build, I just can't find any updated documentation on the process. Anybody want to share their configuration and why? From dangoor at gmail.com Fri Aug 12 17:16:50 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Fri, 12 Aug 2005 11:16:50 -0400 Subject: [Pythonmac-SIG] py2app trying to create a symlink that already exists Message-ID: <3f085ecd05081208161fa06e89@mail.gmail.com> I believe I ran into this before, but I didn't document it properly so I'm doomed to repeat it. (I'll document it this time!) I have an app that is running fine (and py2app is building it fine) on Tiger. I'm working on getting a Panther build put together. On both Tiger and Panther, I'm using Bob's unofficial official Python 2.4.1. I'm using PyObjC 1.3.7 (downloaded the package for Panther, built from source for Tiger), and the included py2app (0.2.1). I'm using the embedded version of the Firebird database, and that is where the problem is coming in. I built Firebird myself on both Tiger and Panther. I've looked at /Library/Frameworks/Firebird.framework in both and they look the same. So, now to what the problem is... Looking through py2app's output, the first framework copied is Firebird.framework, picked up as a dependency of kinterbasdb. As py2app continues copying stuff over, it eventually hits linking /Users/tazzzzz/projects/app/dist/myapp.app/Contents/Frameworks/Firebird.framework/Firebird -> Versions/Current/Firebird which runs into this problem: File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/py2app/build_app.py", line 1064, in copy_tree condition=condition) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/py2app/util.py", line 351, in copy_tree os.symlink(link_dest, dst_name) OSError: [Errno 17] File exists > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app/py2app/util.py(351)copy_tree() Look at what's in myapp.app, the Firebird.framework in there doesn't have a Versions/Current yet. It does, however, have a Firebird at the top of the framework directory, which is not a symlink but the real file. In my Tiger build, that Firebird at the top is a symlink to Versions/Current/Firebird, which is also the case in /Library/Frameworks/Firebird.framework on both machines. I seem to remember seeing this problem when I first started using Firebird, and I really wish I had written down how the problem was solved. I did a clean checkout and build under Tiger to ensure that the two OSes are really running the same things. Any ideas? Thanks! Kevin From Benjamin.Schollnick at xerox.com Fri Aug 12 19:07:25 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Fri, 12 Aug 2005 13:07:25 -0400 Subject: [Pythonmac-SIG] Py2app & wxPython problem... Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFD1@usa0300ms04.na.xerox.net> > You're going to need to upgrade to 2.4.1 if you want to be able to > build backwards and forwards compatible stuff. The /System releases > are only really suitable if your target is that exact release of Mac > OS X. Well... It is working at this point now.... After upgrading to 10.4.1..... But the distribution is huge (!!) roughly 40 Mb.... I'll take a look into slimming it down in a few days... And it'll be on a compressed disk image which may help trim it down more... I ran into a small problem which I had not realized... 10.3.x & 10.4.x have slightly different "layouts" in their XML results for the system profiler. Other than that, it's been fairly smooth.... - Benjamin From smithsm at samuelsmith.org Fri Aug 12 19:33:08 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Fri, 12 Aug 2005 11:33:08 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <7DBA349F-5AA0-49D7-B12E-AB2CA2D7B620@samuelsmith.org> References: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> <7DBA349F-5AA0-49D7-B12E-AB2CA2D7B620@samuelsmith.org> Message-ID: The gcc 3.3 issue was the key. Thanks for help. Below is a list of what I did. Could someone take these directions and create a pkg installer for scipy? So others can just double click to install? ****************** scipy installation instruction for framework python 2.4.1 on OS X 10.4.2 Get the following files http://pythonmac.org/packages/Numeric-23.7-py2.4-macosx10.3.zip http://pythonmac.org/packages/numarray-1.1.1-py2.4-macosx10.3.zip http://prdownloads.sf.net/hpc/g77v3.4-bin.tar.gz?download http://www.fftw.org/fftw-2.1.5.tar.gz http://prdownloads.sourceforge.net/aquaterm/AquaTerm1.0.b2.dmg http://prdownloads.sourceforge.net/gnuplot/Gnuplot-4.0.0.dmg http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz Make sure framework python 2.41 is default python by putting /usr/local/bin at the front of shell PATH variable Install Numeric 23.7 from pkg installer Install numarray 1.1.1 from pkg installer Set default gcc compiler to version 3.3 this must be so for compatibility with g77 fortran compiler used in scipy > sudo gcc_select 3.3 Install g77 3.4 > sudo tar -xvf g77v3.4-bin.tar -C / Install fftw 2.1.5 > tar -xvzf fftw-2.1.5.tar.gz (or tar -xvf if it has already been gunzipped) > cd fftw* > ./configure > make > sudo make install Install F2PY 2.1.5 > tar -xvzf F2PY-2-latest.tar.gz > cd F2PY* > sudo python setup.py install Install AquaTerm 1.0b2 from pkg installer Install GnuPlot 4.0 from pkg installer Untar the scipy_cvs_2005_07_29.tgx cd to the scipy directory Build and Install scipy > python setup.py build > sudo python setup.py install Test >python >>> import scipy >>> scipy.test() Expect that some tests will fail. The test function should complete OK. ******************************************** From Chris.Barker at noaa.gov Fri Aug 12 21:47:37 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Fri, 12 Aug 2005 12:47:37 -0700 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> <7DBA349F-5AA0-49D7-B12E-AB2CA2D7B620@samuelsmith.org> Message-ID: <42FCFCD9.1070002@noaa.gov> Samuel M. Smith wrote: > The gcc 3.3 issue was the key. Thanks for help. > > Below is a list of what I did. > > Could someone take these directions and create a pkg installer for > scipy? So others can just double click to install? Great idea..why not you? py2app bdist_mpkg is fabulous. If you can run: python setup.py build then you should be able to run bdist_mpkg and have it build a package for you. The trick is shared libs. When I did this for matplotlib, I ended up making sure the libs it needed were statically linked. -good luck! > ****************** > scipy installation instruction for framework python 2.4.1 on OS X 10.4.2 > > Get the following files > http://pythonmac.org/packages/Numeric-23.7-py2.4-macosx10.3.zip > http://pythonmac.org/packages/numarray-1.1.1-py2.4-macosx10.3.zip > http://prdownloads.sf.net/hpc/g77v3.4-bin.tar.gz?download > http://www.fftw.org/fftw-2.1.5.tar.gz > http://prdownloads.sourceforge.net/aquaterm/AquaTerm1.0.b2.dmg > http://prdownloads.sourceforge.net/gnuplot/Gnuplot-4.0.0.dmg > http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz > > Make sure framework python 2.41 is default python by putting > /usr/local/bin at the front of shell PATH variable > > Install Numeric 23.7 from pkg installer > Install numarray 1.1.1 from pkg installer > > Set default gcc compiler to version 3.3 this must be so for > compatibility with g77 fortran compiler used in scipy > > > sudo gcc_select 3.3 > > Install g77 3.4 > > sudo tar -xvf g77v3.4-bin.tar -C / > > Install fftw 2.1.5 > > > tar -xvzf fftw-2.1.5.tar.gz (or tar -xvf if it has already been > gunzipped) > > cd fftw* > > ./configure > > make > > sudo make install > > > Install F2PY 2.1.5 > > tar -xvzf F2PY-2-latest.tar.gz > > cd F2PY* > > sudo python setup.py install > > Install AquaTerm 1.0b2 from pkg installer > > Install GnuPlot 4.0 from pkg installer > > Untar the scipy_cvs_2005_07_29.tgx > cd to the scipy directory > Build and Install scipy > > > python setup.py build > > sudo python setup.py install > > Test > >python > >>> import scipy > >>> scipy.test() > > Expect that some tests will fail. The test function should complete OK. > > ******************************************** > > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From bob at redivi.com Sat Aug 13 01:59:14 2005 From: bob at redivi.com (Bob Ippolito) Date: Fri, 12 Aug 2005 13:59:14 -1000 Subject: [Pythonmac-SIG] Py2app & wxPython problem... In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFD1@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFD1@usa0300ms04.na.xerox.net> Message-ID: <9BEE3F92-955A-4DF1-ACF6-D190AF332568@redivi.com> On Aug 12, 2005, at 7:07 AM, Schollnick, Benjamin wrote: >> You're going to need to upgrade to 2.4.1 if you want to be able to >> build backwards and forwards compatible stuff. The /System releases >> are only really suitable if your target is that exact release of Mac >> OS X. >> > > Well... It is working at this point now.... > > After upgrading to 10.4.1..... But the distribution is huge (!!) > roughly 40 Mb.... I'll take a look into slimming it down in a few > days... Use PyObjC instead of wxPython and it will get a lot smaller ;) -bob From jason at enterpriseutilities.com Sat Aug 13 04:50:26 2005 From: jason at enterpriseutilities.com (Jason Slack) Date: Fri, 12 Aug 2005 22:50:26 -0400 Subject: [Pythonmac-SIG] PythonIDE crashes Message-ID: <0AB5CE96-B39A-47CD-A9C3-2FB31A6E78BC@enterpriseutilities.com> Hello All, I have installed MacPython on my ibook running Tiger. The PythonIDE crashes on startup with the following thrown to the console: ===== Friday, August 12, 2005 10:40:06 PM America/New_York ===== Traceback (most recent call last): File "/Applications/MacPython-2.3/PythonIDE.app/Contents/Resources/ PythonIDE.py", line 58, in ? import PythonIDEMain as _PythonIDEMain File "/Applications/MacPython-2.3/PythonIDE.app/Contents/Resources/ PythonIDEMain.py", line 7, in ? import W File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/ Tools/IDE/W.py", line 7, in ? from Wtext import * File "/System/Library/Frameworks/Python.framework/Versions/2.3/Mac/ Tools/IDE/Wtext.py", line 6, in ? import waste ImportError: No module named waste Any thoughts? -Jason From chairos at gmail.com Sat Aug 13 09:10:45 2005 From: chairos at gmail.com (Jon Rosebaugh) Date: Sat, 13 Aug 2005 02:10:45 -0500 Subject: [Pythonmac-SIG] strange behavior with NSArray and python unicode types Message-ID: I have a class used to store data. In order to save and load the data, I convert it into a NSArray as shown below: NSArray.arrayWithArray_([self.Type, self.CreationTime, self.ModificationTime, self.Name, self.Labels, self.Data]) self.Data is a unicode string. For some reason, its value does not get placed in the array. Instead, it's replaced with the empty string. However, if I replace self.Data with str(self.Data), it works. The PyObjC documentation indicates that both normal strings and unicode strings are subclasses of NSString, I'm quite baffled why one works and the other doesn't. I'd really like to be able to save the unicode data, so can someone please explain this to me? From bob at redivi.com Sat Aug 13 09:54:00 2005 From: bob at redivi.com (Bob Ippolito) Date: Fri, 12 Aug 2005 21:54:00 -1000 Subject: [Pythonmac-SIG] strange behavior with NSArray and python unicode types In-Reply-To: References: Message-ID: <45D6C0F0-9425-49AD-BD88-F3B22295BE9A@redivi.com> On Aug 12, 2005, at 9:10 PM, Jon Rosebaugh wrote: > I have a class used to store data. In order to save and load the data, > I convert it into a NSArray as shown below: > > NSArray.arrayWithArray_([self.Type, self.CreationTime, > self.ModificationTime, self.Name, self.Labels, self.Data]) > > self.Data is a unicode string. For some reason, its value does not get > placed in the array. Instead, it's replaced with the empty string. > However, if I replace self.Data with str(self.Data), it works. The > PyObjC documentation indicates that both normal strings and unicode > strings are subclasses of NSString, I'm quite baffled why one works > and the other doesn't. I'd really like to be able to save the unicode > data, so can someone please explain this to me? That shouldn't happen, I doubt that it's actually the situation you describe. Post something reproducible and someone will look at it. -bob From chairos at gmail.com Sat Aug 13 10:52:17 2005 From: chairos at gmail.com (Jon Rosebaugh) Date: Sat, 13 Aug 2005 03:52:17 -0500 Subject: [Pythonmac-SIG] strange behavior with NSArray and python unicode types In-Reply-To: <45D6C0F0-9425-49AD-BD88-F3B22295BE9A@redivi.com> References: <45D6C0F0-9425-49AD-BD88-F3B22295BE9A@redivi.com> Message-ID: On 8/13/05, Bob Ippolito wrote: > > That shouldn't happen, I doubt that it's actually the situation you > describe. Post something reproducible and someone will look at it. You're right, it wasn't the problem; I'm kinda ashamed that I didn't notice it now, because the self.Name was a unicode string too, and it worked fine. Turns out that self.Data was a objc.pyobjc_unicode object, since it had gone through the bridge and back. Sorry to trouble you. From wsanchez at wsanchez.net Sat Aug 13 18:08:14 2005 From: wsanchez at wsanchez.net (=?ISO-8859-1?Q?Wilfredo_S=E1nchez_Vega?=) Date: Sat, 13 Aug 2005 09:08:14 -0700 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <22758E3B-FCE7-4314-9154-3C6BA22EFD70@redivi.com> References: <22758E3B-FCE7-4314-9154-3C6BA22EFD70@redivi.com> Message-ID: <00AF73E1-801D-45BF-B38F-3F0D71F329CB@wsanchez.net> Non-standard how? The implementation in OS X is written and maintained by the folks at M.I.T. Information Systems. -wsv On Aug 5, 2005, at 7:05 PM, Bob Ippolito wrote: > The generic way to do the authentication is just to use LDAP, since > Active Directory is just a jazzed up LDAP database server with a non- > standard Kerberos implementation. From bob at redivi.com Sat Aug 13 18:14:13 2005 From: bob at redivi.com (Bob Ippolito) Date: Sat, 13 Aug 2005 06:14:13 -1000 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <00AF73E1-801D-45BF-B38F-3F0D71F329CB@wsanchez.net> References: <22758E3B-FCE7-4314-9154-3C6BA22EFD70@redivi.com> <00AF73E1-801D-45BF-B38F-3F0D71F329CB@wsanchez.net> Message-ID: <1886F7BA-729A-4497-A622-C5AFDCD8E11B@redivi.com> That's nice, but since when does the implementation of Active Directory have anything to do with OS X? :) -bob On Aug 13, 2005, at 6:08 AM, Wilfredo S?nchez Vega wrote: > Non-standard how? The implementation in OS X is written and > maintained by the folks at M.I.T. Information Systems. > > -wsv > > > On Aug 5, 2005, at 7:05 PM, Bob Ippolito wrote: > > >> The generic way to do the authentication is just to use LDAP, since >> Active Directory is just a jazzed up LDAP database server with a non- >> standard Kerberos implementation. >> > > From wsanchez at wsanchez.net Sat Aug 13 19:43:17 2005 From: wsanchez at wsanchez.net (=?ISO-8859-1?Q?Wilfredo_S=E1nchez_Vega?=) Date: Sat, 13 Aug 2005 10:43:17 -0700 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <1886F7BA-729A-4497-A622-C5AFDCD8E11B@redivi.com> References: <22758E3B-FCE7-4314-9154-3C6BA22EFD70@redivi.com> <00AF73E1-801D-45BF-B38F-3F0D71F329CB@wsanchez.net> <1886F7BA-729A-4497-A622-C5AFDCD8E11B@redivi.com> Message-ID: <474F8DA7-5F77-4100-9046-9A25AC7CC6B1@wsanchez.net> You said non-standard kerberos implementation. I'm wondering what's non-standard about it; I am under the impression it was stock MIT kerberos. -wsv On Aug 13, 2005, at 9:14 AM, Bob Ippolito wrote: > That's nice, but since when does the implementation of Active > Directory have anything to do with OS X? :) > > -bob > > On Aug 13, 2005, at 6:08 AM, Wilfredo S?nchez Vega wrote: > > >> Non-standard how? The implementation in OS X is written and >> maintained by the folks at M.I.T. Information Systems. >> >> -wsv >> >> >> On Aug 5, 2005, at 7:05 PM, Bob Ippolito wrote: >> >> >> >>> The generic way to do the authentication is just to use LDAP, since >>> Active Directory is just a jazzed up LDAP database server with a >>> non- >>> standard Kerberos implementation. >>> >>> >> >> > From w.northcott at unsw.edu.au Sun Aug 14 01:00:56 2005 From: w.northcott at unsw.edu.au (Bill Northcott) Date: Sun, 14 Aug 2005 09:00:56 +1000 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: References: Message-ID: <9DDB7CDD-664A-4283-8414-BADC9337E076@unsw.edu.au> On 12/08/2005, at 4:26 AM, Samuel M.Smith wrote: > And now setup.py build still exits with an error in the same place > but the error is different > > collect2: ld returned 1 exit status > /usr/bin/ld: Undefined symbols: > _fprintf$LDBLStub > _sprintf$LDBLStub > collect2: ld returned 1 exit status See my email of 24 July. There is a basic problem with the Python build system because it uses the system libtool to build libraries. This is fragile. The 'right way' to build libraries is to use the gcc compiler driver because this automatically ensures that the appropriate system libraries get linked. The compiler driver can also do stuff like multiple invocations of libtool, ld and lipo to build fat multi- architecture binaries. Bob said he accepted the patch, but I can't see it in the CVS. Bill From ronaldoussoren at mac.com Sun Aug 14 12:08:07 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Sun, 14 Aug 2005 12:08:07 +0200 Subject: [Pythonmac-SIG] strange behavior with NSArray and python unicode types In-Reply-To: References: <45D6C0F0-9425-49AD-BD88-F3B22295BE9A@redivi.com> Message-ID: On 13-aug-2005, at 10:52, Jon Rosebaugh wrote: > On 8/13/05, Bob Ippolito wrote: > >> >> That shouldn't happen, I doubt that it's actually the situation you >> describe. Post something reproducible and someone will look at it. >> > > You're right, it wasn't the problem; I'm kinda ashamed that I didn't > notice it now, because the self.Name was a unicode string too, and it > worked fine. Turns out that self.Data was a objc.pyobjc_unicode > object, since it had gone through the bridge and back. Sorry to > trouble you. That still sounds fishy. If I understand you correctly you have a pyobjc_unicode object that is not an empty string (that is "theString != ''"), but is an empty string when converted back to Objective-C. Could you elaborate on what you're doing? Unless the Objective-C strings is an NSMutableString and someone is mutating it behind your back the value in python should be the same as the value in ObjC. BTW. str(self.Data) is very likely wrong when isinstance(self.Data, unicode), the former will raise an exception when the self.Data contains non-ASCII characters. Ronald > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From ronaldoussoren at mac.com Sun Aug 14 12:10:51 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Sun, 14 Aug 2005 12:10:51 +0200 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <474F8DA7-5F77-4100-9046-9A25AC7CC6B1@wsanchez.net> References: <22758E3B-FCE7-4314-9154-3C6BA22EFD70@redivi.com> <00AF73E1-801D-45BF-B38F-3F0D71F329CB@wsanchez.net> <1886F7BA-729A-4497-A622-C5AFDCD8E11B@redivi.com> <474F8DA7-5F77-4100-9046-9A25AC7CC6B1@wsanchez.net> Message-ID: On 13-aug-2005, at 19:43, Wilfredo S?nchez Vega wrote: > You said non-standard kerberos implementation. I'm wondering > what's non-standard about it; I am under the impression it was stock > MIT kerberos. > Active Directory uses the kerberos with some non-standard extensions. IIRC they use this to stuff authorisation information inside a ticket. BTW. Active Directory != Open Directory, looking at an OSX system won't teach you a lot about Active Directory :-) > -wsv > > > On Aug 13, 2005, at 9:14 AM, Bob Ippolito wrote: > > >> That's nice, but since when does the implementation of Active >> Directory have anything to do with OS X? :) >> >> -bob >> >> On Aug 13, 2005, at 6:08 AM, Wilfredo S?nchez Vega wrote: >> >> >> >>> Non-standard how? The implementation in OS X is written and >>> maintained by the folks at M.I.T. Information Systems. >>> >>> -wsv >>> >>> >>> On Aug 5, 2005, at 7:05 PM, Bob Ippolito wrote: >>> >>> >>> >>> >>>> The generic way to do the authentication is just to use LDAP, since >>>> Active Directory is just a jazzed up LDAP database server with a >>>> non- >>>> standard Kerberos implementation. >>>> >>>> >>>> >>> >>> >>> >> >> > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From brad.allen at omsdal.com Sun Aug 14 17:34:18 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Sun, 14 Aug 2005 10:34:18 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: Message-ID: Wilfredo S?nchez Vega wrote on 08/14/2005 05:10:51 AM: > > On 13-aug-2005, at 19:43, Wilfredo S?nchez Vega wrote: > > > You said non-standard kerberos implementation. I'm wondering > > what's non-standard about it; I am under the impression it was stock > > MIT kerberos. > > > Active Directory uses the kerberos with some non-standard extensions. > IIRC they use this to stuff authorisation information inside a ticket. > > BTW. Active Directory != Open Directory, looking at an OSX system > won't teach you a lot about Active Directory :-) I'm still stuck on this, which means the Mac client of my app is dead in the water. I was able to get AD authentication working on Windows using win23com.client, which of course doesn't exist for Mac. Because of the difficulty in getting python-ldap to build on Mac OS 10.4 (nobody on that mailing list has responded to my plea for help), I'm just about ready to give up on that approach. That leaves me with finding and hiring a Mac programmer who knows something about AD or LDAP, or using subprocess.py to call Apple's built-in OpenLDAP (which seems like an awkward approach). At this point, all I'm trying to do is get the client GUI app to authenticate with AD. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050814/ee11e8e5/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050814/ee11e8e5/attachment-0001.jpeg From Henning.Ramm at mediapro-gmbh.de Sun Aug 14 18:22:45 2005 From: Henning.Ramm at mediapro-gmbh.de (Henning.Ramm@mediapro-gmbh.de) Date: Sun, 14 Aug 2005 18:22:45 +0200 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python Message-ID: > Because of the difficulty in getting python-ldap to build on Mac OS 10.4 Perhaps this helps: http://twistedmatrix.com/users/tv/ldap-intro/ldap-intro.html http://tv.debian.net/software/ldaptor/ (based on twisted, see http://twistedmatrix.com) Best regards, Henning Hraban Ramm S?dkurier Medienhaus / MediaPro Support/Admin/Development Dept. From ronaldoussoren at mac.com Sun Aug 14 19:12:17 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Sun, 14 Aug 2005 19:12:17 +0200 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: References: Message-ID: <4E82086C-001C-42BC-8B85-462C93122911@mac.com> On 14-aug-2005, at 17:34, brad.allen at omsdal.com wrote: > > Wilfredo S?nchez Vega wrote on 08/14/2005 05:10:51 AM: > > > > > On 13-aug-2005, at 19:43, Wilfredo S?nchez Vega wrote: > > > > > You said non-standard kerberos implementation. I'm wondering > > > what's non-standard about it; I am under the impression it was > stock > > > MIT kerberos. > > > > > Active Directory uses the kerberos with some non-standard > extensions. > > IIRC they use this to stuff authorisation information inside a > ticket. > > > > BTW. Active Directory != Open Directory, looking at an OSX system > > won't teach you a lot about Active Directory :-) > > > I'm still stuck on this, which means the Mac client of my app > is dead in the water. I was able to get AD authentication working > on Windows using win23com.client, which of course doesn't exist for > Mac. > > Because of the difficulty in getting python-ldap to build on Mac OS > 10.4 > (nobody on that mailing list has responded to my plea for help), I'm > just about ready to give up on that approach. That leaves me with > finding and hiring a Mac programmer who knows something about AD or > LDAP, or > using subprocess.py to call Apple's built-in OpenLDAP (which seems > like an awkward approach). I could build python-ldap 2.0.9 after I removed 'sasl2' from the 'libs' line in setup.cfg, OSX doesn't seem to have the header files needed for sasl support in python-ldap. Ronald From eichin at metacarta.com Sun Aug 14 19:17:31 2005 From: eichin at metacarta.com (eichin@metacarta.com) Date: 14 Aug 2005 13:17:31 -0400 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: References: Message-ID: I suspect the original mention of LDAP was a bit of a distraction - that's only useful for authORIZATION (ie. getting lists of groups and acls that a user has and *deciding* what they can do, once you know who they are - it's the knowing who they are part that is authENTICATION, which is done with kerberos.) What the original left out was: how do the client and server talk to each other? The most common case is for the server to be HTTP and the authentication to be "Negotiate", which ends up either passing GSSAPI tokens or falling back to NTLM (which is, hopefully, disabled.) If that's the protocol you care about, you can look at how firefox implements it (Safari still doesn't seem to, though it is *supposed* to in tiger I've yet to get it to work - and it probably wouldn't help you as much as the firefox code does.) If it isn't, then what matters is what your protocol actually does. It doesn't make any sense to me that the *client* would do ldap authorization lookups, simply because it could just as easily "make up answers" and present them to the server - the client is on the wrong side of the trust boundary... From adriano at euma.com Mon Aug 15 01:14:12 2005 From: adriano at euma.com (Adriano) Date: Mon, 15 Aug 2005 01:14:12 +0200 Subject: [Pythonmac-SIG] wxPython apps keep crashing on me :-( Message-ID: Hello all, I have some problems and some questions about some wxPython based apps I'd like to use. They are Boa Constructor, wxGlade and probably also XRCed I downloaded the prepackaged version by Kevin Walzer and I have the first question for him (I hope he's reading). The package that contained Spe-OsX, wxGlade and XRCed (I think) was on the WordTech site and it seems it's not there any longer. Are they ? What happened ? The problem I have is that I try to follow the tutorials, the one for wxGlade and the one for Boa, and they keep crashing :-( I start again and repeat from scratch and they crash again at a different step ! I'm on an ibook with MacOs X 10.4.1. Now, I have two (2) versions of wxPython on my machine. The one from Apple and it's the 2.5.x and another one I installed (I don't remember where I got it) and it's 2.6.1.0 If I open the "About..." window in wxGlade I read it's wxGlade 0.4cvs, on Python 2.4.1 (I installed it, don't remember where I got it) and wxPython 2.6.1.0 Another question: how can I choose which python and which wxPython should they run with? If I launch wxGlade it chooses Python 2.4.1 which has wxPython 2.6.x in its path. I'd like to try with Python 2.3 that has wxPython 2.5.x in its path. How can I manage this ? One more question: can anyone discuss my idea of trying with Python 2.3 and wxPython 2.5.x ? Does anyone know any reason why this test is going to fail anyway ? I have a strong suspect that it's going to fail :-( Could it help if I copy and paste a stacktrace of one of those crashes ? Ok this is a good bunch of questions and problems ;-) Thanks SO much for any help Bye Catonano P.S. I repeated the Boa tutorial and reached the phase in which I should add a menubar to my app. It ALWAYS crash at that point. I copied and pasted the crash report. I think it could be useful to who can read it. Thanks so much Date/Time: 2005-08-15 01:05:24.983 +0200 OS Version: 10.4.2 (Build 8C46) Report Version: 3 Command: Python Path: /Users/adri/Desktop/SPE-OSX/Boa Constructor.app/Contents/MacOS/Python Parent: WindowServer [63] Version: ??? (???) PID: 328 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: 0 libwx_macud-2.6.0.dylib 0x010fde68 wxWindow::GetClientAreaOrigin() const + 44 (icplusplus.c:27) 1 _core_.so 0x00687d08 wxGBSpan_helper(_object*, wxGBSpan**) + 276040 2 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 3 org.python.python 0x1007ce34 ext_do_call + 972 (ceval.c:3824) 4 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 (ceval.c:2206) 5 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 6 org.python.python 0x1007c8cc fast_function + 356 (ceval.c:3644) 7 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 8 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 9 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 10 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 11 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 12 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 13 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 14 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 15 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 16 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 17 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 18 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 19 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 20 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 21 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 22 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 23 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 24 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 25 org.python.python 0x1007c8cc fast_function + 356 (ceval.c:3644) 26 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 27 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 28 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 29 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 30 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 31 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 32 org.python.python 0x10026274 function_call + 344 (funcobject.c:548) 33 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 34 org.python.python 0x10015a88 instancemethod_call + 796 (classobject.c:2432) 35 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 36 org.python.python 0x1007c26c PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) 37 _core_.so 0x0063f8f4 wxPyCallback::EventThunker(wxEvent&) + 416 38 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 39 libwx_macud-2.6.0.dylib 0x010941e4 wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 160 (icplusplus.c:27) 40 libwx_macud-2.6.0.dylib 0x01093de8 wxEvtHandler::ProcessEvent(wxEvent&) + 208 (icplusplus.c:27) 41 libwx_macud-2.6.0.dylib 0x01110b5c wxListMainWindow::SendNotify(unsigned long, int, wxPoint) + 504 (icplusplus.c:27) 42 libwx_macud-2.6.0.dylib 0x0110f998 wxListMainWindow::HighlightLine(unsigned long, bool) + 356 (icplusplus.c:27) 43 libwx_macud-2.6.0.dylib 0x01114bfc wxListMainWindow::SetItemState(long, long, long) + 452 (icplusplus.c:27) 44 libwx_macud-2.6.0.dylib 0x01118a3c wxGenericListCtrl::SetItemState(long, long, long) + 20 (icplusplus.c:27) 45 _controls_.so 0x022a2824 wxPyControl::base_HasTransparentBackground() + 359928 46 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 47 org.python.python 0x1007ce34 ext_do_call + 972 (ceval.c:3824) 48 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 (ceval.c:2206) 49 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 50 org.python.python 0x1007c8cc fast_function + 356 (ceval.c:3644) 51 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 52 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 53 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 54 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 55 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 56 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 57 org.python.python 0x10026274 function_call + 344 (funcobject.c:548) 58 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 59 org.python.python 0x10015a88 instancemethod_call + 796 (classobject.c:2432) 60 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 61 org.python.python 0x1007c26c PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) 62 _core_.so 0x0063f8f4 wxPyCallback::EventThunker(wxEvent&) + 416 63 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 64 libwx_macud-2.6.0.dylib 0x010941e4 wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 160 (icplusplus.c:27) 65 libwx_macud-2.6.0.dylib 0x01093de8 wxEvtHandler::ProcessEvent(wxEvent&) + 208 (icplusplus.c:27) 66 libwx_macud-2.6.0.dylib 0x011121b4 wxListMainWindow::OnMouse(wxMouseEvent&) + 72 (icplusplus.c:27) 67 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 68 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 69 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 70 libwx_macud-2.6.0.dylib 0x01093e40 wxEvtHandler::ProcessEvent(wxEvent&) + 296 (icplusplus.c:27) 71 libwx_macud-2.6.0.dylib 0x011ae604 wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 48 (icplusplus.c:27) 72 libwx_macud-2.6.0.dylib 0x010f703c wxMacTopLevelMouseEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 976 (icplusplus.c:27) 73 libwx_macud-2.6.0.dylib 0x010f7dc4 wxMacTopLevelEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 196 (icplusplus.c:27) 74 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 75 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 76 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40 77 com.apple.HIToolbox 0x931b5530 HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned short) + 236 78 com.apple.HIToolbox 0x931b4aa8 HandleMouseEvent(OpaqueEventRef*) + 368 79 com.apple.HIToolbox 0x9312923c ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 496 80 com.apple.HIToolbox 0x93122c44 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1284 81 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 82 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40 83 libwx_macud-2.6.0.dylib 0x010b04f0 wxApp::MacHandleOneEvent(void*) + 44 (icplusplus.c:27) 84 libwx_macud-2.6.0.dylib 0x010b0488 wxApp::MacDoOneEvent() + 156 (icplusplus.c:27) 85 libwx_macud-2.6.0.dylib 0x010b0020 wxApp::MainLoop() + 36 (icplusplus.c:27) 86 _core_.so 0x0063ba4c wxPyApp::MainLoop() + 84 87 _core_.so 0x0067ed74 wxGBSpan_helper(_object*, wxGBSpan**) + 239284 88 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 89 org.python.python 0x1007ce34 ext_do_call + 972 (ceval.c:3824) 90 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 (ceval.c:2206) 91 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 92 org.python.python 0x10026274 function_call + 344 (funcobject.c:548) 93 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 94 org.python.python 0x10015a88 instancemethod_call + 796 (classobject.c:2432) 95 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 96 org.python.python 0x1007c9e4 do_call + 136 (ceval.c:3755) 97 org.python.python 0x1007c6dc call_function + 1068 (ceval.c:3572) 98 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 99 org.python.python 0x1007c83c fast_function + 212 (ceval.c:3631) 100 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 101 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 102 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 103 org.python.python 0x1007c8cc fast_function + 356 (ceval.c:3644) 104 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 105 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 106 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 107 org.python.python 0x1007e678 PyEval_EvalCode + 48 (ceval.c:484) 108 org.python.python 0x100b2ee0 run_node + 76 (pythonrun.c:1265) 109 org.python.python 0x10070af4 builtin_execfile + 520 (bltinmodule.c:623) 110 org.python.python 0x1007c5ec call_function + 828 (ceval.c:3547) 111 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 112 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 113 org.python.python 0x1007e678 PyEval_EvalCode + 48 (ceval.c:484) 114 org.python.python 0x100b2ee0 run_node + 76 (pythonrun.c:1265) 115 org.python.python 0x100b266c PyRun_SimpleFileExFlags + 592 (pythonrun.c:863) 116 org.python.python 0x100bf640 Py_Main + 2596 (main.c:484) 117 Python 0x000018d0 0x1000 + 2256 118 dyld 0x8fe01048 _dyld_start + 60 Thread 1: 0 libSystem.B.dylib 0x9001efec select + 12 1 select.so 0x050e65e8 initselect + 688 2 org.python.python 0x1007c5ec call_function + 828 (ceval.c:3547) 3 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 4 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 5 org.python.python 0x1007c8cc fast_function + 356 (ceval.c:3644) 6 org.python.python 0x1007c6c4 call_function + 1044 (ceval.c:3568) 7 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 (ceval.c:2163) 8 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 (ceval.c:2730) 9 org.python.python 0x10026274 function_call + 344 (funcobject.c:548) 10 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 11 org.python.python 0x10015a88 instancemethod_call + 796 (classobject.c:2432) 12 org.python.python 0x1000c348 PyObject_Call + 48 (abstract.c:1752) 13 org.python.python 0x1007c26c PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) 14 org.python.python 0x100c1ba4 t_bootstrap + 52 (threadmodule.c:434) 15 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96 Thread 0 crashed with PPC Thread State 64: srr0: 0x00000000010fde68 srr1: 0x000000000000f030 vrsave: 0x0000000000000000 cr: 0x84244244 xer: 0x000000000000000c lr: 0x00000000010fde58 ctr: 0x0000000090b04130 r0: 0x00000000010fde58 r1: 0x00000000bfffb400 r2: 0x00000000bfffb000 r3: 0x0000000000000000 r4: 0x00000000fffffffe r5: 0x00000000044ec084 r6: 0x0000000000000002 r7: 0x000000007fffffff r8: 0x0000000000000001 r9: 0x0000000090681740 r10: 0x0000000090371654 r11: 0x00000000a169accc r12: 0x0000000090b04130 r13: 0x0000000000000000 r14: 0x0000000006061d64 r15: 0x0000000006061d5c r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000006061d64 r20: 0x00000000005358cc r21: 0x0000000000000000 r22: 0x0000000000000000 r23: 0x00000000005a4508 r24: 0x0000000000000000 r25: 0x000000000567a490 r26: 0x0000000000000001 r27: 0x00000000bfffb4d0 r28: 0x00000000003001a0 r29: 0x00000000044ec084 r30: 0x00000000061aba00 r31: 0x0000000000687c2c Binary Images Description: 0x1000 - 0x1fff Python /Users/adri/Desktop/SPE-OSX/Boa Constructor.app/Contents/MacOS/Python 0x8a000 - 0x8bfff cStringIO.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/cStringIO.so 0x99000 - 0x9bfff _locale.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_locale.so 0xa2000 - 0xa6fff _AE.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_AE.so 0xc6000 - 0xc7fff _Evt.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_Evt.so 0xca000 - 0xcbfff MacOS.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/MacOS.so 0xce000 - 0xd0fff time.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/time.so 0xdb000 - 0xdefff struct.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/struct.so 0xe1000 - 0xe4fff strop.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/strop.so 0x245000 - 0x24dfff _File.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_File.so 0x4e1000 - 0x4e5fff _Res.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_Res.so 0x63a000 - 0x700fff _core_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core_.so 0x1008000 - 0x145ffff libwx_macud-2.6.0.dylib /usr/local/lib/wxPython-unicode-2.6.1.0/lib/libwx_macud-2.6.0.dylib 0x2008000 - 0x2075fff _gdi_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_gdi_.so 0x20c1000 - 0x20c3fff com.apple.textencoding.unicode 2.0 /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings 0x2106000 - 0x219cfff _windows_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_windows_.so 0x2246000 - 0x22fafff _controls_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_controls_.so 0x23a6000 - 0x2444fff _misc_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_misc_.so 0x24e2000 - 0x2544fff _stc.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_stc.so 0x2558000 - 0x25fefff libwx_macud_stc-2.6.0.dylib /usr/local/lib/wxPython-unicode-2.6.1.0/lib/libwx_macud_stc-2.6.0.dylib 0x269b000 - 0x26dffff _html.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_html.so 0x44a2000 - 0x44a3fff math.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/math.so 0x44d6000 - 0x44d7fff _random.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_random.so 0x47b4000 - 0x47b6fff binascii.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/binascii.so 0x47b9000 - 0x47bafff fcntl.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/fcntl.so 0x4854000 - 0x485bfff _socket.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_socket.so 0x4861000 - 0x4863fff _ssl.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_ssl.so 0x48a6000 - 0x48a7fff icglue.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/icglue.so 0x48ea000 - 0x48edfff itertools.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/itertools.so 0x48f1000 - 0x48f1fff _bisect.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_bisect.so 0x48f4000 - 0x48f5fff _heapq.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_heapq.so 0x4afa000 - 0x4b13fff _wizard.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_wizard.so 0x4b61000 - 0x4b76fff _calendar.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_calendar.so 0x4b8a000 - 0x4b8afff _weakref.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_weakref.so 0x4b8d000 - 0x4b8ffff operator.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/operator.so 0x4b93000 - 0x4b95fff zlib.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/zlib.so 0x4b99000 - 0x4b9bfff collections.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/collections.so 0x4bde000 - 0x4c3efff _grid.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_grid.so 0x4c95000 - 0x4cdbfff _gizmos.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_gizmos.so 0x4cfe000 - 0x4d1cfff libwx_macud_gizmos-2.6.0.dylib /usr/local/lib/wxPython-unicode-2.6.1.0/lib/libwx_macud_gizmos-2.6.0.dylib 0x5043000 - 0x506cfff pyexpat.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/pyexpat.so 0x5074000 - 0x5074fff grp.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/grp.so 0x5077000 - 0x5077fff pwd.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/pwd.so 0x50e5000 - 0x50e6fff select.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/select.so 0x56bb000 - 0x56cbfff cPickle.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/cPickle.so 0x10000000 - 0x100fbfff org.python.python 2.4a0 (2.2) /Library/Frameworks/Python.framework/Versions/2.4/Python 0x78e00000 - 0x78e07fff libLW8Utils.dylib /System/Library/Printers/Libraries/libLW8Utils.dylib 0x79200000 - 0x7923efff libLW8Converter.dylib /System/Library/Printers/Libraries/libLW8Converter.dylib 0x8fe00000 - 0x8fe51fff dyld 43.1 /usr/lib/dyld 0x90000000 - 0x901a6fff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x901fe000 - 0x90202fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib 0x90204000 - 0x90257fff com.apple.CoreText 1.0.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText 0x90284000 - 0x90335fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x90364000 - 0x9069dfff com.apple.CoreGraphics 1.256.14 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x90728000 - 0x90801fff com.apple.CoreFoundation 6.4.2 (368.11) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x9084a000 - 0x9084afff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x9084c000 - 0x9094efff libicucore.A.dylib /usr/lib/libicucore.A.dylib 0x909a8000 - 0x90a2cfff libobjc.A.dylib /usr/lib/libobjc.A.dylib 0x90a56000 - 0x90acafff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x90ae4000 - 0x90af6fff libauto.dylib /usr/lib/libauto.dylib 0x90afd000 - 0x90dc2fff com.apple.CoreServices.CarbonCore 10.4.1 (611.1) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x90e25000 - 0x90ea5fff com.apple.CoreServices.OSServices 4.0 (4.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x90eef000 - 0x90f2ffff com.apple.CFNetwork 10.4.2 (80) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x90f44000 - 0x90f5cfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore 0x90f6c000 - 0x90feafff com.apple.SearchKit 1.0.3 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x9102f000 - 0x91056fff com.apple.Metadata 1.1 (121.6) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x91066000 - 0x91073fff libz.1.dylib /usr/lib/libz.1.dylib 0x91076000 - 0x91238fff com.apple.security 4.0.1 (223) /System/Library/Frameworks/Security.framework/Versions/A/Security 0x9133a000 - 0x91343fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x9134a000 - 0x91371fff com.apple.SystemConfiguration 1.8.0 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x91384000 - 0x9138cfff libbsm.dylib /usr/lib/libbsm.dylib 0x91390000 - 0x9140efff com.apple.audio.CoreAudio 3.0.1 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x9144c000 - 0x9144cfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x9144e000 - 0x91486fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x914a1000 - 0x9156cfff com.apple.ColorSync 4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x915c1000 - 0x91654fff com.apple.print.framework.PrintCore 4.0 (172.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x9169a000 - 0x91757fff com.apple.QD 3.8.6 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x91795000 - 0x917f3fff com.apple.HIServices 1.5.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x91821000 - 0x91844fff com.apple.LangAnalysis 1.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x91858000 - 0x9187dfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent 0x91890000 - 0x918d1fff com.apple.LaunchServices 10.4.3 (157) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x918ec000 - 0x91900fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x9190e000 - 0x91944fff com.apple.ImageIO.framework 1.0.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x91958000 - 0x91a1afff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib 0x91a66000 - 0x91a7bfff libcups.2.dylib /usr/lib/libcups.2.dylib 0x91a80000 - 0x91a9cfff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x91aa1000 - 0x91b10fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x91b27000 - 0x91b2bfff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x91b2d000 - 0x91b45fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib 0x91b48000 - 0x91b8bfff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x91b92000 - 0x91babfff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x91bb0000 - 0x91bb3fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x91bb5000 - 0x91bb5fff com.apple.Accelerate 1.1.1 (Accelerate 1.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x91bb7000 - 0x91ca1fff com.apple.vImage 2.0 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x91ca9000 - 0x91cc8fff com.apple.Accelerate.vecLib 3.1.1 (vecLib 3.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x91d34000 - 0x91d54fff libmx.A.dylib /usr/lib/libmx.A.dylib 0x91d5a000 - 0x91dbffff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x91dc9000 - 0x91e5bfff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x91e75000 - 0x92405fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x9244d000 - 0x9275dfff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x9278a000 - 0x92815fff com.apple.DesktopServices 1.3 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x92857000 - 0x92a80fff com.apple.Foundation 6.4.1 (567.12) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x92b9e000 - 0x92c7cfff libxml2.2.dylib /usr/lib/libxml2.2.dylib 0x92c9c000 - 0x92d8afff libiconv.2.dylib /usr/lib/libiconv.2.dylib 0x92d9c000 - 0x92dbafff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x92dc5000 - 0x92e1ffff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x92e3d000 - 0x92e3dfff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x92e3f000 - 0x92e53fff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x92e6b000 - 0x92e7bfff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x92e87000 - 0x92e9cfff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x92eae000 - 0x92f35fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x92f49000 - 0x92f54fff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x92f5e000 - 0x92f8bfff com.apple.openscripting 1.2.2 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x92fa5000 - 0x92fb5fff com.apple.print.framework.Print 4.0 (187) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x92fc1000 - 0x93027fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering 0x93058000 - 0x930aafff com.apple.NavigationServices 3.4.1 (3.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices 0x930d6000 - 0x930f3fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound 0x93105000 - 0x93112fff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x9311b000 - 0x9342bfff com.apple.HIToolbox 1.4.2 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x93576000 - 0x93582fff com.apple.opengl 1.4.0 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x93622000 - 0x93622fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x93624000 - 0x93c55fff com.apple.AppKit 6.4.1 (824.1) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x93fe1000 - 0x9404bfff com.apple.CoreData 1.0 (46) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x94083000 - 0x9414dfff com.apple.audio.toolbox.AudioToolbox 1.4.1 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x941a1000 - 0x941a1fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x941a3000 - 0x94302fff com.apple.QuartzCore 1.4.1 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x9434a000 - 0x94387fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib 0x9438f000 - 0x943dafff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x9457a000 - 0x94589fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib 0x94591000 - 0x9459dfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib 0x945e2000 - 0x945f6fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib 0x945fc000 - 0x9485efff com.apple.QuickTime 7.0.1 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime 0x94931000 - 0x94950fff com.apple.vecLib 3.1.1 (vecLib 3.1.1) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib 0x94cd4000 - 0x94d02fff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib 0x959b5000 - 0x95a3ffff com.apple.WebKit 412.6 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit 0x95a99000 - 0x95b7bfff com.apple.JavaScriptCore 1.2 (412.3) /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore 0x95bcf000 - 0x95ebdfff com.apple.WebCore 415.11 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore 0x9603e000 - 0x96067fff libxslt.1.dylib /usr/lib/libxslt.1.dylib 0xeab00000 - 0xeab25fff libConverter.dylib /System/Library/Printers/Libraries/libConverter.dylib Model: PowerBook4,2, BootROM 4.3.2f1, 1 processors, PowerPC 750 (33.11), 600 MHz, 256 MB Graphics: ATY,RageM3, ATY,RageM3, AGP, 8 MB Memory Module: DIMM0/BUILT-IN, 128 MB, built-in, built-in Memory Module: DIMM1/J12, 128 MB, SDRAM, PC133-333 Modem: MicroDash, Euro, V.92, 1.0F, APPLE VERSION 2.6.6 Network Service: Modem interno, PPP (PPPSerial), modem Network Service: Ethernet integrata, Ethernet, en0 Parallel ATA Device: IBM-IC25N020ATDA04-0, 18.63 GB Parallel ATA Device: SONY CD-RW CRX800E, -- " One of the tricks here is to get away from thinking that programs have to be composed with only a simple text editor " - Alan Kay - "Java and C++ make you think that the new ideas are like the old ones. Java is the most distressing thing to hit computing since MS-DOS". - Alan Kay - "The computer revolution hasn't started yet. Don't be misled by the enormous flow of money into bad defacto standards for unsophisticated buyers using poor adaptations of incomplete ideas". -Alan Kay - From w.northcott at unsw.edu.au Mon Aug 15 02:11:34 2005 From: w.northcott at unsw.edu.au (Bill Northcott) Date: Mon, 15 Aug 2005 10:11:34 +1000 Subject: [Pythonmac-SIG] wxPython apps keep crashing on me :-( In-Reply-To: References: Message-ID: <2F31DED9-07F6-4FC6-96DC-8490AFDBBE63@unsw.edu.au> On 15/08/2005, at 9:14 AM, Adriano wrote: > They are Boa Constructor, wxGlade and probably also XRCed > > I downloaded the prepackaged version by Kevin Walzer and I have the > first question for him (I hope he's reading). The package that > contained Spe-OsX, wxGlade and XRCed (I think) was on the WordTech > site and it seems it's not there any longer. Are they ? What > happened ? > > The problem I have is that I try to follow the tutorials, the one > for wxGlade and the one for Boa, and they keep crashing :-( > I start again and repeat from scratch and they crash again at a > different step ! > I'm on an ibook with MacOs X 10.4.1. > > Now, I have two (2) versions of wxPython on my machine. The one > from Apple and it's the 2.5.x and another one I installed (I don't > remember where I got it) and it's 2.6.1.0 > > If I open the "About..." window in wxGlade I read it's wxGlade > 0.4cvs, on Python 2.4.1 (I installed it, don't remember where I got > it) and wxPython 2.6.1.0 > > Another question: how can I choose which python and which wxPython > should they run with? If I launch wxGlade it chooses Python 2.4.1 > which has wxPython 2.6.x in its path. > A couple of thoughts: 1. You seem to be using a G3 cpu. It is possible that at least one of the various bits you have downloaded is using Altivec. 2. Why not try building Python sources from scratch? Get g77 from hpc.sourceforge.net and select gcc-3.3 by doing 'sudo gcc_select 3.3'. Trash all your other non-Apple libraries and don't use Fink. If Apple can build the version that comes installed with Tiger you should be able to build on your system without a load of questionable binaries. The version of python you use will be the one which comes first in your PATH. Try 'which python' which will tell you. Apple puts symlinks in /usr/bin. If your home built/otherwise obtained Python comes before /usr/bin in the PATH it will be used. Bill Northcott From kevino at tulane.edu Mon Aug 15 03:12:00 2005 From: kevino at tulane.edu (Kevin Ollivier) Date: Sun, 14 Aug 2005 18:12:00 -0700 Subject: [Pythonmac-SIG] wxPython apps keep crashing on me :-( In-Reply-To: References: Message-ID: Hi Adriano, On Aug 14, 2005, at 4:14 PM, Adriano wrote: > Hello all, > > I have some problems and some questions about some wxPython based > apps I'd like to use. > > They are Boa Constructor, wxGlade and probably also XRCed > > I downloaded the prepackaged version by Kevin Walzer and I have the > first question for him (I hope he's reading). The package that > contained Spe-OsX, wxGlade and XRCed (I think) was on the WordTech > site and it seems it's not there any longer. Are they ? What happened > ? > > The problem I have is that I try to follow the tutorials, the one for > wxGlade and the one for Boa, and they keep crashing :-( > I start again and repeat from scratch and they crash again at a > different step ! > I'm on an ibook with MacOs X 10.4.1. What would be of most help is a detailed set of instructions about the last few things you did before the crash occurred, particularly the very last thing you did before a crash occurred. This will help us pin down the code that's causing the problem. Like "I clicked on button X, then selected menu option Y, then it crashed." > Now, I have two (2) versions of wxPython on my machine. The one from > Apple and it's the 2.5.x and another one I installed (I don't > remember where I got it) and it's 2.6.1.0 > > If I open the "About..." window in wxGlade I read it's wxGlade > 0.4cvs, on Python 2.4.1 (I installed it, don't remember where I got > it) and wxPython 2.6.1.0 > > Another question: how can I choose which python and which wxPython > should they run with? If I launch wxGlade it chooses Python 2.4.1 > which has wxPython 2.6.x in its path. > > I'd like to try with Python 2.3 that has wxPython 2.5.x in its path. > How can I manage this ? You would have to download the source distributions for these programs, then run them from the command line by explicitly calling '/ usr/bin/pythonw' rather than just typing 'pythonw'. Note that this is assuming you didn't install another version of wxPython for Python 2.3 in addition to the system-supplied 2.5.3 distribution. > One more question: can anyone discuss my idea of trying with Python > 2.3 and wxPython 2.5.x ? Does anyone know any reason why this test > is going to fail anyway ? I have a strong suspect that it's going to > fail :-( Well, 2.5.3 is missing out on all the bug fixes made between 2.5.3 and 2.6.1.0, of which there were many. Chances are you're just as likely to get the same crash on an older version as the newer one. You may even get other crashes as well. Your best bet is to test against the 2.6.x stable releases and report whatever crashes/bugs you run into. > Could it help if I copy and paste a stacktrace of one of those > crashes ? If the bug cannot be reproduced, then this might help, but it would be far more helpful if you could teach us how to get the crash to happen so that we can crash the programs ourselves. ;-) (And then figure out what's causing it to crash!) Thanks, Kevin > Ok this is a good bunch of questions and problems ;-) > > Thanks SO much for any help > Bye > Catonano > > P.S. I repeated the Boa tutorial and reached the phase in which I > should add a menubar to my app. It ALWAYS crash at that point. I > copied and pasted the crash report. I think it could be useful to who > can read it. Thanks so much > > > > Date/Time: 2005-08-15 01:05:24.983 +0200 > OS Version: 10.4.2 (Build 8C46) > Report Version: 3 > > Command: Python > Path: /Users/adri/Desktop/SPE-OSX/Boa Constructor.app/Contents/ > MacOS/Python > Parent: WindowServer [63] > > Version: ??? (???) > > PID: 328 > Thread: 0 > > Exception: EXC_BAD_ACCESS (0x0001) > Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 > > Thread 0 Crashed: > 0 libwx_macud-2.6.0.dylib 0x010fde68 > wxWindow::GetClientAreaOrigin() const + 44 (icplusplus.c:27) > 1 _core_.so 0x00687d08 wxGBSpan_helper(_object*, > wxGBSpan**) + 276040 > 2 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 3 org.python.python 0x1007ce34 ext_do_call + 972 > (ceval.c:3824) > 4 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 > (ceval.c:2206) > 5 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 6 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 7 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 8 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 9 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 10 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 11 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 12 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 13 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 14 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 15 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 16 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 17 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 18 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 19 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 20 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 21 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 22 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 23 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 24 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 25 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 26 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 27 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 28 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 29 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 30 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 31 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 32 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 33 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 34 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 35 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 36 org.python.python 0x1007c26c > PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) > 37 _core_.so 0x0063f8f4 > wxPyCallback::EventThunker(wxEvent&) + 416 > 38 libwx_macud-2.6.0.dylib 0x01093c34 > wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, > wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) > 39 libwx_macud-2.6.0.dylib 0x010941e4 > wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 160 > (icplusplus.c:27) > 40 libwx_macud-2.6.0.dylib 0x01093de8 > wxEvtHandler::ProcessEvent(wxEvent&) + 208 (icplusplus.c:27) > 41 libwx_macud-2.6.0.dylib 0x01110b5c > wxListMainWindow::SendNotify(unsigned long, int, wxPoint) + 504 > (icplusplus.c:27) > 42 libwx_macud-2.6.0.dylib 0x0110f998 > wxListMainWindow::HighlightLine(unsigned long, bool) + 356 > (icplusplus.c:27) > 43 libwx_macud-2.6.0.dylib 0x01114bfc > wxListMainWindow::SetItemState(long, long, long) + 452 > (icplusplus.c:27) > 44 libwx_macud-2.6.0.dylib 0x01118a3c > wxGenericListCtrl::SetItemState(long, long, long) + 20 > (icplusplus.c:27) > 45 _controls_.so 0x022a2824 > wxPyControl::base_HasTransparentBackground() + 359928 > 46 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 47 org.python.python 0x1007ce34 ext_do_call + 972 > (ceval.c:3824) > 48 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 > (ceval.c:2206) > 49 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 50 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 51 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 52 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 53 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 54 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 55 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 56 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 57 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 58 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 59 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 60 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 61 org.python.python 0x1007c26c > PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) > 62 _core_.so 0x0063f8f4 > wxPyCallback::EventThunker(wxEvent&) + 416 > 63 libwx_macud-2.6.0.dylib 0x01093c34 > wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, > wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) > 64 libwx_macud-2.6.0.dylib 0x010941e4 > wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 160 > (icplusplus.c:27) > 65 libwx_macud-2.6.0.dylib 0x01093de8 > wxEvtHandler::ProcessEvent(wxEvent&) + 208 (icplusplus.c:27) > 66 libwx_macud-2.6.0.dylib 0x011121b4 > wxListMainWindow::OnMouse(wxMouseEvent&) + 72 (icplusplus.c:27) > 67 libwx_macud-2.6.0.dylib 0x01093c34 > wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, > wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) > 68 libwx_macud-2.6.0.dylib 0x01093318 > wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 > (icplusplus.c:27) > 69 libwx_macud-2.6.0.dylib 0x01093e14 > wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) > 70 libwx_macud-2.6.0.dylib 0x01093e40 > wxEvtHandler::ProcessEvent(wxEvent&) + 296 (icplusplus.c:27) > 71 libwx_macud-2.6.0.dylib 0x011ae604 > wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 48 > (icplusplus.c:27) > 72 libwx_macud-2.6.0.dylib 0x010f703c > wxMacTopLevelMouseEventHandler(OpaqueEventHandlerCallRef*, > OpaqueEventRef*, void*) + 976 (icplusplus.c:27) > 73 libwx_macud-2.6.0.dylib 0x010f7dc4 > wxMacTopLevelEventHandler(OpaqueEventHandlerCallRef*, > OpaqueEventRef*, void*) + 196 (icplusplus.c:27) > 74 com.apple.HIToolbox 0x931229f4 > DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, > HandlerCallRec*) + 692 > 75 com.apple.HIToolbox 0x9312214c > SendEventToEventTargetInternal(OpaqueEventRef*, > OpaqueEventTargetRef*, HandlerCallRec*) + 372 > 76 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40 > 77 com.apple.HIToolbox 0x931b5530 > HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned > short) + 236 > 78 com.apple.HIToolbox 0x931b4aa8 > HandleMouseEvent(OpaqueEventRef*) + 368 > 79 com.apple.HIToolbox 0x9312923c > ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, > OpaqueEventRef*, void*) + 496 > 80 com.apple.HIToolbox 0x93122c44 > DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, > HandlerCallRec*) + 1284 > 81 com.apple.HIToolbox 0x9312214c > SendEventToEventTargetInternal(OpaqueEventRef*, > OpaqueEventTargetRef*, HandlerCallRec*) + 372 > 82 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40 > 83 libwx_macud-2.6.0.dylib 0x010b04f0 > wxApp::MacHandleOneEvent(void*) + 44 (icplusplus.c:27) > 84 libwx_macud-2.6.0.dylib 0x010b0488 wxApp::MacDoOneEvent() + > 156 (icplusplus.c:27) > 85 libwx_macud-2.6.0.dylib 0x010b0020 wxApp::MainLoop() + 36 > (icplusplus.c:27) > 86 _core_.so 0x0063ba4c wxPyApp::MainLoop() + 84 > 87 _core_.so 0x0067ed74 wxGBSpan_helper(_object*, > wxGBSpan**) + 239284 > 88 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 89 org.python.python 0x1007ce34 ext_do_call + 972 > (ceval.c:3824) > 90 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 > (ceval.c:2206) > 91 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 92 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 93 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 94 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 95 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 96 org.python.python 0x1007c9e4 do_call + 136 (ceval.c: > 3755) > 97 org.python.python 0x1007c6dc call_function + 1068 > (ceval.c:3572) > 98 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 99 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 100 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 101 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 102 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 103 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 104 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 105 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 106 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 107 org.python.python 0x1007e678 PyEval_EvalCode + 48 > (ceval.c:484) > 108 org.python.python 0x100b2ee0 run_node + 76 > (pythonrun.c:1265) > 109 org.python.python 0x10070af4 builtin_execfile + 520 > (bltinmodule.c:623) > 110 org.python.python 0x1007c5ec call_function + 828 > (ceval.c:3547) > 111 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 112 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 113 org.python.python 0x1007e678 PyEval_EvalCode + 48 > (ceval.c:484) > 114 org.python.python 0x100b2ee0 run_node + 76 > (pythonrun.c:1265) > 115 org.python.python 0x100b266c PyRun_SimpleFileExFlags + > 592 (pythonrun.c:863) > 116 org.python.python 0x100bf640 Py_Main + 2596 (main.c:484) > 117 Python 0x000018d0 0x1000 + 2256 > 118 dyld 0x8fe01048 _dyld_start + 60 > > Thread 1: > 0 libSystem.B.dylib 0x9001efec select + 12 > 1 select.so 0x050e65e8 initselect + 688 > 2 org.python.python 0x1007c5ec call_function + 828 > (ceval.c:3547) > 3 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 4 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 5 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 6 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 7 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 8 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 9 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 10 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 11 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 12 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 13 org.python.python 0x1007c26c > PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) > 14 org.python.python 0x100c1ba4 t_bootstrap + 52 > (threadmodule.c:434) > 15 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96 > > Thread 0 crashed with PPC Thread State 64: > srr0: 0x00000000010fde68 srr1: 0x000000000000f030 > vrsave: 0x0000000000000000 > cr: 0x84244244 xer: 0x000000000000000c lr: > 0x00000000010fde58 ctr: 0x0000000090b04130 > r0: 0x00000000010fde58 r1: 0x00000000bfffb400 r2: > 0x00000000bfffb000 r3: 0x0000000000000000 > r4: 0x00000000fffffffe r5: 0x00000000044ec084 r6: > 0x0000000000000002 r7: 0x000000007fffffff > r8: 0x0000000000000001 r9: 0x0000000090681740 r10: > 0x0000000090371654 r11: 0x00000000a169accc > r12: 0x0000000090b04130 r13: 0x0000000000000000 r14: > 0x0000000006061d64 r15: 0x0000000006061d5c > r16: 0x0000000000000000 r17: 0x0000000000000000 r18: > 0x0000000000000000 r19: 0x0000000006061d64 > r20: 0x00000000005358cc r21: 0x0000000000000000 r22: > 0x0000000000000000 r23: 0x00000000005a4508 > r24: 0x0000000000000000 r25: 0x000000000567a490 r26: > 0x0000000000000001 r27: 0x00000000bfffb4d0 > r28: 0x00000000003001a0 r29: 0x00000000044ec084 r30: > 0x00000000061aba00 r31: 0x0000000000687c2c > > Binary Images Description: > 0x1000 - 0x1fff Python /Users/adri/Desktop/SPE-OSX/Boa > Constructor.app/Contents/MacOS/Python > 0x8a000 - 0x8bfff cStringIO.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/cStringIO.so > 0x99000 - 0x9bfff _locale.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_locale.so > 0xa2000 - 0xa6fff _AE.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_AE.so > 0xc6000 - 0xc7fff _Evt.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_Evt.so > 0xca000 - 0xcbfff MacOS.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/MacOS.so > 0xce000 - 0xd0fff time.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/time.so > 0xdb000 - 0xdefff struct.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/struct.so > 0xe1000 - 0xe4fff strop.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/strop.so > 0x245000 - 0x24dfff _File.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_File.so > 0x4e1000 - 0x4e5fff _Res.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_Res.so > 0x63a000 - 0x700fff _core_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_core_.so > 0x1008000 - 0x145ffff libwx_macud-2.6.0.dylib > /usr/local/lib/wxPython-unicode-2.6.1.0/lib/ > libwx_macud-2.6.0.dylib > 0x2008000 - 0x2075fff _gdi_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_gdi_.so > 0x20c1000 - 0x20c3fff com.apple.textencoding.unicode 2.0 > /System/Library/TextEncodings/Unicode > Encodings.bundle/Contents/MacOS/Unicode Encodings > 0x2106000 - 0x219cfff _windows_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_windows_.so > 0x2246000 - 0x22fafff _controls_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_controls_.so > 0x23a6000 - 0x2444fff _misc_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_misc_.so > 0x24e2000 - 0x2544fff _stc.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_stc.so > 0x2558000 - 0x25fefff libwx_macud_stc-2.6.0.dylib > /usr/local/lib/wxPython-unicode-2.6.1.0/lib/ > libwx_macud_stc-2.6.0.dylib > 0x269b000 - 0x26dffff _html.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_html.so > 0x44a2000 - 0x44a3fff math.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/math.so > 0x44d6000 - 0x44d7fff _random.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_random.so > 0x47b4000 - 0x47b6fff binascii.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/binascii.so > 0x47b9000 - 0x47bafff fcntl.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/fcntl.so > 0x4854000 - 0x485bfff _socket.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_socket.so > 0x4861000 - 0x4863fff _ssl.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_ssl.so > 0x48a6000 - 0x48a7fff icglue.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/icglue.so > 0x48ea000 - 0x48edfff itertools.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/itertools.so > 0x48f1000 - 0x48f1fff _bisect.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_bisect.so > 0x48f4000 - 0x48f5fff _heapq.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_heapq.so > 0x4afa000 - 0x4b13fff _wizard.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_wizard.so > 0x4b61000 - 0x4b76fff _calendar.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_calendar.so > 0x4b8a000 - 0x4b8afff _weakref.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_weakref.so > 0x4b8d000 - 0x4b8ffff operator.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/operator.so > 0x4b93000 - 0x4b95fff zlib.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/zlib.so > 0x4b99000 - 0x4b9bfff collections.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/collections.so > 0x4bde000 - 0x4c3efff _grid.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_grid.so > 0x4c95000 - 0x4cdbfff _gizmos.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_gizmos.so > 0x4cfe000 - 0x4d1cfff libwx_macud_gizmos-2.6.0.dylib > /usr/local/lib/wxPython-unicode-2.6.1.0/lib/ > libwx_macud_gizmos-2.6.0.dylib > 0x5043000 - 0x506cfff pyexpat.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/pyexpat.so > 0x5074000 - 0x5074fff grp.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/grp.so > 0x5077000 - 0x5077fff pwd.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/pwd.so > 0x50e5000 - 0x50e6fff select.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/select.so > 0x56bb000 - 0x56cbfff cPickle.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/cPickle.so > 0x10000000 - 0x100fbfff org.python.python 2.4a0 (2.2) > /Library/Frameworks/Python.framework/Versions/2.4/Python > 0x78e00000 - 0x78e07fff libLW8Utils.dylib > /System/Library/Printers/Libraries/libLW8Utils.dylib > 0x79200000 - 0x7923efff libLW8Converter.dylib > /System/Library/Printers/Libraries/libLW8Converter.dylib > 0x8fe00000 - 0x8fe51fff dyld 43.1 /usr/lib/dyld > 0x90000000 - 0x901a6fff libSystem.B.dylib /usr/lib/ > libSystem.B.dylib > 0x901fe000 - 0x90202fff libmathCommon.A.dylib > /usr/lib/system/libmathCommon.A.dylib > 0x90204000 - 0x90257fff com.apple.CoreText 1.0.0 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText > 0x90284000 - 0x90335fff ATS > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ATS.framework/Versions/A/ATS > 0x90364000 - 0x9069dfff com.apple.CoreGraphics 1.256.14 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics > 0x90728000 - 0x90801fff com.apple.CoreFoundation 6.4.2 (368.11) > /System/Library/Frameworks/CoreFoundation.framework/Versions/A/ > CoreFoundation > 0x9084a000 - 0x9084afff com.apple.CoreServices 10.4 (???) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > CoreServices > 0x9084c000 - 0x9094efff libicucore.A.dylib /usr/lib/ > libicucore.A.dylib > 0x909a8000 - 0x90a2cfff libobjc.A.dylib /usr/lib/libobjc.A.dylib > 0x90a56000 - 0x90acafff com.apple.framework.IOKit 1.4 (???) > /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit > 0x90ae4000 - 0x90af6fff libauto.dylib /usr/lib/libauto.dylib > 0x90afd000 - 0x90dc2fff com.apple.CoreServices.CarbonCore 10.4.1 > (611.1) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/CarbonCore.framework/Versions/A/CarbonCore > 0x90e25000 - 0x90ea5fff com.apple.CoreServices.OSServices 4.0 (4.0.0) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/OSServices.framework/Versions/A/OSServices > 0x90eef000 - 0x90f2ffff com.apple.CFNetwork 10.4.2 (80) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/CFNetwork.framework/Versions/A/CFNetwork > 0x90f44000 - 0x90f5cfff com.apple.WebServices 1.1.2 (1.1.0) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore > 0x90f6c000 - 0x90feafff com.apple.SearchKit 1.0.3 > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/SearchKit.framework/Versions/A/SearchKit > 0x9102f000 - 0x91056fff com.apple.Metadata 1.1 (121.6) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/Metadata.framework/Versions/A/Metadata > 0x91066000 - 0x91073fff libz.1.dylib /usr/lib/libz.1.dylib > 0x91076000 - 0x91238fff com.apple.security 4.0.1 (223) > /System/Library/Frameworks/Security.framework/Versions/A/Security > 0x9133a000 - 0x91343fff com.apple.DiskArbitration 2.1 > /System/Library/Frameworks/DiskArbitration.framework/Versions/A/ > DiskArbitration > 0x9134a000 - 0x91371fff com.apple.SystemConfiguration 1.8.0 > /System/Library/Frameworks/SystemConfiguration.framework/ > Versions/A/SystemConfiguration > 0x91384000 - 0x9138cfff libbsm.dylib /usr/lib/libbsm.dylib > 0x91390000 - 0x9140efff com.apple.audio.CoreAudio 3.0.1 > /System/Library/Frameworks/CoreAudio.framework/Versions/A/ > CoreAudio > 0x9144c000 - 0x9144cfff com.apple.ApplicationServices 10.4 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/ApplicationServices > 0x9144e000 - 0x91486fff com.apple.AE 1.5 (297) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/AE.framework/Versions/A/AE > 0x914a1000 - 0x9156cfff com.apple.ColorSync 4.4 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync > 0x915c1000 - 0x91654fff com.apple.print.framework.PrintCore 4.0 > (172.1) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore > 0x9169a000 - 0x91757fff com.apple.QD 3.8.6 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/QD.framework/Versions/A/QD > 0x91795000 - 0x917f3fff com.apple.HIServices 1.5.0 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices > 0x91821000 - 0x91844fff com.apple.LangAnalysis 1.6 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis > 0x91858000 - 0x9187dfff com.apple.FindByContent 1.5 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent > 0x91890000 - 0x918d1fff com.apple.LaunchServices 10.4.3 (157) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/LaunchServices.framework/Versions/A/ > LaunchServices > 0x918ec000 - 0x91900fff com.apple.speech.synthesis.framework 3.3 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/ > SpeechSynthesis > 0x9190e000 - 0x91944fff com.apple.ImageIO.framework 1.0.2 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO > 0x91958000 - 0x91a1afff libcrypto.0.9.7.dylib /usr/lib/ > libcrypto.0.9.7.dylib > 0x91a66000 - 0x91a7bfff libcups.2.dylib /usr/lib/libcups.2.dylib > 0x91a80000 - 0x91a9cfff libJPEG.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libJPEG.dylib > 0x91aa1000 - 0x91b10fff libJP2.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libJP2.dylib > 0x91b27000 - 0x91b2bfff libGIF.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libGIF.dylib > 0x91b2d000 - 0x91b45fff libRaw.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libRaw.dylib > 0x91b48000 - 0x91b8bfff libTIFF.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libTIFF.dylib > 0x91b92000 - 0x91babfff libPng.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libPng.dylib > 0x91bb0000 - 0x91bb3fff libRadiance.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libRadiance.dylib > 0x91bb5000 - 0x91bb5fff com.apple.Accelerate 1.1.1 (Accelerate 1.1.1) > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Accelerate > 0x91bb7000 - 0x91ca1fff com.apple.vImage 2.0 > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vImage.framework/Versions/A/vImage > 0x91ca9000 - 0x91cc8fff com.apple.Accelerate.vecLib 3.1.1 (vecLib > 3.1.1) > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/vecLib > 0x91d34000 - 0x91d54fff libmx.A.dylib /usr/lib/libmx.A.dylib > 0x91d5a000 - 0x91dbffff libvMisc.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libvMisc.dylib > 0x91dc9000 - 0x91e5bfff libvDSP.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libvDSP.dylib > 0x91e75000 - 0x92405fff libBLAS.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libBLAS.dylib > 0x9244d000 - 0x9275dfff libLAPACK.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib > 0x9278a000 - 0x92815fff com.apple.DesktopServices 1.3 > /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/ > Versions/A/DesktopServicesPriv > 0x92857000 - 0x92a80fff com.apple.Foundation 6.4.1 (567.12) > /System/Library/Frameworks/Foundation.framework/Versions/C/ > Foundation > 0x92b9e000 - 0x92c7cfff libxml2.2.dylib /usr/lib/libxml2.2.dylib > 0x92c9c000 - 0x92d8afff libiconv.2.dylib /usr/lib/libiconv.2.dylib > 0x92d9c000 - 0x92dbafff libGL.dylib > /System/Library/Frameworks/OpenGL.framework/Versions/A/ > Libraries/libGL.dylib > 0x92dc5000 - 0x92e1ffff libGLU.dylib > /System/Library/Frameworks/OpenGL.framework/Versions/A/ > Libraries/libGLU.dylib > 0x92e3d000 - 0x92e3dfff com.apple.Carbon 10.4 (???) > /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon > 0x92e3f000 - 0x92e53fff com.apple.ImageCapture 3.0 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/ImageCapture.framework/Versions/A/ImageCapture > 0x92e6b000 - 0x92e7bfff com.apple.speech.recognition.framework 3.4 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition > 0x92e87000 - 0x92e9cfff com.apple.securityhi 2.0 (203) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/SecurityHI.framework/Versions/A/SecurityHI > 0x92eae000 - 0x92f35fff com.apple.ink.framework 101.2 (69) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/Ink.framework/Versions/A/Ink > 0x92f49000 - 0x92f54fff com.apple.help 1.0.3 (32) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/Help.framework/Versions/A/Help > 0x92f5e000 - 0x92f8bfff com.apple.openscripting 1.2.2 (???) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/OpenScripting.framework/Versions/A/OpenScripting > 0x92fa5000 - 0x92fb5fff com.apple.print.framework.Print 4.0 (187) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/Print.framework/Versions/A/Print > 0x92fc1000 - 0x93027fff com.apple.htmlrendering 1.1.2 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering > 0x93058000 - 0x930aafff com.apple.NavigationServices 3.4.1 (3.4) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/NavigationServices.framework/Versions/A/NavigationServices > 0x930d6000 - 0x930f3fff com.apple.audio.SoundManager 3.9 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/CarbonSound.framework/Versions/A/CarbonSound > 0x93105000 - 0x93112fff com.apple.CommonPanels 1.2.2 (73) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/CommonPanels.framework/Versions/A/CommonPanels > 0x9311b000 - 0x9342bfff com.apple.HIToolbox 1.4.2 (???) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/HIToolbox.framework/Versions/A/HIToolbox > 0x93576000 - 0x93582fff com.apple.opengl 1.4.0 > /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL > 0x93622000 - 0x93622fff com.apple.Cocoa 6.4 (???) > /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa > 0x93624000 - 0x93c55fff com.apple.AppKit 6.4.1 (824.1) > /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit > 0x93fe1000 - 0x9404bfff com.apple.CoreData 1.0 (46) > /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData > 0x94083000 - 0x9414dfff com.apple.audio.toolbox.AudioToolbox 1.4.1 > /System/Library/Frameworks/AudioToolbox.framework/Versions/A/ > AudioToolbox > 0x941a1000 - 0x941a1fff com.apple.audio.units.AudioUnit 1.4 > /System/Library/Frameworks/AudioUnit.framework/Versions/A/ > AudioUnit > 0x941a3000 - 0x94302fff com.apple.QuartzCore 1.4.1 > /System/Library/Frameworks/QuartzCore.framework/Versions/A/ > QuartzCore > 0x9434a000 - 0x94387fff libsqlite3.0.dylib /usr/lib/ > libsqlite3.0.dylib > 0x9438f000 - 0x943dafff libGLImage.dylib > /System/Library/Frameworks/OpenGL.framework/Versions/A/ > Libraries/libGLImage.dylib > 0x9457a000 - 0x94589fff libCGATS.A.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/ > libCGATS.A.dylib > 0x94591000 - 0x9459dfff libCSync.A.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/ > libCSync.A.dylib > 0x945e2000 - 0x945f6fff libRIP.A.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/ > libRIP.A.dylib > 0x945fc000 - 0x9485efff com.apple.QuickTime 7.0.1 > /System/Library/Frameworks/QuickTime.framework/Versions/A/ > QuickTime > 0x94931000 - 0x94950fff com.apple.vecLib 3.1.1 (vecLib 3.1.1) > /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib > 0x94cd4000 - 0x94d02fff libssl.0.9.7.dylib /usr/lib/libssl. > 0.9.7.dylib > 0x959b5000 - 0x95a3ffff com.apple.WebKit 412.6 > /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit > 0x95a99000 - 0x95b7bfff com.apple.JavaScriptCore 1.2 (412.3) > /System/Library/Frameworks/WebKit.framework/Versions/A/ > Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore > 0x95bcf000 - 0x95ebdfff com.apple.WebCore 415.11 > /System/Library/Frameworks/WebKit.framework/Versions/A/ > Frameworks/WebCore.framework/Versions/A/WebCore > 0x9603e000 - 0x96067fff libxslt.1.dylib /usr/lib/libxslt.1.dylib > 0xeab00000 - 0xeab25fff libConverter.dylib > /System/Library/Printers/Libraries/libConverter.dylib > > Model: PowerBook4,2, BootROM 4.3.2f1, 1 processors, PowerPC 750 > (33.11), 600 MHz, 256 MB > Graphics: ATY,RageM3, ATY,RageM3, AGP, 8 MB > Memory Module: DIMM0/BUILT-IN, 128 MB, built-in, built-in > Memory Module: DIMM1/J12, 128 MB, SDRAM, PC133-333 > Modem: MicroDash, Euro, V.92, 1.0F, APPLE VERSION 2.6.6 > Network Service: Modem interno, PPP (PPPSerial), modem > Network Service: Ethernet integrata, Ethernet, en0 > Parallel ATA Device: IBM-IC25N020ATDA04-0, 18.63 GB > Parallel ATA Device: SONY CD-RW CRX800E, > > -- > " One of the tricks here is to get away from thinking that programs > have to be composed with only a simple text editor " > > - Alan Kay - > > > > "Java and C++ make you think that the new ideas are like the old ones. > Java is the most distressing thing to hit computing since MS-DOS". > > - Alan Kay - > > > > "The computer revolution hasn't started yet. Don't be misled by > the enormous flow of money into bad defacto standards for > unsophisticated buyers using poor adaptations of incomplete ideas". > > -Alan Kay - > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > From kevino at tulane.edu Mon Aug 15 06:27:21 2005 From: kevino at tulane.edu (Kevin Ollivier) Date: Sun, 14 Aug 2005 21:27:21 -0700 Subject: [Pythonmac-SIG] Boa OS X menubar bug (Re: wxPython apps keep crashing on me :-( ) In-Reply-To: References: Message-ID: <7072F43C-6FFC-463B-9D6F-EE4158915B83@tulane.edu> Hi Adriano, I'm bringing one of the Boa core developers in on this in order to fill him in on the details of this bug. Riaan, Adriano's setup is Python 2.4, wxPython 2.6.1.0, on OS X 10.4.2. I'm not sure what version of Boa he's using, but I see the same problem in the 0.4.4 release. On Aug 14, 2005, at 4:14 PM, Adriano wrote: [snip] > P.S. I repeated the Boa tutorial and reached the phase in which I > should add a menubar to my app. It ALWAYS crash at that point. I > copied and pasted the crash report. I think it could be useful to who > can read it. Thanks so much What is happening is that when Boa loads and creates an object (i.e. wxMenuBar), it loads up RTTI.py and tests the various functions (at least getters) that can be called on wxMenuBar using the getMethodType function. In this case, it is calling wxMenuBar::GetClientRect (really, wxWindow::GetClientRect), but for whatever reason the wxMenuBar C++ object is not prepared for a GetClientRect() call and thus crashes. I say 'for whatever reason' because I didn't go through the Boa code well enough to know exactly what state the wxMenuBar is when this function is being called, but my guess is just that regardless, GetClientRect() on Mac doesn't expect to be called from wxMenuBar. On Mac, wxMenuBar really isn't a wxWindow at all but it derives from it for compatibility with other platforms. I can fix things at the wxMac/C++ level for GetClientRect (actually, GetClientSize and GetClientAreaOrigin), but that won't make it into wxPython until the next release. However, I do have to wonder why the getters are actually being called and tested. If the getter call fails somewhere in the C++ code, it could lead to an assert at best, or crash at worst, for anyone trying to use Boa. Thanks, Kevin > > Date/Time: 2005-08-15 01:05:24.983 +0200 > OS Version: 10.4.2 (Build 8C46) > Report Version: 3 > > Command: Python > Path: /Users/adri/Desktop/SPE-OSX/Boa Constructor.app/Contents/ > MacOS/Python > Parent: WindowServer [63] > > Version: ??? (???) > > PID: 328 > Thread: 0 > > Exception: EXC_BAD_ACCESS (0x0001) > Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 > > Thread 0 Crashed: > 0 libwx_macud-2.6.0.dylib 0x010fde68 > wxWindow::GetClientAreaOrigin() const + 44 (icplusplus.c:27) > 1 _core_.so 0x00687d08 wxGBSpan_helper(_object*, > wxGBSpan**) + 276040 > 2 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 3 org.python.python 0x1007ce34 ext_do_call + 972 > (ceval.c:3824) > 4 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 > (ceval.c:2206) > 5 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 6 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 7 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 8 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 9 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 10 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 11 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 12 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 13 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 14 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 15 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 16 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 17 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 18 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 19 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 20 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 21 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 22 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 23 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 24 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 25 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 26 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 27 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 28 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 29 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 30 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 31 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 32 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 33 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 34 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 35 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 36 org.python.python 0x1007c26c > PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) > 37 _core_.so 0x0063f8f4 > wxPyCallback::EventThunker(wxEvent&) + 416 > 38 libwx_macud-2.6.0.dylib 0x01093c34 > wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, > wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) > 39 libwx_macud-2.6.0.dylib 0x010941e4 > wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 160 > (icplusplus.c:27) > 40 libwx_macud-2.6.0.dylib 0x01093de8 > wxEvtHandler::ProcessEvent(wxEvent&) + 208 (icplusplus.c:27) > 41 libwx_macud-2.6.0.dylib 0x01110b5c > wxListMainWindow::SendNotify(unsigned long, int, wxPoint) + 504 > (icplusplus.c:27) > 42 libwx_macud-2.6.0.dylib 0x0110f998 > wxListMainWindow::HighlightLine(unsigned long, bool) + 356 > (icplusplus.c:27) > 43 libwx_macud-2.6.0.dylib 0x01114bfc > wxListMainWindow::SetItemState(long, long, long) + 452 > (icplusplus.c:27) > 44 libwx_macud-2.6.0.dylib 0x01118a3c > wxGenericListCtrl::SetItemState(long, long, long) + 20 > (icplusplus.c:27) > 45 _controls_.so 0x022a2824 > wxPyControl::base_HasTransparentBackground() + 359928 > 46 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 47 org.python.python 0x1007ce34 ext_do_call + 972 > (ceval.c:3824) > 48 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 > (ceval.c:2206) > 49 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 50 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 51 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 52 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 53 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 54 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 55 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 56 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 57 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 58 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 59 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 60 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 61 org.python.python 0x1007c26c > PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) > 62 _core_.so 0x0063f8f4 > wxPyCallback::EventThunker(wxEvent&) + 416 > 63 libwx_macud-2.6.0.dylib 0x01093c34 > wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, > wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) > 64 libwx_macud-2.6.0.dylib 0x010941e4 > wxEvtHandler::SearchDynamicEventTable(wxEvent&) + 160 > (icplusplus.c:27) > 65 libwx_macud-2.6.0.dylib 0x01093de8 > wxEvtHandler::ProcessEvent(wxEvent&) + 208 (icplusplus.c:27) > 66 libwx_macud-2.6.0.dylib 0x011121b4 > wxListMainWindow::OnMouse(wxMouseEvent&) + 72 (icplusplus.c:27) > 67 libwx_macud-2.6.0.dylib 0x01093c34 > wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, > wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) > 68 libwx_macud-2.6.0.dylib 0x01093318 > wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 > (icplusplus.c:27) > 69 libwx_macud-2.6.0.dylib 0x01093e14 > wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) > 70 libwx_macud-2.6.0.dylib 0x01093e40 > wxEvtHandler::ProcessEvent(wxEvent&) + 296 (icplusplus.c:27) > 71 libwx_macud-2.6.0.dylib 0x011ae604 > wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 48 > (icplusplus.c:27) > 72 libwx_macud-2.6.0.dylib 0x010f703c > wxMacTopLevelMouseEventHandler(OpaqueEventHandlerCallRef*, > OpaqueEventRef*, void*) + 976 (icplusplus.c:27) > 73 libwx_macud-2.6.0.dylib 0x010f7dc4 > wxMacTopLevelEventHandler(OpaqueEventHandlerCallRef*, > OpaqueEventRef*, void*) + 196 (icplusplus.c:27) > 74 com.apple.HIToolbox 0x931229f4 > DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, > HandlerCallRec*) + 692 > 75 com.apple.HIToolbox 0x9312214c > SendEventToEventTargetInternal(OpaqueEventRef*, > OpaqueEventTargetRef*, HandlerCallRec*) + 372 > 76 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40 > 77 com.apple.HIToolbox 0x931b5530 > HandleMouseEventForWindow(OpaqueWindowPtr*, OpaqueEventRef*, unsigned > short) + 236 > 78 com.apple.HIToolbox 0x931b4aa8 > HandleMouseEvent(OpaqueEventRef*) + 368 > 79 com.apple.HIToolbox 0x9312923c > ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, > OpaqueEventRef*, void*) + 496 > 80 com.apple.HIToolbox 0x93122c44 > DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, > HandlerCallRec*) + 1284 > 81 com.apple.HIToolbox 0x9312214c > SendEventToEventTargetInternal(OpaqueEventRef*, > OpaqueEventTargetRef*, HandlerCallRec*) + 372 > 82 com.apple.HIToolbox 0x93128ed0 SendEventToEventTarget + 40 > 83 libwx_macud-2.6.0.dylib 0x010b04f0 > wxApp::MacHandleOneEvent(void*) + 44 (icplusplus.c:27) > 84 libwx_macud-2.6.0.dylib 0x010b0488 wxApp::MacDoOneEvent() + > 156 (icplusplus.c:27) > 85 libwx_macud-2.6.0.dylib 0x010b0020 wxApp::MainLoop() + 36 > (icplusplus.c:27) > 86 _core_.so 0x0063ba4c wxPyApp::MainLoop() + 84 > 87 _core_.so 0x0067ed74 wxGBSpan_helper(_object*, > wxGBSpan**) + 239284 > 88 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 89 org.python.python 0x1007ce34 ext_do_call + 972 > (ceval.c:3824) > 90 org.python.python 0x1007a230 PyEval_EvalFrame + 9128 > (ceval.c:2206) > 91 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 92 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 93 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 94 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 95 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 96 org.python.python 0x1007c9e4 do_call + 136 (ceval.c: > 3755) > 97 org.python.python 0x1007c6dc call_function + 1068 > (ceval.c:3572) > 98 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 99 org.python.python 0x1007c83c fast_function + 212 > (ceval.c:3631) > 100 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 101 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 102 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 103 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 104 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 105 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 106 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 107 org.python.python 0x1007e678 PyEval_EvalCode + 48 > (ceval.c:484) > 108 org.python.python 0x100b2ee0 run_node + 76 > (pythonrun.c:1265) > 109 org.python.python 0x10070af4 builtin_execfile + 520 > (bltinmodule.c:623) > 110 org.python.python 0x1007c5ec call_function + 828 > (ceval.c:3547) > 111 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 112 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 113 org.python.python 0x1007e678 PyEval_EvalCode + 48 > (ceval.c:484) > 114 org.python.python 0x100b2ee0 run_node + 76 > (pythonrun.c:1265) > 115 org.python.python 0x100b266c PyRun_SimpleFileExFlags + > 592 (pythonrun.c:863) > 116 org.python.python 0x100bf640 Py_Main + 2596 (main.c:484) > 117 Python 0x000018d0 0x1000 + 2256 > 118 dyld 0x8fe01048 _dyld_start + 60 > > Thread 1: > 0 libSystem.B.dylib 0x9001efec select + 12 > 1 select.so 0x050e65e8 initselect + 688 > 2 org.python.python 0x1007c5ec call_function + 828 > (ceval.c:3547) > 3 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 4 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 5 org.python.python 0x1007c8cc fast_function + 356 > (ceval.c:3644) > 6 org.python.python 0x1007c6c4 call_function + 1044 > (ceval.c:3568) > 7 org.python.python 0x1007a140 PyEval_EvalFrame + 8888 > (ceval.c:2163) > 8 org.python.python 0x1007b284 PyEval_EvalCodeEx + 2152 > (ceval.c:2730) > 9 org.python.python 0x10026274 function_call + 344 > (funcobject.c:548) > 10 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 11 org.python.python 0x10015a88 instancemethod_call + 796 > (classobject.c:2432) > 12 org.python.python 0x1000c348 PyObject_Call + 48 > (abstract.c:1752) > 13 org.python.python 0x1007c26c > PyEval_CallObjectWithKeywords + 256 (ceval.c:3420) > 14 org.python.python 0x100c1ba4 t_bootstrap + 52 > (threadmodule.c:434) > 15 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96 > > Thread 0 crashed with PPC Thread State 64: > srr0: 0x00000000010fde68 srr1: 0x000000000000f030 > vrsave: 0x0000000000000000 > cr: 0x84244244 xer: 0x000000000000000c lr: > 0x00000000010fde58 ctr: 0x0000000090b04130 > r0: 0x00000000010fde58 r1: 0x00000000bfffb400 r2: > 0x00000000bfffb000 r3: 0x0000000000000000 > r4: 0x00000000fffffffe r5: 0x00000000044ec084 r6: > 0x0000000000000002 r7: 0x000000007fffffff > r8: 0x0000000000000001 r9: 0x0000000090681740 r10: > 0x0000000090371654 r11: 0x00000000a169accc > r12: 0x0000000090b04130 r13: 0x0000000000000000 r14: > 0x0000000006061d64 r15: 0x0000000006061d5c > r16: 0x0000000000000000 r17: 0x0000000000000000 r18: > 0x0000000000000000 r19: 0x0000000006061d64 > r20: 0x00000000005358cc r21: 0x0000000000000000 r22: > 0x0000000000000000 r23: 0x00000000005a4508 > r24: 0x0000000000000000 r25: 0x000000000567a490 r26: > 0x0000000000000001 r27: 0x00000000bfffb4d0 > r28: 0x00000000003001a0 r29: 0x00000000044ec084 r30: > 0x00000000061aba00 r31: 0x0000000000687c2c > > Binary Images Description: > 0x1000 - 0x1fff Python /Users/adri/Desktop/SPE-OSX/Boa > Constructor.app/Contents/MacOS/Python > 0x8a000 - 0x8bfff cStringIO.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/cStringIO.so > 0x99000 - 0x9bfff _locale.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_locale.so > 0xa2000 - 0xa6fff _AE.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_AE.so > 0xc6000 - 0xc7fff _Evt.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_Evt.so > 0xca000 - 0xcbfff MacOS.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/MacOS.so > 0xce000 - 0xd0fff time.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/time.so > 0xdb000 - 0xdefff struct.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/struct.so > 0xe1000 - 0xe4fff strop.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/strop.so > 0x245000 - 0x24dfff _File.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_File.so > 0x4e1000 - 0x4e5fff _Res.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_Res.so > 0x63a000 - 0x700fff _core_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_core_.so > 0x1008000 - 0x145ffff libwx_macud-2.6.0.dylib > /usr/local/lib/wxPython-unicode-2.6.1.0/lib/ > libwx_macud-2.6.0.dylib > 0x2008000 - 0x2075fff _gdi_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_gdi_.so > 0x20c1000 - 0x20c3fff com.apple.textencoding.unicode 2.0 > /System/Library/TextEncodings/Unicode > Encodings.bundle/Contents/MacOS/Unicode Encodings > 0x2106000 - 0x219cfff _windows_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_windows_.so > 0x2246000 - 0x22fafff _controls_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_controls_.so > 0x23a6000 - 0x2444fff _misc_.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_misc_.so > 0x24e2000 - 0x2544fff _stc.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_stc.so > 0x2558000 - 0x25fefff libwx_macud_stc-2.6.0.dylib > /usr/local/lib/wxPython-unicode-2.6.1.0/lib/ > libwx_macud_stc-2.6.0.dylib > 0x269b000 - 0x26dffff _html.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_html.so > 0x44a2000 - 0x44a3fff math.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/math.so > 0x44d6000 - 0x44d7fff _random.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_random.so > 0x47b4000 - 0x47b6fff binascii.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/binascii.so > 0x47b9000 - 0x47bafff fcntl.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/fcntl.so > 0x4854000 - 0x485bfff _socket.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_socket.so > 0x4861000 - 0x4863fff _ssl.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_ssl.so > 0x48a6000 - 0x48a7fff icglue.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/icglue.so > 0x48ea000 - 0x48edfff itertools.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/itertools.so > 0x48f1000 - 0x48f1fff _bisect.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_bisect.so > 0x48f4000 - 0x48f5fff _heapq.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_heapq.so > 0x4afa000 - 0x4b13fff _wizard.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_wizard.so > 0x4b61000 - 0x4b76fff _calendar.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_calendar.so > 0x4b8a000 - 0x4b8afff _weakref.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/_weakref.so > 0x4b8d000 - 0x4b8ffff operator.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/operator.so > 0x4b93000 - 0x4b95fff zlib.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/zlib.so > 0x4b99000 - 0x4b9bfff collections.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/collections.so > 0x4bde000 - 0x4c3efff _grid.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_grid.so > 0x4c95000 - 0x4cdbfff _gizmos.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > site-packages/wx-2.6-mac-unicode/wx/_gizmos.so > 0x4cfe000 - 0x4d1cfff libwx_macud_gizmos-2.6.0.dylib > /usr/local/lib/wxPython-unicode-2.6.1.0/lib/ > libwx_macud_gizmos-2.6.0.dylib > 0x5043000 - 0x506cfff pyexpat.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/pyexpat.so > 0x5074000 - 0x5074fff grp.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/grp.so > 0x5077000 - 0x5077fff pwd.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/pwd.so > 0x50e5000 - 0x50e6fff select.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/select.so > 0x56bb000 - 0x56cbfff cPickle.so > /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > lib-dynload/cPickle.so > 0x10000000 - 0x100fbfff org.python.python 2.4a0 (2.2) > /Library/Frameworks/Python.framework/Versions/2.4/Python > 0x78e00000 - 0x78e07fff libLW8Utils.dylib > /System/Library/Printers/Libraries/libLW8Utils.dylib > 0x79200000 - 0x7923efff libLW8Converter.dylib > /System/Library/Printers/Libraries/libLW8Converter.dylib > 0x8fe00000 - 0x8fe51fff dyld 43.1 /usr/lib/dyld > 0x90000000 - 0x901a6fff libSystem.B.dylib /usr/lib/ > libSystem.B.dylib > 0x901fe000 - 0x90202fff libmathCommon.A.dylib > /usr/lib/system/libmathCommon.A.dylib > 0x90204000 - 0x90257fff com.apple.CoreText 1.0.0 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText > 0x90284000 - 0x90335fff ATS > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ATS.framework/Versions/A/ATS > 0x90364000 - 0x9069dfff com.apple.CoreGraphics 1.256.14 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics > 0x90728000 - 0x90801fff com.apple.CoreFoundation 6.4.2 (368.11) > /System/Library/Frameworks/CoreFoundation.framework/Versions/A/ > CoreFoundation > 0x9084a000 - 0x9084afff com.apple.CoreServices 10.4 (???) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > CoreServices > 0x9084c000 - 0x9094efff libicucore.A.dylib /usr/lib/ > libicucore.A.dylib > 0x909a8000 - 0x90a2cfff libobjc.A.dylib /usr/lib/libobjc.A.dylib > 0x90a56000 - 0x90acafff com.apple.framework.IOKit 1.4 (???) > /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit > 0x90ae4000 - 0x90af6fff libauto.dylib /usr/lib/libauto.dylib > 0x90afd000 - 0x90dc2fff com.apple.CoreServices.CarbonCore 10.4.1 > (611.1) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/CarbonCore.framework/Versions/A/CarbonCore > 0x90e25000 - 0x90ea5fff com.apple.CoreServices.OSServices 4.0 (4.0.0) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/OSServices.framework/Versions/A/OSServices > 0x90eef000 - 0x90f2ffff com.apple.CFNetwork 10.4.2 (80) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/CFNetwork.framework/Versions/A/CFNetwork > 0x90f44000 - 0x90f5cfff com.apple.WebServices 1.1.2 (1.1.0) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore > 0x90f6c000 - 0x90feafff com.apple.SearchKit 1.0.3 > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/SearchKit.framework/Versions/A/SearchKit > 0x9102f000 - 0x91056fff com.apple.Metadata 1.1 (121.6) > /System/Library/Frameworks/CoreServices.framework/Versions/A/ > Frameworks/Metadata.framework/Versions/A/Metadata > 0x91066000 - 0x91073fff libz.1.dylib /usr/lib/libz.1.dylib > 0x91076000 - 0x91238fff com.apple.security 4.0.1 (223) > /System/Library/Frameworks/Security.framework/Versions/A/Security > 0x9133a000 - 0x91343fff com.apple.DiskArbitration 2.1 > /System/Library/Frameworks/DiskArbitration.framework/Versions/A/ > DiskArbitration > 0x9134a000 - 0x91371fff com.apple.SystemConfiguration 1.8.0 > /System/Library/Frameworks/SystemConfiguration.framework/ > Versions/A/SystemConfiguration > 0x91384000 - 0x9138cfff libbsm.dylib /usr/lib/libbsm.dylib > 0x91390000 - 0x9140efff com.apple.audio.CoreAudio 3.0.1 > /System/Library/Frameworks/CoreAudio.framework/Versions/A/ > CoreAudio > 0x9144c000 - 0x9144cfff com.apple.ApplicationServices 10.4 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/ApplicationServices > 0x9144e000 - 0x91486fff com.apple.AE 1.5 (297) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/AE.framework/Versions/A/AE > 0x914a1000 - 0x9156cfff com.apple.ColorSync 4.4 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync > 0x915c1000 - 0x91654fff com.apple.print.framework.PrintCore 4.0 > (172.1) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore > 0x9169a000 - 0x91757fff com.apple.QD 3.8.6 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/QD.framework/Versions/A/QD > 0x91795000 - 0x917f3fff com.apple.HIServices 1.5.0 (???) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices > 0x91821000 - 0x91844fff com.apple.LangAnalysis 1.6 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis > 0x91858000 - 0x9187dfff com.apple.FindByContent 1.5 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent > 0x91890000 - 0x918d1fff com.apple.LaunchServices 10.4.3 (157) > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/LaunchServices.framework/Versions/A/ > LaunchServices > 0x918ec000 - 0x91900fff com.apple.speech.synthesis.framework 3.3 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/ > SpeechSynthesis > 0x9190e000 - 0x91944fff com.apple.ImageIO.framework 1.0.2 > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO > 0x91958000 - 0x91a1afff libcrypto.0.9.7.dylib /usr/lib/ > libcrypto.0.9.7.dylib > 0x91a66000 - 0x91a7bfff libcups.2.dylib /usr/lib/libcups.2.dylib > 0x91a80000 - 0x91a9cfff libJPEG.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libJPEG.dylib > 0x91aa1000 - 0x91b10fff libJP2.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libJP2.dylib > 0x91b27000 - 0x91b2bfff libGIF.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libGIF.dylib > 0x91b2d000 - 0x91b45fff libRaw.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libRaw.dylib > 0x91b48000 - 0x91b8bfff libTIFF.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libTIFF.dylib > 0x91b92000 - 0x91babfff libPng.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libPng.dylib > 0x91bb0000 - 0x91bb3fff libRadiance.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/ > libRadiance.dylib > 0x91bb5000 - 0x91bb5fff com.apple.Accelerate 1.1.1 (Accelerate 1.1.1) > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Accelerate > 0x91bb7000 - 0x91ca1fff com.apple.vImage 2.0 > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vImage.framework/Versions/A/vImage > 0x91ca9000 - 0x91cc8fff com.apple.Accelerate.vecLib 3.1.1 (vecLib > 3.1.1) > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/vecLib > 0x91d34000 - 0x91d54fff libmx.A.dylib /usr/lib/libmx.A.dylib > 0x91d5a000 - 0x91dbffff libvMisc.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libvMisc.dylib > 0x91dc9000 - 0x91e5bfff libvDSP.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libvDSP.dylib > 0x91e75000 - 0x92405fff libBLAS.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libBLAS.dylib > 0x9244d000 - 0x9275dfff libLAPACK.dylib > /System/Library/Frameworks/Accelerate.framework/Versions/A/ > Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib > 0x9278a000 - 0x92815fff com.apple.DesktopServices 1.3 > /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/ > Versions/A/DesktopServicesPriv > 0x92857000 - 0x92a80fff com.apple.Foundation 6.4.1 (567.12) > /System/Library/Frameworks/Foundation.framework/Versions/C/ > Foundation > 0x92b9e000 - 0x92c7cfff libxml2.2.dylib /usr/lib/libxml2.2.dylib > 0x92c9c000 - 0x92d8afff libiconv.2.dylib /usr/lib/libiconv.2.dylib > 0x92d9c000 - 0x92dbafff libGL.dylib > /System/Library/Frameworks/OpenGL.framework/Versions/A/ > Libraries/libGL.dylib > 0x92dc5000 - 0x92e1ffff libGLU.dylib > /System/Library/Frameworks/OpenGL.framework/Versions/A/ > Libraries/libGLU.dylib > 0x92e3d000 - 0x92e3dfff com.apple.Carbon 10.4 (???) > /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon > 0x92e3f000 - 0x92e53fff com.apple.ImageCapture 3.0 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/ImageCapture.framework/Versions/A/ImageCapture > 0x92e6b000 - 0x92e7bfff com.apple.speech.recognition.framework 3.4 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition > 0x92e87000 - 0x92e9cfff com.apple.securityhi 2.0 (203) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/SecurityHI.framework/Versions/A/SecurityHI > 0x92eae000 - 0x92f35fff com.apple.ink.framework 101.2 (69) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/Ink.framework/Versions/A/Ink > 0x92f49000 - 0x92f54fff com.apple.help 1.0.3 (32) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/Help.framework/Versions/A/Help > 0x92f5e000 - 0x92f8bfff com.apple.openscripting 1.2.2 (???) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/OpenScripting.framework/Versions/A/OpenScripting > 0x92fa5000 - 0x92fb5fff com.apple.print.framework.Print 4.0 (187) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/Print.framework/Versions/A/Print > 0x92fc1000 - 0x93027fff com.apple.htmlrendering 1.1.2 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering > 0x93058000 - 0x930aafff com.apple.NavigationServices 3.4.1 (3.4) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/NavigationServices.framework/Versions/A/NavigationServices > 0x930d6000 - 0x930f3fff com.apple.audio.SoundManager 3.9 > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/CarbonSound.framework/Versions/A/CarbonSound > 0x93105000 - 0x93112fff com.apple.CommonPanels 1.2.2 (73) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/CommonPanels.framework/Versions/A/CommonPanels > 0x9311b000 - 0x9342bfff com.apple.HIToolbox 1.4.2 (???) > /System/Library/Frameworks/Carbon.framework/Versions/A/ > Frameworks/HIToolbox.framework/Versions/A/HIToolbox > 0x93576000 - 0x93582fff com.apple.opengl 1.4.0 > /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL > 0x93622000 - 0x93622fff com.apple.Cocoa 6.4 (???) > /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa > 0x93624000 - 0x93c55fff com.apple.AppKit 6.4.1 (824.1) > /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit > 0x93fe1000 - 0x9404bfff com.apple.CoreData 1.0 (46) > /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData > 0x94083000 - 0x9414dfff com.apple.audio.toolbox.AudioToolbox 1.4.1 > /System/Library/Frameworks/AudioToolbox.framework/Versions/A/ > AudioToolbox > 0x941a1000 - 0x941a1fff com.apple.audio.units.AudioUnit 1.4 > /System/Library/Frameworks/AudioUnit.framework/Versions/A/ > AudioUnit > 0x941a3000 - 0x94302fff com.apple.QuartzCore 1.4.1 > /System/Library/Frameworks/QuartzCore.framework/Versions/A/ > QuartzCore > 0x9434a000 - 0x94387fff libsqlite3.0.dylib /usr/lib/ > libsqlite3.0.dylib > 0x9438f000 - 0x943dafff libGLImage.dylib > /System/Library/Frameworks/OpenGL.framework/Versions/A/ > Libraries/libGLImage.dylib > 0x9457a000 - 0x94589fff libCGATS.A.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/ > libCGATS.A.dylib > 0x94591000 - 0x9459dfff libCSync.A.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/ > libCSync.A.dylib > 0x945e2000 - 0x945f6fff libRIP.A.dylib > /System/Library/Frameworks/ApplicationServices.framework/ > Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/ > libRIP.A.dylib > 0x945fc000 - 0x9485efff com.apple.QuickTime 7.0.1 > /System/Library/Frameworks/QuickTime.framework/Versions/A/ > QuickTime > 0x94931000 - 0x94950fff com.apple.vecLib 3.1.1 (vecLib 3.1.1) > /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib > 0x94cd4000 - 0x94d02fff libssl.0.9.7.dylib /usr/lib/libssl. > 0.9.7.dylib > 0x959b5000 - 0x95a3ffff com.apple.WebKit 412.6 > /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit > 0x95a99000 - 0x95b7bfff com.apple.JavaScriptCore 1.2 (412.3) > /System/Library/Frameworks/WebKit.framework/Versions/A/ > Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore > 0x95bcf000 - 0x95ebdfff com.apple.WebCore 415.11 > /System/Library/Frameworks/WebKit.framework/Versions/A/ > Frameworks/WebCore.framework/Versions/A/WebCore > 0x9603e000 - 0x96067fff libxslt.1.dylib /usr/lib/libxslt.1.dylib > 0xeab00000 - 0xeab25fff libConverter.dylib > /System/Library/Printers/Libraries/libConverter.dylib > > Model: PowerBook4,2, BootROM 4.3.2f1, 1 processors, PowerPC 750 > (33.11), 600 MHz, 256 MB > Graphics: ATY,RageM3, ATY,RageM3, AGP, 8 MB > Memory Module: DIMM0/BUILT-IN, 128 MB, built-in, built-in > Memory Module: DIMM1/J12, 128 MB, SDRAM, PC133-333 > Modem: MicroDash, Euro, V.92, 1.0F, APPLE VERSION 2.6.6 > Network Service: Modem interno, PPP (PPPSerial), modem > Network Service: Ethernet integrata, Ethernet, en0 > Parallel ATA Device: IBM-IC25N020ATDA04-0, 18.63 GB > Parallel ATA Device: SONY CD-RW CRX800E, > > -- > " One of the tricks here is to get away from thinking that programs > have to be composed with only a simple text editor " > > - Alan Kay - > > > > "Java and C++ make you think that the new ideas are like the old ones. > Java is the most distressing thing to hit computing since MS-DOS". > > - Alan Kay - > > > > "The computer revolution hasn't started yet. Don't be misled by > the enormous flow of money into bad defacto standards for > unsophisticated buyers using poor adaptations of incomplete ideas". > > -Alan Kay - > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > From pythondeveloper at gmail.com Mon Aug 15 17:13:22 2005 From: pythondeveloper at gmail.com (Scott Kaplan) Date: Mon, 15 Aug 2005 11:13:22 -0400 Subject: [Pythonmac-SIG] Is there a good Python C/C++ IDE? In-Reply-To: <183D565B-0F6F-4FC1-9CA0-E0B975102723@meteo.fr> References: <183D565B-0F6F-4FC1-9CA0-E0B975102723@meteo.fr> Message-ID: <86afeadf050815081335ed3b4b@mail.gmail.com> Thanks Hubert - I will look into it. On 8/12/05, Hubert Holin wrote: > [Xposted and followups to pythonmac list which is perhaps more > appropriate] > > Somewhere in the E.U., le 12/08/2005 > > Bonjour > > > On 12 ao?t 2005, at 12:00, c++-sig-request at python.org wrote: > > > Date: Thu, 11 Aug 2005 13:49:08 -0400 > > From: Scott Kaplan > > Subject: [C++-sig] Is there a good Python C/C++ IDE? > > To: Development of Python/C++ integration > > Message-ID: <86afeadf05081110495776a14b at mail.gmail.com> > > Content-Type: text/plain; charset=ISO-8859-1 > > > > Being new to Python, I was wondering if anyone knows of a good IDE > > that would let me develop Python and add extensions in C/C++, with the > > capability of debugging those extensions. > > > > This will be on a Mac. > > > > It looks like the standard download comes with PyObjC, however I want > > to extend Python to handle my C/C++ extensions not the other way > > around + I don't want to have to learn any ObjectiveC / ObjC syntax. > > > > Thanks, > > Well, if you do not want to create GUIs, but do want to use > one, it is possible to use XCode (2.1, though the last few previous > versions would presumably also work). > > More precisely, you can launch the command-line Python from > within XCode with a chosen script as argument (and any other > arguments you may care about), and of course you can do the C++ > programming within that environment. I have not actually tried to > have a custom Python extension used in such a setting, but it is in > my current work plan. You can even use the free (and excellent) > TextWrangler as the code editor (for C++ and Python). The debugging > of the extension can then be done using XCode's front-end to GDB. For > debugging of Python scripts proper, however, the (free) PythonIDE is > preferable, though (which leads to: development of scripts within > PythonIDE, extension coding and integration in XCode). You are, as > well, not restricted to using the Apple-supplied version of Python. > > As an example, I installed Bob Ippolito's "Official > Unofficial" Python 2.4.1. I then created an XCode project (***empty > project***) "Python via XCode", added a target "Invoked Snake" (of > type aggregate), and to it added a custom executable "Python 2.4.1 > (Official Unofficial)", setting its properties as "Executable path: / > Library/Frameworks/Python.framework/Versions/2.4/bin/python" and with > an argument ""/Users/hubertholin/Documents/Scratch/Python via Xcode/ > test.py"" (adding quotes around path arguments is safer... note the > whitespaces). Clicking on the "Build and Go" icon then invoked python > with my test script as argument. > > The creation of extensions should be straightforward from > the Boost.Python documentation (so far, I have only tried embedding, > not extension, which is on my to-do list). I am still trying to > refine the process to something I like, though. > > As far as Objective-C and Objective-C++ are concerned, I > only see them as something of an inconvenience, much as in the same > way that Apple's system documentation had long been geared towards > Pascal rather than C. PyObjC goes a long way to ease our suffering, > though there are some rough spots still (and the Python Carbon > bindings need a full overhaul). It should be said that Interface > Builder is superb, though, and in the absence of a NIB to whatever- > portable-package Python will understand (like there appears to be for > PERL), if one wants GUIs, then building them in IB, using PyObjC as > the glue (using documentation written for ObjC) and extending with C+ > + is a possible road. At least that's the road I am taking, and if > anybody's interested I'll report back if it actually leads > somewhere :-) . > > Bon courage > > Hubert Holin > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From pythondeveloper at gmail.com Mon Aug 15 17:19:52 2005 From: pythondeveloper at gmail.com (Scott Kaplan) Date: Mon, 15 Aug 2005 11:19:52 -0400 Subject: [Pythonmac-SIG] Is there a good Python C/C++ IDE? In-Reply-To: References: <86afeadf050810095249a6d3b@mail.gmail.com> Message-ID: <86afeadf050815081932e274a1@mail.gmail.com> Kris, jEdit looks very powerful. It turns out my exact question got answered in another group. Thanks. On 8/10/05, Kris Kopicki wrote: > While not quite an IDE, I use jEdit (www.jedit.org). This editor has > almost every feature you could want, and editing files remotely over > ssh is very useful for servers. > > Kris > > > On 11/08/2005, at 2:22 AM, Scott Kaplan wrote: > > > Being new to Python, I was wondering if anyone knows of a good IDE > > that would let me develop Python and add extensions in C/C++, with the > > capability of debugging those extensions. > > > > I have a Mac XServe running version 10.2.X > > > > It looks like the standard download comes with PyObjC, however I want > > to extend Python to handle my C/C++ extensions not the other way > > around + I don't want to have to learn any ObjectiveC / ObjC syntax. > > > > Thanks, > > _______________________________________________ > > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > > http://mail.python.org/mailman/listinfo/pythonmac-sig > > > > > > > -------------------------------------- > Kris Kopicki > Systems Administrator > Walford Anglican School for Girls Inc. > 316 Unley Road, Hyde Park > SA 5061 Australia > > Web: http://www.walford.asn.au > Phone: +61-8-82726555 > Fax: +61-8-82720313 > Mobile: +61407790415 > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From magnus at hetland.org Mon Aug 15 17:43:08 2005 From: magnus at hetland.org (Magnus Lie Hetland) Date: Mon, 15 Aug 2005 17:43:08 +0200 Subject: [Pythonmac-SIG] Native Carbon drawing and PyObjC? Message-ID: <20050815154308.GA775@idi.ntnu.no> Does anyone know if it's possible to combine the Carbon interface that ships with OS X and PyObjC Cocoa programming (i.e. use the Apple Carbon interface to draw on views created with PyObjC)? -- Magnus Lie Hetland http://hetland.org From brad.allen at omsdal.com Mon Aug 15 18:33:10 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Mon, 15 Aug 2005 11:33:10 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: Message-ID: eichin at metacarta.com wrote on 08/14/2005 12:17:31 PM: > I suspect the original mention of LDAP was a bit of a distraction - > that's only useful for authORIZATION (ie. getting lists of groups and > acls that a user has and *deciding* what they can do, once you know > who they are - it's the knowing who they are part that is > authENTICATION, which is done with kerberos.) I haven't even started working on authorization. The first problem is just basic authentication. Some LDAP servers, such as Active Directory, supposedly supports authentication with queries, so if a username and password are included as parameters to a query, they will be handled appropriately. The part I'm not yet clear on has to do with the requirements on such queries. For instance, Apple's OpenLDAP comes with SASL authentication, but I haven't yet gotten that to work. I've tried testing various parameters to the ldapsearch command, for instance: ldapsearch -h adserver.ourdomain.org -D "cn=myuserid" -w mypassword -b "dc=OURDOMAIN,dc=ORG" ...and here is the error I get on Mac OS 10.4.2: SASL/GSSAPI authentication started ldap_sasl_interactive_bind_s: Local error (-2) additional info: SASL(-1): generic failure: GSSAPI Error: Miscellaneous failure (No credentials cache found) > It doesn't make any sense to me that the *client* would do ldap > authorization lookups, simply because it could just as easily "make up > answers" and present them to the server - the client is on the wrong > side of the trust boundary... I thought one of the key concepts of Kerberos was that the password is only ever sent to the authentication server by a client, and that the username and password would never be sent to the application server. Instead, a Kerberos ticket would be sent, and the application server would inspect the ticket for validity. Therefore, the client should never need to send a password to the app server, and the app server would never be in a position to collect user passwords. > What the original left out was: how do the client and server talk to > each other? The most common case is for the server to be HTTP and the > authentication to be "Negotiate", which ends up either passing GSSAPI > tokens or falling back to NTLM (which is, hopefully, disabled.) The client and server communicate via XML-RPC in the case of the app I'm working on. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050815/d4e7ec18/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050815/d4e7ec18/attachment-0001.jpeg From chairos at gmail.com Mon Aug 15 18:59:26 2005 From: chairos at gmail.com (Jon Rosebaugh) Date: Mon, 15 Aug 2005 11:59:26 -0500 Subject: [Pythonmac-SIG] strange behavior with NSArray and python unicode types Message-ID: On 8/14/05, Ronald Oussoren wrote: >On 13-aug-2005, at 10:52, Jon Rosebaugh wrote: >> You're right, it wasn't the problem; I'm kinda ashamed that I didn't >> notice it now, because the self.Name was a unicode string too, and it >> worked fine. Turns out that self.Data was a objc.pyobjc_unicode >> object, since it had gone through the bridge and back. Sorry to >> trouble you. > >That still sounds fishy. If I understand you correctly you have a >pyobjc_unicode object that is not an empty string (that is >"theString != ''"), but is an empty string when converted back to >Objective-C. Could you elaborate on what you're doing? Unless the >Objective-C strings is an NSMutableString and someone is mutating it >behind your back the value in python should be the same as the value >in ObjC. Yeah. um. Basically, the pyobjc_unicode object is not an empty string. (I get this object by calling editor.string(), where editor is a NSTextView instance.) But when I try to feed it into a NSMutableArray via addObject:, the resulting array has an empty string where the pyobjc_unicode's contents should be. However, if I feed unicode(self.Data) into the NSMutableArray, it contains the string it should. Moreover, when I create a tiny demo of the problem, it actually works fine, which means I probably have crufty code somewhere. Hate it when that happens. From ronaldoussoren at mac.com Mon Aug 15 19:13:11 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Mon, 15 Aug 2005 19:13:11 +0200 Subject: [Pythonmac-SIG] Native Carbon drawing and PyObjC? In-Reply-To: <20050815154308.GA775@idi.ntnu.no> References: <20050815154308.GA775@idi.ntnu.no> Message-ID: On 15-aug-2005, at 17:43, Magnus Lie Hetland wrote: > Does anyone know if it's possible to combine the Carbon interface that > ships with OS X and PyObjC Cocoa programming (i.e. use the Apple > Carbon interface to draw on views created with PyObjC)? Why would you want to do that? Cocoa's drawing ablities are good enough for me, but then again I don't do much drawing anyway :-) PyObjC NSWindow.windowRef will return a Carbon type, as will NSQuickDrawView.qdPort. Ronald > > -- > Magnus Lie Hetland > http://hetland.org > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From ronaldoussoren at mac.com Mon Aug 15 19:25:34 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Mon, 15 Aug 2005 19:25:34 +0200 Subject: [Pythonmac-SIG] strange behavior with NSArray and python unicode types In-Reply-To: References: Message-ID: <63A18D2C-1298-4788-BCB9-F5DEDD066BB2@mac.com> On 15-aug-2005, at 18:59, Jon Rosebaugh wrote: > On 8/14/05, Ronald Oussoren wrote: > >> On 13-aug-2005, at 10:52, Jon Rosebaugh wrote: >> >>> You're right, it wasn't the problem; I'm kinda ashamed that I didn't >>> notice it now, because the self.Name was a unicode string too, >>> and it >>> worked fine. Turns out that self.Data was a objc.pyobjc_unicode >>> object, since it had gone through the bridge and back. Sorry to >>> trouble you. >>> >> >> That still sounds fishy. If I understand you correctly you have a >> pyobjc_unicode object that is not an empty string (that is >> "theString != ''"), but is an empty string when converted back to >> Objective-C. Could you elaborate on what you're doing? Unless the >> Objective-C strings is an NSMutableString and someone is mutating it >> behind your back the value in python should be the same as the value >> in ObjC. >> > > Yeah. um. Basically, the pyobjc_unicode object is not an empty string. > (I get this object by calling editor.string(), where editor is a > NSTextView instance.) But when I try to feed it into a NSMutableArray > via addObject:, the resulting array has an empty string where the > pyobjc_unicode's contents should be. > > However, if I feed unicode(self.Data) into the NSMutableArray, it > contains the string it should. NSTextView.string (or rather NSText.string) returns a reference to the backing store of the view. Given: aTextView = body = aTextView.string() aTextView.selectAll_(None) aTextView.delete_(None) At the end of this block body is pointing to an empty NSMutableString. However, the python value of the string is whatever was in the textview at the call to aTextView.string. This is one point where the bridge is showing true: python's unicode and pyobjc_unicode are immutable types (necessary to make it possible to use them as dict keys), while NSMutableString is (obviously) mutable. The sad result is that pyobjc_unicode instances don't reflect changes in the underlying NSMutableString. The best workaround is to copy the string when dealing with mutable strings and you don't want to see the changes (e.g. use unicode (aTextView.string())), or to get a direct reference to the NSMutableString when you do want to see updates (use aTextView.string ().nsstring()) and explicitly convert the string to unicode whenever you need to pass the value to a normal python API). Ronald > > Moreover, when I create a tiny demo of the problem, it actually works > fine, which means I probably have crufty code somewhere. Hate it when > that happens. > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > From eichin at metacarta.com Mon Aug 15 19:48:56 2005 From: eichin at metacarta.com (eichin@metacarta.com) Date: 15 Aug 2005 13:48:56 -0400 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: References: Message-ID: > I thought one of the key concepts of Kerberos was that the password > is only ever sent to the authentication server by a client, and that Horrors no. This is one of the common misconceptions about Kerberos. The password is *never sent anywhere*. Not to application servers, and not to the authentication server either. Instead, the login client (kinit, or loginwindow or whatever) requests an "initial ticket" - and then takes your password, turns it into a key, and uses that key to decrypt the ticket. (There are some good articles on this, I don't want to duplicate them here, and I'm fudging around preauth as well.) An application that uses Kerberos uses that initial ticket to get other tickets, and present those to the service - so a client *application* that uses kerberos doesn't even ever see the user's password. From njriley at uiuc.edu Mon Aug 15 20:00:27 2005 From: njriley at uiuc.edu (Nicholas Riley) Date: Mon, 15 Aug 2005 13:00:27 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: References: Message-ID: <20050815180027.GA19467@uiuc.edu> On Mon, Aug 15, 2005 at 11:33:10AM -0500, brad.allen at omsdal.com wrote: > I haven't even started working on authorization. The first problem > is just basic authentication. Some LDAP servers, such as Active Directory, > supposedly supports authentication with queries, so if a username and > password are included as parameters to a query, they will be handled > appropriately. The part I'm not yet clear on has to do with the > requirements on such queries. For instance, Apple's OpenLDAP comes > with SASL authentication, but I haven't yet gotten that to work. > I've tried testing various parameters to the ldapsearch command, > for instance: > > ldapsearch -h adserver.ourdomain.org -D "cn=myuserid" -w mypassword -b > "dc=OURDOMAIN,dc=ORG" > > ...and here is the error I get on Mac OS 10.4.2: > > SASL/GSSAPI authentication started > ldap_sasl_interactive_bind_s: Local error (-2) > additional info: SASL(-1): generic failure: > GSSAPI Error: Miscellaneous failure (No credentials cache > found) [...] > I thought one of the key concepts of Kerberos was that the password > is only ever sent to the authentication server by a client, and that > the username and password would never be sent to the application server. > Instead, a Kerberos ticket would be sent, and the application server > would inspect the ticket for validity. Therefore, the client should > never need to send a password to the app server, and the app server > would never be in a position to collect user passwords. These statements seem incompatible. Above, you're (attempting to) send your password to the LDAP server directly. Instead, you need to get a Kerberos TGT first, with kinit or the Kerberos app, and then ldapsearch should work without a password. -- Nicholas Riley | From brad.allen at omsdal.com Mon Aug 15 22:46:31 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Mon, 15 Aug 2005 15:46:31 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: Message-ID: eichin at metacarta.com wrote on 08/15/2005 12:48:56 PM: > > > I thought one of the key concepts of Kerberos was that the password > > is only ever sent to the authentication server by a client, and that > > Horrors no. This is one of the common misconceptions about Kerberos. > The password is *never sent anywhere*. Not to application servers, > and not to the authentication server either. > > Instead, the login client (kinit, or loginwindow or whatever) requests > an "initial ticket" - and then takes your password, turns it into a > key, and uses that key to decrypt the ticket. (There are some good > articles on this, I don't want to duplicate them here, and I'm fudging > around preauth as well.) > > An application that uses Kerberos uses that initial ticket to get > other tickets, and present those to the service - so a client > *application* that uses kerberos doesn't even ever see the user's > password. Thanks for setting me straight. So, I'm unclear on whether LDAP authentication actually uses Kerberos in some underlying way (via SASL), or whether it actually sends the password across the network. Maybe I'm barking up the wrong tree by trying to use LDAP. A search at developer.apple.com on "Kerberos" shows many, many articles, but I'm unclear where to start. I tried a Google search on "Python Kerberos", and came up with a module called pykpass. Maybe that will be the next place for me to try out... http://www.huque.com/python/pykpass/ Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050815/093d8bbe/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050815/093d8bbe/attachment-0001.jpeg From unistein at gmx.ch Mon Aug 15 23:09:17 2005 From: unistein at gmx.ch (Peter Steiner) Date: Mon, 15 Aug 2005 23:09:17 +0200 Subject: [Pythonmac-SIG] Configuring Python for Tkinter. Please help me. In-Reply-To: <42F91756.3080504@bersch.de> References: <42F91756.3080504@bersch.de> Message-ID: <1E16EAE0-C32E-4199-852F-6B94945554E9@gmx.ch> Hello Peter Am 09.08.2005 um 22:51 schrieb Peter Bersch: > Dear Jack Jansen, > I am a teacher, but with Python a Newbie. On the CD (for Windows) > encluded in the book "Python f?r Kids" by Gregor Lingl I found the > class > "turtle". [skip] > When importing Tkinter there is a request for _tkinter, but there > is noc > such file. Which version of OS X do you use? Some time ago I wrote a short instruction for OS X 10.3 to achieve the very same you tried (in German): http://pesche.schlau.ch/python-fuer-kids-auf-dem-macintosh/ The original instructions for getting _tkinter to work used to be on the pythonmac wiki, but this link is dead now. And I didn't reinstall the "Python f?r Kids" examples on OS X 10.4 (Tiger), so I'm afraid I'm of no help... Regards, Peter -- Peter Steiner http://pesche.schlau.ch/ PGP-ID 0x02850F53 (DH/DSS) PGP Fingerprint 68AB D08E D995 41B4 C6FD 639D 9B94 D249 0285 0F53 From njriley at uiuc.edu Mon Aug 15 23:19:41 2005 From: njriley at uiuc.edu (Nicholas Riley) Date: Mon, 15 Aug 2005 16:19:41 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: References: Message-ID: <20050815211941.GB24014@uiuc.edu> On Mon, Aug 15, 2005 at 03:46:31PM -0500, brad.allen at omsdal.com wrote: > Thanks for setting me straight. So, I'm unclear on whether LDAP > authentication actually uses Kerberos in some underlying way > (via SASL), or whether it actually sends the password across the > network. Maybe I'm barking up the wrong tree by trying to use LDAP. LDAP uses SASL which uses GSSAPI which uses Kerberos (I think :). In several of these cases, the path you're following is one of several plugins. I had a lot of trouble getting SASL binding to work from Python, at least on Linux, when I tried it a year ago. Your best bet may be to simply wrap kinit (to get a TGT) and ldapsearch with Python. You can see my eventual script (in Perl, not Python, because I couldn't get any Python module to do what I wanted) for doing a Kerberized LDAP search against Active Directory; there are Perl Kerberos bindings, I think, but I didn't bother using them, I just exec'ed kinit. -- Nicholas Riley | From adriano at euma.com Tue Aug 16 00:49:41 2005 From: adriano at euma.com (Adriano) Date: Tue, 16 Aug 2005 00:49:41 +0200 Subject: [Pythonmac-SIG] Boa OS X menubar bug (Re: wxPython apps keep crashing on me :-( ) Message-ID: Hi Kevin, >Hi Adriano, > >I'm bringing one of the Boa core developers in on this in order to >fill him in on the details of this bug. [...] but I see the same >problem in the 0.4.4 release. Thanks so much. >What is happening is that when Boa loads and creates an object (i.e. >wxMenuBar), it loads up RTTI.py and tests the various functions (at >least getters) that can be called on wxMenuBar using the >getMethodType function. In this case, it is calling >wxMenuBar::GetClientRect (really, wxWindow::GetClientRect), but for >whatever reason the wxMenuBar C++ object is not prepared for a >GetClientRect() call and thus crashes. > >I say 'for whatever reason' because I didn't go through the Boa code >well enough to know exactly what state the wxMenuBar is when this >function is being called, but my guess is just that regardless, >GetClientRect() on Mac doesn't expect to be called from wxMenuBar. >On Mac, wxMenuBar really isn't a wxWindow at all but it derives from >it for compatibility with other platforms. > >I can fix things at the wxMac/C++ level for GetClientRect (actually, >GetClientSize and GetClientAreaOrigin), but that won't make it into >wxPython until the next release. > However, I do have to wonder why the getters are actually being >called and tested. If the getter call fails somewhere in the C++ >code, it could lead to an assert at best, or crash at worst, for >anyone trying to use Boa. > >Thanks, Kevin, thanks to YOU ! Ok, now I want to say a few things. 1) If you will fix the c++ side of this matter I'd be really grateful ! 2) I understand that the fix will be available in the next release of wxPython but don't worry. I have no commitment to this project I was just trying to help. I think I'll try to use Boa on any Linux distro I could install on my machine. I hope wx stuff is more stable, there. As far as I could see, Boa is really nice and it is able to support the creation of a GUI app well enough, for me. 3) Thanks for your higly informative words about what's going on inside Boa that leads to this crash. 4) If I jump the menubar phase and step in the following phase I could go on with the tutorial. I'm sure I'll find some other crashes like this. Could it help if I report about them too ? 5) I found at least a crash occurring always in the same step also in wxGlade. Could it help if I report about that too? Thanks so much for your help, anyhow :-) Bye Adriano From brad.allen at omsdal.com Tue Aug 16 01:57:23 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Mon, 15 Aug 2005 18:57:23 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <20050815211941.GB24014@uiuc.edu> Message-ID: Thanks for the info, Nicolas. I will take a look at your Perl script. Brad Allen IT Desktop Support brad.allen at omsdal.com Nicholas Riley wrote on 08/15/2005 04:19:41 PM: > On Mon, Aug 15, 2005 at 03:46:31PM -0500, brad.allen at omsdal.com wrote: > > Thanks for setting me straight. So, I'm unclear on whether LDAP > > authentication actually uses Kerberos in some underlying way > > (via SASL), or whether it actually sends the password across the > > network. Maybe I'm barking up the wrong tree by trying to use LDAP. > > LDAP uses SASL which uses GSSAPI which uses Kerberos (I think :). In > several of these cases, the path you're following is one of several > plugins. > > I had a lot of trouble getting SASL binding to work from Python, at > least on Linux, when I tried it a year ago. Your best bet may be to > simply wrap kinit (to get a TGT) and ldapsearch with Python. > > You can see my eventual script (in Perl, not Python, because I > couldn't get any Python module to do what I wanted) for doing a > Kerberized LDAP search against Active Directory; there are Perl > Kerberos bindings, I think, but I didn't bother using them, I just > exec'ed kinit. > > > > -- > Nicholas Riley | > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050815/0edc3372/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050815/0edc3372/attachment-0001.jpeg From ashearerw at shearersoftware.com Tue Aug 16 02:54:00 2005 From: ashearerw at shearersoftware.com (Andrew Shearer) Date: Mon, 15 Aug 2005 20:54:00 -0400 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python Message-ID: <17464c9e9a933f21e84b563b69ebb210@shearersoftware.com> brad.allen at omsdal.com wrote: > I haven't even started working on authorization. The first problem > is just basic authentication. Some LDAP servers, such as Active > Directory, > supposedly supports authentication with queries, so if a username and > password are included as parameters to a query, they will be handled > appropriately. The part I'm not yet clear on has to do with the > requirements on such queries. For instance, Apple's OpenLDAP comes > with SASL authentication, but I haven't yet gotten that to work. > I've tried testing various parameters to the ldapsearch command, > for instance: > > ldapsearch -h adserver.ourdomain.org -D "cn=myuserid" -w mypassword -b > "dc=OURDOMAIN,dc=ORG" > > ...and here is the error I get on Mac OS 10.4.2: > > SASL/GSSAPI authentication started > ldap_sasl_interactive_bind_s: Local error (-2) > ? ? ? ? additional info: SASL(-1): generic failure: > ? ? ? ? ? ? ? ? GSSAPI Error: Miscellaneous failure (No credentials > cache found) You don't necessarily have to use Kerberos. Here's a command line that has worked for me on 10.3.9 against a Windows 2000 Active Directory server. It authenticates testuser at mydomain.sample.com by prompting for the password and then printing out some user information. (The flags could be simplified to do authentication only, but I don't have an AD server handy to test, so I didn't want to risk breaking it.) $ ldapsearch -H ldap://mydomain.sample.com/ -D testuser -vx -b dc=mydomain,dc=sample,dc=com -W "(samaccountname=testuser)" sn cn fn uid sAMAccountName -- Andrew Shearer http://www.shearersoftware.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 2303 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050815/5b27d0d2/attachment.bin From Benjamin.Schollnick at xerox.com Tue Aug 16 15:59:31 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Tue, 16 Aug 2005 09:59:31 -0400 Subject: [Pythonmac-SIG] Py2app & wxPython problem... Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFD8@usa0300ms04.na.xerox.net> > > Well... It is working at this point now.... > > > > After upgrading to 10.4.1..... But the distribution is huge (!!) > > roughly 40 Mb.... I'll take a look into slimming it down in a few > > days... > > Use PyObjC instead of wxPython and it will get a lot smaller ;) True... And I know your teasing... But there are several reasons that PyObjC may not be suitable for this task. 1) I am using PythonCard for the GUI 2) I am not up to speed in PyObjC to feel that I can manage to use it in a timely manner. 3) This is a cross platform (Windows, Mac OS X, and possibly *Nix) application. PyObjC will only help on the macintosh side... - Benjamin From Benjamin.Schollnick at xerox.com Tue Aug 16 16:08:49 2005 From: Benjamin.Schollnick at xerox.com (Schollnick, Benjamin) Date: Tue, 16 Aug 2005 10:08:49 -0400 Subject: [Pythonmac-SIG] ODBC On the Macintosh via Python? Message-ID: <266589E1B9392B4C9195CC25A07C73B90183CFD9@usa0300ms04.na.xerox.net> Folks, I have done some google research, but come up dry... Is there a ODBC module for the Macintosh? For example, the win32 distribution has an (old) odbc module, which works fine for my purposes... I am uncertain if mxODBC would work on the macintosh, but either way it's unsuitable for my purposes... (Licensing cost) - Benjamin From brad.allen at omsdal.com Tue Aug 16 16:40:31 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Tue, 16 Aug 2005 09:40:31 -0500 Subject: [Pythonmac-SIG] ODBC On the Macintosh via Python? In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFD9@usa0300ms04.na.xerox.net> Message-ID: "Schollnick, Benjamin" wrote on 08/16/2005 09:08:49 AM: > I have done some google research, but come up dry... > > Is there a ODBC module for the Macintosh? For example, the win32 > distribution has an (old) odbc module, which works fine for my > purposes... > > I am uncertain if mxODBC would work on the macintosh, but either way > it's unsuitable for my purposes... (Licensing cost) Actual ODBC does work on the Mac: http://www.actualtechnologies.com/ However, the only way I know of to get it to work with Python would be to use mxODBC. I asked Actual Technologies about this and they sent me some info about how to modify mxODBC to make it work with Actual ODBC. I you decide to go this route, let me know and I will forward you this info. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050816/cdd12fab/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050816/cdd12fab/attachment-0001.jpeg From dangoor at gmail.com Tue Aug 16 16:49:25 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Tue, 16 Aug 2005 10:49:25 -0400 Subject: [Pythonmac-SIG] py2app trying to create a symlink that already exists In-Reply-To: <3f085ecd05081208161fa06e89@mail.gmail.com> References: <3f085ecd05081208161fa06e89@mail.gmail.com> Message-ID: <3f085ecd05081607491cd329a9@mail.gmail.com> Following up to my own message. I just got back to looking at this again this morning and managed to fix it. I don't have the full answer, but thought I would post what I do know. This morning, I spotted a couple of things. 1) the unnecessary bin directory was still in the Firebird.framework on my Panther drive. I didn't run otool to see if any of those were pointing at suspect things. 2) there was a copy of Firebird.framework already in the build/bdist.... directory. Deleting that ultimately fixed the problem. Creating an embedded Firebird on the Mac is a manual process right now, so it's possible or even likely that the Firebird copy in there was not in the final state. The files in the Firebird.framework directory under build were not symlinked in the same way as the ones in /Library/Firebird.framework. So, py2app was copying over that one with real files, and then later tried to copy from /Library/Firebird.framework which had symlinks in place of some of those files. That's where it failed, because copy_tree doesn't overwrite files with symlinks. Kevin On 8/12/05, Kevin Dangoor wrote: > I'm using the embedded version of the Firebird database, and that is > where the problem is coming in. I built Firebird myself on both Tiger > and Panther. I've looked at /Library/Frameworks/Firebird.framework in > both and they look the same. So, now to what the problem is... > > Looking through py2app's output, the first framework copied is > Firebird.framework, picked up as a dependency of kinterbasdb. As > py2app continues copying stuff over, it eventually hits > linking /Users/tazzzzz/projects/app/dist/myapp.app/Contents/Frameworks/Firebird.framework/Firebird > -> Versions/Current/Firebird From brad.allen at omsdal.com Tue Aug 16 18:27:05 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Tue, 16 Aug 2005 11:27:05 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <4E82086C-001C-42BC-8B85-462C93122911@mac.com> Message-ID: Ronald Oussoren wrote on 08/14/2005 12:12:17 PM: > I could build python-ldap 2.0.9 after I removed 'sasl2' from the > 'libs' line in setup.cfg, OSX doesn't seem to have the header files > needed for sasl support in python-ldap. I was trying to include SASL because I thought that would be needed to do secure authentication with AD. Not that I really understand anything about SASL, I just naively expected it would be necessary (and found that python-ldap on Windows without SASL wouldn't authenticate to our Active Directory). I ended up trying to build OpenLDAP and Berkeley DB from source to so that python-ldap could use that, but failed miserably after serveral hours of trying. It would be really nice if python-ldap could just use the existing OpenLDAP with SASL support on Tiger; I recall from the python-ldap mailing list that this was do-able under Panther. Henning Hraban Ramm wrote on 08/14/2005 11:22:45 AM: > > Because of the difficulty in getting python-ldap to build on Mac OS 10.4 > > Perhaps this helps: > > http://twistedmatrix.com/users/tv/ldap-intro/ldap-intro.html > http://tv.debian.net/software/ldaptor/ (based on twisted, see http: > //twistedmatrix.com) That looks promising...I've been playing around with Twisted at my web hosting service...I will try building and installing on a Mac. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050816/695fd5eb/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050816/695fd5eb/attachment-0001.jpeg From brad.allen at omsdal.com Tue Aug 16 18:43:07 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Tue, 16 Aug 2005 11:43:07 -0500 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: <17464c9e9a933f21e84b563b69ebb210@shearersoftware.com> Message-ID: Andrew Shearer wrote on 08/15/2005 07:54:00 PM: > You don't necessarily have to use Kerberos. Here's a command line that > has worked for me on 10.3.9 against a Windows 2000 Active Directory > server. It authenticates testuser at mydomain.sample.com by prompting for > the password and then printing out some user information. (The flags > could be simplified to do authentication only, but I don't have an AD > server handy to test, so I didn't want to risk breaking it.) > > $ ldapsearch -H ldap://mydomain.sample.com/ -D testuser -vx -b > dc=mydomain,dc=sample,dc=com -W "(samaccountname=testuser)" sn cn fn > uid sAMAccountName That is the quick and dirty solution, but it has a couple of problems. One is that the -x option "Simple Authentication" sends the password across the network in clear text. The other problem is that if I call this from a Python script I will need to include the password as a parameter and I think the password might be visible in a ps listing (however briefly). I'm not sure how big a security hole the "ps" listing represents, and our network dept may decide the risk of sending clear text passwords across our secure internal network is acceptable. So, this may be a good fallback strategy if we don't succeed in making LDAP/SASL authentication work, or if developing a straight Kerberos solution proves too costly. Using -x option on ldapsearch has worked in my testing, but I'd really like to find out how to configure LDAP/SASL. I'm not clear on whether this requires that something be done just on the Mac client side, or if it also requires something be done on the Active Directory server configuration. Brad Allen IT Desktop Support brad.allen at omsdal.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050816/1a144bbf/attachment-0001.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 18067 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20050816/1a144bbf/attachment-0001.jpeg From bob at redivi.com Tue Aug 16 19:10:54 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 16 Aug 2005 07:10:54 -1000 Subject: [Pythonmac-SIG] Py2app & wxPython problem... In-Reply-To: <266589E1B9392B4C9195CC25A07C73B90183CFD8@usa0300ms04.na.xerox.net> References: <266589E1B9392B4C9195CC25A07C73B90183CFD8@usa0300ms04.na.xerox.net> Message-ID: On Aug 16, 2005, at 3:59 AM, Schollnick, Benjamin wrote: > > >>> Well... It is working at this point now.... >>> >>> After upgrading to 10.4.1..... But the distribution is huge (!!) >>> roughly 40 Mb.... I'll take a look into slimming it down in a few >>> days... >>> >> >> Use PyObjC instead of wxPython and it will get a lot smaller ;) >> > > True... And I know your teasing... But there are several reasons that > PyObjC may not be suitable for this task. > > 1) I am using PythonCard for the GUI > 2) I am not up to speed in PyObjC to feel that I can manage > to use it in a timely manner. > > 3) This is a cross platform (Windows, Mac OS X, and possibly *Nix) > application. PyObjC will only help on the macintosh side... 40mb uncompressed is the price you pay for that.. there isn't much to do about it. It should get considerably smaller compressed, but C++ has a nasty habit of generating a lot of code, and you're using a lot of it via wxWidgets. -bob From Chris.Barker at noaa.gov Tue Aug 16 21:31:11 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Tue, 16 Aug 2005 12:31:11 -0700 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? Message-ID: <43023EFF.2050901@noaa.gov> Hi all, I'm working on a project in which we're trying to write a Web app that can also be run stand-alone on a non-networked machine. so far, I've got a little demo that creates a tiny little database-backed web site using: Quixote Cheetah SQLite pysqlite If it's run as __main__, it starts up a little server (using Quixote SimpleServer) listening to localhost:8080, then uses the webbrowser module to start up a web browser pointing to that address. This all works great. In fact, I can use py2app to bundle it all up, and get a nice distributable clickable app that the user can click on and it fires up the web browser and away we go.. NOTE: Thanks Bob for py2app: It worked absolutely flawlessly for this, with no tweaking or anything...I'm not looking forward to the py2exe version.... So here's the issue: When you start the app, it puts a little icon on the dock, and fires up the browser, all is good. However, if you try to start the app again, it doesn't do anything, as it's already running. I don't want it to start up again, but it would be nice if it would bring up the browser again. I'm imagining that some sort of event is sent to the app when the user tries to start it up again. I'd like to catch that event and then start up the browser again. How would I do that...I've really only programmed in Linux/Unix style and with wxPython, so I have no clue about Apple events and the like. Another issue: It puts an icon in the dock, but I don't have any wxWindows or anything, so it doesn't do much. The only way I can figure out how to stop it is to right click on the icon in the dock and select force quit. I see two possible solutions: 1) Have it not put an icon in the dock, and just run in the background. then it would just keep running forever, which would probably be OK, or I could have it automatically quit if it hadn't been used for some period of time. How do you have an app started with a double-click run without an icon in the dock? 2) Give it a menu, with a the usual quit, etc. items. As it doesn't have a window, I'm not sure it this is so good, but it might be a little more Mac-like. If I do this, what is the lightest weight way to give it a menu with the basic items. Any thoughts are welcome. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From listsub at wickedgrey.com Tue Aug 16 21:36:17 2005 From: listsub at wickedgrey.com (Eli Stevens (WG.c)) Date: Tue, 16 Aug 2005 12:36:17 -0700 Subject: [Pythonmac-SIG] libpython for 2.4.1 on OSX 10.3 Message-ID: <43024031.7000705@wickedgrey.com> Hello, List newbie here, sorry if this is a FAQ (I don't see it in the cached copy of the FAQ, and the wiki seems to be down). I'm trying to get Inline::Python (allows python to be called from perl with very little glue) working on OSX 10.3. I have installed the framework build of 2.4.1 and am able to use it, run scripts, etc. Inline (the base for Inline::Python, Inline::C, etc.) seemd to install fine. When I installed Inline::Python, however, it asked me: > $ perl Makefile.PL > Found these python executables on your PATH: > 1. /usr/local/bin/python > 2. /usr/bin/python > Use which? [1] > Using /usr/local/bin/python > > This python's configuration files are messed up. You'll have have to > answer the questions yourself. Here is what Python said: > > Extra Libs: None > Python Library: None/config/None > Include Path: None > > 1. LIBS option. I need to know what extra libraries, if any, > are required by this build of python. I recommend this: > None > > Enter extra libraries (e.g. -lfoo -lbar) [None] > > 2. LIBRARY option. The location of the python library. > Inline::Python needs to link against it to use Python. > > Here are the libraries I know about: > > Which? Or enter another. [1] /Library/Frameworks/Python.framework/Versions/2.4/Python > > 3. INCLUDE option. The location of the python include files. > Inline::Python needs these to compile. > > Here are the locations I know about: > > Which? Or enter another. [1] /Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/ Now, all of my entries above (everything after [1]) are just guesses that don't seem to work (I've tried fiddling with the things I gave it, and the include dir seems to be correct). When I run something that uses Inline, I get the following: > $ perl test.pl > Can't make loaded symbols global on this platform while loading /Library/Perl//darwin/auto/Inline/Python/Python.bundle at /Library/Perl//darwin/DynaLoader.pm line 229. > dyld: /usr/local/bin/perl Undefined symbols: > _PyCallable_Check > _PyClass_Type ...much removed... > __Py_NoneStruct > __Py_TrueStruct > Failed to autogenerate /Users/elis/code/play/perl/_Inline/config. > > at test.pl line 13 > BEGIN failed--compilation aborted at test.pl line 13. In my searching the closest answer I have found is "use -framwork instead", but I'm not really in control of the code (and I'd rather not start munging around inside Inline internals if I don't have to). What should I do? Is there a libpython laying around somewhere that I am unable to locate? Is there an easy way to build it? Thanks for any help, Eli From kevino at tulane.edu Tue Aug 16 21:45:04 2005 From: kevino at tulane.edu (Kevin Ollivier) Date: Tue, 16 Aug 2005 12:45:04 -0700 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: <43023EFF.2050901@noaa.gov> References: <43023EFF.2050901@noaa.gov> Message-ID: <4FD1AD2F-65BE-42F3-9A28-94C109C17362@tulane.edu> Hi Chris, On Aug 16, 2005, at 12:31 PM, Chris Barker wrote: > Hi all, > > I'm working on a project in which we're trying to write a Web app that > can also be run stand-alone on a non-networked machine. I can't answer the questions you posed below, as I do almost all of my Mac work with wxPython, but when I read about what you're trying to do I couldn't help but think that this is exactly what ActiveGrid AppBuilder is for: http://www.activegrid.com Granted, it's wxPython and thus not as lightweight, but apps you create with it can be run locally on the user's machine or can be deployed to a server with their server components installed. It allows you to use SQLite, Oracle, MySQL, or PostGreSQL for the database. It's also pretty nice for point-and-click creation of full- fledged database apps, so the apps are easy to customize. (See their Petstore demo that comes with the app.) Not sure what your exact needs are, but this might be at least worth a look if you haven't seen it already. Kevin > so far, I've got > a little demo that creates a tiny little database-backed web site > using: > > Quixote > Cheetah > SQLite > pysqlite > > If it's run as __main__, it starts up a little server (using Quixote > SimpleServer) listening to localhost:8080, then uses the webbrowser > module to start up a web browser pointing to that address. This all > works great. In fact, I can use py2app to bundle it all up, and get a > nice distributable clickable app that the user can click on and it > fires > up the web browser and away we go.. > > NOTE: Thanks Bob for py2app: It worked absolutely flawlessly for this, > with no tweaking or anything...I'm not looking forward to the py2exe > version.... > > So here's the issue: > > When you start the app, it puts a little icon on the dock, and > fires up > the browser, all is good. However, if you try to start the app > again, it > doesn't do anything, as it's already running. I don't want it to start > up again, but it would be nice if it would bring up the browser again. > > I'm imagining that some sort of event is sent to the app when the user > tries to start it up again. I'd like to catch that event and then > start > up the browser again. How would I do that...I've really only > programmed > in Linux/Unix style and with wxPython, so I have no clue about Apple > events and the like. > > Another issue: > It puts an icon in the dock, but I don't have any wxWindows or > anything, > so it doesn't do much. The only way I can figure out how to stop it is > to right click on the icon in the dock and select force quit. I see > two > possible solutions: > > 1) Have it not put an icon in the dock, and just run in the > background. > then it would just keep running forever, which would probably be > OK, or > I could have it automatically quit if it hadn't been used for some > period of time. How do you have an app started with a double-click run > without an icon in the dock? > > 2) Give it a menu, with a the usual quit, etc. items. As it doesn't > have > a window, I'm not sure it this is so good, but it might be a little > more > Mac-like. If I do this, what is the lightest weight way to give it a > menu with the basic items. > > Any thoughts are welcome. > > -Chris > > -- > Christopher Barker, Ph.D. > Oceanographer > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chris.Barker at noaa.gov > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > From bob at redivi.com Tue Aug 16 21:51:57 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 16 Aug 2005 09:51:57 -1000 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: <43023EFF.2050901@noaa.gov> References: <43023EFF.2050901@noaa.gov> Message-ID: On Aug 16, 2005, at 9:31 AM, Chris Barker wrote: > When you start the app, it puts a little icon on the dock, and > fires up > the browser, all is good. However, if you try to start the app > again, it > doesn't do anything, as it's already running. I don't want it to start > up again, but it would be nice if it would bring up the browser again. > > I'm imagining that some sort of event is sent to the app when the user > tries to start it up again. I'd like to catch that event and then > start > up the browser again. How would I do that...I've really only > programmed > in Linux/Unix style and with wxPython, so I have no clue about Apple > events and the like. IIRC, on Mac OS X, there isn't a difference between "re-launching" and becoming active. Double-clicking the app should have the same behavior as cmd-tabbing over to it (or using expos?, or the dock, etc.), because LaunchServices recognizes that the application is already open and just tells it to activate. Unless, of course, your .app is really just a launcher stub for a different process, in which case you could wire up your own behavior to the double-click because your launcher process wouldn't be around for LaunchServices to see post-launch. > Another issue: > It puts an icon in the dock, but I don't have any wxWindows or > anything, > so it doesn't do much. The only way I can figure out how to stop it is > to right click on the icon in the dock and select force quit. I see > two > possible solutions: > > 1) Have it not put an icon in the dock, and just run in the > background. > then it would just keep running forever, which would probably be > OK, or > I could have it automatically quit if it hadn't been used for some > period of time. How do you have an app started with a double-click run > without an icon in the dock? put LSUIElement = True in your plist (using the appropriate syntax for doing that). http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Articles/PListKeys.html > 2) Give it a menu, with a the usual quit, etc. items. As it doesn't > have > a window, I'm not sure it this is so good, but it might be a little > more > Mac-like. If I do this, what is the lightest weight way to give it a > menu with the basic items. The absolute lightest way to do that is to write the Objective-C code to do it yourself, otherwise, you should use PyObjC. The majority of this work is just making the menu in Interface Builder. -bob From bob at redivi.com Tue Aug 16 22:05:05 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 16 Aug 2005 10:05:05 -1000 Subject: [Pythonmac-SIG] libpython for 2.4.1 on OSX 10.3 In-Reply-To: <43024031.7000705@wickedgrey.com> References: <43024031.7000705@wickedgrey.com> Message-ID: <6B03CCA9-A550-4E4E-8354-5704B788B0F4@redivi.com> On Aug 16, 2005, at 9:36 AM, Eli Stevens (WG.c) wrote: > I'm trying to get Inline::Python (allows python to be called from perl > with very little glue) working on OSX 10.3. I have installed the > framework build of 2.4.1 and am able to use it, run scripts, etc. Sounds like their build scripts are broken. The correct way to determine how to link to Python is to ask Python (via distutils, or read its Makefile directly). You should talk to them about this problem. However, the quick & dirty workaround would to be to do something like this: sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/include/ python2.4 /usr/local/include/python2.4 sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/Python / usr/local/lib/libpython2.4.dylib It should be able to use -lpython2.4 at that point, and might even find the include files where it expects to find them. -bob From njriley at uiuc.edu Tue Aug 16 22:11:49 2005 From: njriley at uiuc.edu (Nicholas Riley) Date: Tue, 16 Aug 2005 15:11:49 -0500 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: References: <43023EFF.2050901@noaa.gov> Message-ID: <20050816201149.GA63373@uiuc.edu> On Tue, Aug 16, 2005 at 09:51:57AM -1000, Bob Ippolito wrote: > IIRC, on Mac OS X, there isn't a difference between "re-launching" > and becoming active. Double-clicking the app should have the same > behavior as cmd-tabbing over to it (or using expos?, or the dock, > etc.), because LaunchServices recognizes that the application is > already open and just tells it to activate. It used to be, back in System 7, but at some point (7.6? 8.0?) the 'aevt'/'rapp' (kAEReopenApplication) event was sent when an application is double-clicked in the Finder and is already open. The same occurs when you click on the application's dock icon in OS X. You can test this, for example, with TextEdit. Open it, close the untitled window, switch somewhere else, then cmd-tab to it: you don't get an untitled window. Then switch somewhere else and click on its icon in the dock: you do get an untitled window. > > Another issue: It puts an icon in the dock, but I don't have any > > wxWindows or anything, so it doesn't do much. The only way I can > > figure out how to stop it is to right click on the icon in the > > dock and select force quit. I see two possible solutions: It depends on the Web server you're using and how well it fits with CF/NSRunLoop and friends. Chris might be able to run a regular PyObjC app (from which you can easily set up a NSApplication delegate to implement applicationShouldHandleReopen_hasVisibleWindows_) and the Web server in other threads, or not... -- Nicholas Riley | From Chris.Barker at noaa.gov Tue Aug 16 22:31:12 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Tue, 16 Aug 2005 13:31:12 -0700 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: <4FD1AD2F-65BE-42F3-9A28-94C109C17362@tulane.edu> References: <43023EFF.2050901@noaa.gov> <4FD1AD2F-65BE-42F3-9A28-94C109C17362@tulane.edu> Message-ID: <43024D10.2030603@noaa.gov> Kevin Ollivier wrote: > I can't answer the questions you posed below, as I do almost all of my > Mac work with wxPython, but when I read about what you're trying to do > I couldn't help but think that this is exactly what ActiveGrid > AppBuilder is for: > > http://www.activegrid.com > > Granted, it's wxPython and thus not as lightweight, but apps you create > with it can be run locally on the user's machine or can be deployed to > a server with their server components installed. It allows you to use > SQLite, Oracle, MySQL, or PostGreSQL for the database. It's also pretty > nice for point-and-click creation of full- fledged database apps, so the > apps are easy to customize. (See their Petstore demo that comes with > the app.) Not sure what your exact needs are, but this might be at > least worth a look if you haven't seen it already. No, I hadn't. It's a little hard to tell what the heck it really is from the web page..the usual marketing-speak, no mention of wx, for instance. However, these are our needs: The web version needs to run on a basic browser, with not extra plug-ins or custom clients. We'd like to make the stand-alone version share as much code as possible with the web version. That means the same GUI, which means it would run in a browser. It also needs to be a simple install, i.e. not MySQL + apache + our app. Activegrid really doesn't seem to provide this, but I'll look into it more. While I'm talking to Kevin: The other idea I had was to use wxMozilla, to embed a browser in a wxPython app, then we could use the same code to generate all the HTML, and display the UI through wxMozilla, without having to use a client-server set up and http. This came up because apparently some Windows systems turn off all TCP/IP when the Ethernet cable is disconnected. My question is: with wxMozilla, can you capture all the GET and/or POST events, so that you can essentially run a web app and browser all within one process? -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From Chris.Barker at noaa.gov Wed Aug 17 00:02:04 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Tue, 16 Aug 2005 15:02:04 -0700 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: References: <43023EFF.2050901@noaa.gov> Message-ID: <4302625C.3000101@noaa.gov> Bob Ippolito wrote: > IIRC, on Mac OS X, there isn't a difference between "re-launching" and > becoming active. Double-clicking the app should have the same behavior > as cmd-tabbing over to it (or using expos?, or the dock, etc.), because > LaunchServices recognizes that the application is already open and just > tells it to activate. Nicholas Riley wrote: > It used to be, back in System 7, but at some point (7.6? 8.0?) the > 'aevt'/'rapp' (kAEReopenApplication) event was sent when an > application is double-clicked in the Finder and is already open. The > same occurs when you click on the application's dock icon in OS X. OK, so how do I catch the 'aevt'/'rapp' (kAEReopenApplication) event? > It depends on the Web server you're using and how well it fits with > CF/NSRunLoop and friends. Chris might be able to run a regular PyObjC > app (from which you can easily set up a NSApplication delegate to > implement applicationShouldHandleReopen_hasVisibleWindows_) and the > Web server in other threads, or not... So, even if all I want to do is catch that OpenApplication event, I would need to have a PyObjApp running, event loop and all? Which may not be a big deal, but I will have to deal with Nicholas' issue of the web servers loop and the apps loop. > Unless, of course, your .app is really just a > launcher stub for a different process, in which case you could wire up > your own behavior to the double-click because your launcher process > wouldn't be around for LaunchServices to see post-launch. Well, it's not, but that is an idea. If I have a little launcher stub, it could just check and see what's running, and then launch what it needs to, then quit. That way it would just get started up again if the user double clicked again, and then do what it needed to. That would require more than one app to be installed, however. Which leads me to another idea: Can I tell OS-X that I DO want another instance of the app launched rather than raising an existing one? That way, I could do the Windows trick: On launch, check for an existing one, of it's there, start the browser and quit. If it's not, start the server, then the browser, and don't quit. This would let me have the app and the "launching stub" be the same app. >> How do you have an app started with a double-click run >> without an icon in the dock? > > put LSUIElement = True in your plist (using the appropriate syntax for > doing that). > http://developer.apple.com/documentation/MacOSX/Conceptual/ > BPRuntimeConfig/Articles/PListKeys.html Thanks, I'll give that a try >> What is the lightest weight way to give it a >> menu with the basic items. > > The absolute lightest way to do that is to write the Objective-C code > to do it yourself, otherwise, you should use PyObjC. The majority of > this work is just making the menu in Interface Builder. Sounds easy enough, though I might just go with wxPython, as I need to do something similar on Windows and Linux anyway. It's kind of a lot of overhead for such a small task, however. Thanks for your input, -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From njriley at uiuc.edu Wed Aug 17 00:07:57 2005 From: njriley at uiuc.edu (Nicholas Riley) Date: Tue, 16 Aug 2005 17:07:57 -0500 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: <4302625C.3000101@noaa.gov> References: <43023EFF.2050901@noaa.gov> <4302625C.3000101@noaa.gov> Message-ID: <20050816220757.GC66286@uiuc.edu> On Tue, Aug 16, 2005 at 03:02:04PM -0700, Chris Barker wrote: > Well, it's not, but that is an idea. If I have a little launcher stub, > it could just check and see what's running, and then launch what it > needs to, then quit. That way it would just get started up again if the > user double clicked again, and then do what it needed to. That would > require more than one app to be installed, however. > > Which leads me to another idea: Can I tell OS-X that I DO want another > instance of the app launched rather than raising an existing one? That > way, I could do the Windows trick: On launch, check for an existing one, > of it's there, start the browser and quit. If it's not, start the > server, then the browser, and don't quit. This would let me have the app > and the "launching stub" be the same app. You can do this (LaunchServices lets you multi-launch apps, or you can always execute the binary directly), but not from the Finder. However, you could do something slightly different, and closer to your first idea: embed the actual app inside the launcher app's bundle. Then start your real app, with an icon or not, when the launcher app runs; the launcher app would then exit. If the launcher app notes that the real app is already running, then just open the page in the browser. The user would only see one app, and since the Finder in OS X no longer shows apps differently when they're open, they'd never know the difference. -- Nicholas Riley | From listsub at wickedgrey.com Wed Aug 17 00:36:18 2005 From: listsub at wickedgrey.com (Eli Stevens (WG.c)) Date: Tue, 16 Aug 2005 15:36:18 -0700 Subject: [Pythonmac-SIG] libpython for 2.4.1 on OSX 10.3 In-Reply-To: <6B03CCA9-A550-4E4E-8354-5704B788B0F4@redivi.com> References: <43024031.7000705@wickedgrey.com> <6B03CCA9-A550-4E4E-8354-5704B788B0F4@redivi.com> Message-ID: <43026A62.9000908@wickedgrey.com> Bob Ippolito wrote: > > On Aug 16, 2005, at 9:36 AM, Eli Stevens (WG.c) wrote: > >> I'm trying to get Inline::Python (allows python to be called from perl >> with very little glue) working on OSX 10.3. I have installed the >> framework build of 2.4.1 and am able to use it, run scripts, etc. > > > Sounds like their build scripts are broken. The correct way to > determine how to link to Python is to ask Python (via distutils, or > read its Makefile directly). You should talk to them about this problem. Thanks for the quick response. :) I'll see what trouble I can stir up on that side of the fence and will report back. :) > However, the quick & dirty workaround would to be to do something like > this: > > sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/include/ > python2.4 /usr/local/include/python2.4 > sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/Python / > usr/local/lib/libpython2.4.dylib > > It should be able to use -lpython2.4 at that point, and might even find > the include files where it expects to find them. Previously, I had tried giving the real filenames to the inline install, and it didn't work. After creating the symlinks, the behavior remained unchanged (including a make clean; make; make install of Inline::Python). :/ As far as I know, I used the standard MacPython package to install[1], and I don't believe that I chose anything but standard/default options. Are there other libraries that need to be pulled in along with libpython? Some -lfoo I need to specify? I feel like I'm missing something obvious, but I'm a relative OSX newbie, and am not really familiar with the spin OSX puts on things targeted for Linux (not that I'm a Linux guru either). Thanks again for your help, Eli [1] - MD5 (MacPython-OSX-2.4.1-1.dmg) = 1db4d575a2c5d6ab24be10c38154551a From Chris.Barker at noaa.gov Wed Aug 17 01:10:08 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Tue, 16 Aug 2005 16:10:08 -0700 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: <20050816220757.GC66286@uiuc.edu> References: <43023EFF.2050901@noaa.gov> <4302625C.3000101@noaa.gov> <20050816220757.GC66286@uiuc.edu> Message-ID: <43027250.9080604@noaa.gov> Nicholas Riley wrote: >>Which leads me to another idea: Can I tell OS-X that I DO want another >>instance of the app launched rather than raising an existing one? > You can do this (LaunchServices lets you multi-launch apps, or you can > always execute the binary directly), but not from the Finder. Darn. > However, you could do something slightly different, and closer to your > first idea: embed the actual app inside the launcher app's > bundle. Then start your real app, with an icon or not, when the > launcher app runs; the launcher app would then exit. If the launcher > app notes that the real app is already running, then just open the > page in the browser. > > The user would only see one app, and since the Finder in OS X no > longer shows apps differently when they're open, they'd never know the > difference. I like this. Now I have to figure out how to put another app inside a Py2app'd bundle. The "main" app and the one inside would both be python apps. It looks to me like a Py2app bundle has a little stub as the executable. Could I build two py2app bundles, of two different scripts, then just drag the executable from one into the other to get two in one, that would share all the resources? I guess I'll go try. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From bob at redivi.com Wed Aug 17 02:53:24 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 16 Aug 2005 14:53:24 -1000 Subject: [Pythonmac-SIG] libpython for 2.4.1 on OSX 10.3 In-Reply-To: <43026A62.9000908@wickedgrey.com> References: <43024031.7000705@wickedgrey.com> <6B03CCA9-A550-4E4E-8354-5704B788B0F4@redivi.com> <43026A62.9000908@wickedgrey.com> Message-ID: <1C1815DF-462F-42E7-9D2B-229FA104FC2E@redivi.com> On Aug 16, 2005, at 12:36 PM, Eli Stevens (WG.c) wrote: > Bob Ippolito wrote: > >> On Aug 16, 2005, at 9:36 AM, Eli Stevens (WG.c) wrote: >> >>> I'm trying to get Inline::Python (allows python to be called from >>> perl >>> with very little glue) working on OSX 10.3. I have installed the >>> framework build of 2.4.1 and am able to use it, run scripts, etc. >>> >> Sounds like their build scripts are broken. The correct way to >> determine how to link to Python is to ask Python (via distutils, >> or read its Makefile directly). You should talk to them about >> this problem. >> > > Thanks for the quick response. :) > > I'll see what trouble I can stir up on that side of the fence and > will report back. :) > > > >> However, the quick & dirty workaround would to be to do something >> like this: >> sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/ >> include/ python2.4 /usr/local/include/python2.4 >> sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/ >> Python / usr/local/lib/libpython2.4.dylib >> It should be able to use -lpython2.4 at that point, and might >> even find the include files where it expects to find them. >> > > Previously, I had tried giving the real filenames to the inline > install, and it didn't work. After creating the symlinks, the > behavior remained unchanged (including a make clean; make; make > install of Inline::Python). :/ As far as I know, I used the > standard MacPython package to install[1], and I don't believe that > I chose anything but standard/default options. Are there other > libraries that need to be pulled in along with libpython? Some - > lfoo I need to specify? Nope, that's it. > I feel like I'm missing something obvious, but I'm a relative OSX > newbie, and am not really familiar with the spin OSX puts on things > targeted for Linux (not that I'm a Linux guru either). Well, the obvious thing is that Inline::Python's build process is broken :) -bob From bob at redivi.com Wed Aug 17 03:01:38 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 16 Aug 2005 15:01:38 -1000 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: <43027250.9080604@noaa.gov> References: <43023EFF.2050901@noaa.gov> <4302625C.3000101@noaa.gov> <20050816220757.GC66286@uiuc.edu> <43027250.9080604@noaa.gov> Message-ID: <5301F678-F3F2-43AD-B744-BABFB1797B9B@redivi.com> On Aug 16, 2005, at 1:10 PM, Chris Barker wrote: > Nicholas Riley wrote: > >>> Which leads me to another idea: Can I tell OS-X that I DO want >>> another >>> instance of the app launched rather than raising an existing one? >>> > > >> You can do this (LaunchServices lets you multi-launch apps, or you >> can >> always execute the binary directly), but not from the Finder. >> > > Darn. > > >> However, you could do something slightly different, and closer to >> your >> first idea: embed the actual app inside the launcher app's >> bundle. Then start your real app, with an icon or not, when the >> launcher app runs; the launcher app would then exit. If the launcher >> app notes that the real app is already running, then just open the >> page in the browser. >> >> The user would only see one app, and since the Finder in OS X no >> longer shows apps differently when they're open, they'd never know >> the >> difference. >> > > I like this. Now I have to figure out how to put another app inside a > Py2app'd bundle. The "main" app and the one inside would both be > python > apps. > > It looks to me like a Py2app bundle has a little stub as the > executable. > Could I build two py2app bundles, of two different scripts, then just > drag the executable from one into the other to get two in one, that > would share all the resources? > > I guess I'll go try. Nope that doesn't work.. What you should do is simply re-execute the same application with different command line arguments. LaunchServices won't pick up on the second launch because it was done outside of LaunchServices. -bob From matthias.oberlaender at daimlerchrysler.com Wed Aug 17 17:02:59 2005 From: matthias.oberlaender at daimlerchrysler.com (matthias.oberlaender@daimlerchrysler.com) Date: Wed, 17 Aug 2005 17:02:59 +0200 Subject: [Pythonmac-SIG] Set/get finder color label of a file In-Reply-To: Message-ID: I would very much like to get and set the color label (or 'label index') of a file programmatically from Python. I spent quite some time googling, but was unable to extract the necessary bits how to do it with a few Carbon calls. Can somebody on the list help me out on this? (I surely don't want to get any deeper into Carbon. Long live Cocoa and PyObjc ! ;-) greetings, matthias From dave.opstad at monotypeimaging.com Wed Aug 17 19:18:49 2005 From: dave.opstad at monotypeimaging.com (Dave Opstad) Date: Wed, 17 Aug 2005 10:18:49 -0700 Subject: [Pythonmac-SIG] New PyObjC article Message-ID: I just noticed a new article (dated Monday) on using PyObjC has been posted at the Apple Developer site: http://developer.apple.com/cocoa/pyobjc.html Cheers! Dave From ronaldoussoren at mac.com Wed Aug 17 09:55:43 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Wed, 17 Aug 2005 09:55:43 +0200 Subject: [Pythonmac-SIG] Active Directory authentication on Mac using Python In-Reply-To: References: Message-ID: On 16-aug-2005, at 18:27, brad.allen at omsdal.com wrote: > > It would be really nice if python-ldap could just use the existing > OpenLDAP with SASL support on Tiger; I recall from the python-ldap > mailing list that this was do-able under Panther. The required header files are not installed by default. You might be able to get away with using the sasl.h from cygnus' SASL implementation. Ronald From hengist.podd at virgin.net Thu Aug 18 18:23:16 2005 From: hengist.podd at virgin.net (has) Date: Thu, 18 Aug 2005 17:23:16 +0100 Subject: [Pythonmac-SIG] Set/get finder color label of a file Message-ID: matthias oberlaender wrote: >I would very much like to get and set the color label (or 'label index') >of a file programmatically from Python. I spent quite some time googling, >but was unable to extract the necessary bits how to do it with a few >Carbon calls. Dunno about Carbon APIs, but it's easy enough using IPC: #!/usr/bin/env pythonw from appscript import * from macfile import Alias path = '/Users/has/test.txt' label = 3 app('Finder').items[Alias(path)].label_index.set(label) print app('Finder').items[Alias(path)].label_index.get() See . Note: if you install appscript using the binary installer (easiest), you'll also need to d/l the latest appscript-0.13.1.tar.gz package from and install that as well. HTH has -- http://freespace.virgin.net/hamish.sanderson/ From fonnesbeck at gmail.com Fri Aug 19 03:20:58 2005 From: fonnesbeck at gmail.com (Chris Fonnesbeck) Date: Thu, 18 Aug 2005 21:20:58 -0400 Subject: [Pythonmac-SIG] compiling wxPython Message-ID: <723eb69305081818205dbe46a3@mail.gmail.com> Has anyone had success compiling wxPython on Tiger? I get the following when trying to compile: ./bk-make-pch .pch/wxprec_basedll/wx/wxprec.h.gch wx/wxprec.h g++ -I.pch/wxprec_basedll -D__WXMAC__ -I./src/tiff -I./src/jpeg -I./src/expat/lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -dynamic -fPIC -DPIC -DWX_PRECOMP -DNO_GCC_PRAGMA -Ilib/wx/include/mac-ansi-release-2.6 -I./include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fpascal-strings -I./src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -O2 -Wall -Wno-ctor-dtor-privacy -fno-common cc1plus: error: unrecognized command line option "-fpascal-strings" make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] Error 1 Thanks, Chris From bob at redivi.com Fri Aug 19 03:27:53 2005 From: bob at redivi.com (Bob Ippolito) Date: Thu, 18 Aug 2005 15:27:53 -1000 Subject: [Pythonmac-SIG] compiling wxPython In-Reply-To: <723eb69305081818205dbe46a3@mail.gmail.com> References: <723eb69305081818205dbe46a3@mail.gmail.com> Message-ID: On Aug 18, 2005, at 3:20 PM, Chris Fonnesbeck wrote: > Has anyone had success compiling wxPython on Tiger? I get the > following when trying to compile: > > ./bk-make-pch .pch/wxprec_basedll/wx/wxprec.h.gch wx/wxprec.h g++ > -I.pch/wxprec_basedll -D__WXMAC__ -I./src/tiff -I./src/jpeg > -I./src/expat/lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 > -dynamic -fPIC -DPIC -DWX_PRECOMP -DNO_GCC_PRAGMA > -Ilib/wx/include/mac-ansi-release-2.6 -I./include > -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -fpascal-strings > -I./src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon -O2 -Wall > -Wno-ctor-dtor-privacy -fno-common > cc1plus: error: unrecognized command line option "-fpascal-strings" > make: *** [.pch/wxprec_basedll/wx/wxprec.h.gch] Error 1 I haven't tried it, but are you sure you're using Apple's g++? Mine understands -fpascal-strings just fine. % g++ --version powerpc-apple-darwin8-g++-4.0.0 (GCC) 4.0.0 (Apple Computer, Inc. build 5026) -bob From smithsm at samuelsmith.org Fri Aug 19 04:37:15 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Thu, 18 Aug 2005 20:37:15 -0600 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <42FCFCD9.1070002@noaa.gov> References: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> <7DBA349F-5AA0-49D7-B12E-AB2CA2D7B620@samuelsmith.org> <42FCFCD9.1070002@noaa.gov> Message-ID: <13192D4F-0C4A-4AA9-8B4B-BABCDC6F561D@samuelsmith.org> How do I get it to include the g77 install which it needs to build? On 12 Aug, 2005, at 13:47, Chris Barker wrote: > > > Samuel M. Smith wrote: > >> The gcc 3.3 issue was the key. Thanks for help. >> >> Below is a list of what I did. >> >> Could someone take these directions and create a pkg installer for >> scipy? So others can just double click to install? >> > > Great idea..why not you? py2app bdist_mpkg is fabulous. If you can > run: > > python setup.py build > > then you should be able to run > > bdist_mpkg > > and have it build a package for you. The trick is shared libs. When I > did this for matplotlib, I ended up making sure the libs it needed > were > statically linked. > > -good luck! > > > >> ****************** >> scipy installation instruction for framework python 2.4.1 on OS X >> 10.4.2 >> >> Get the following files >> http://pythonmac.org/packages/Numeric-23.7-py2.4-macosx10.3.zip >> http://pythonmac.org/packages/numarray-1.1.1-py2.4-macosx10.3.zip >> http://prdownloads.sf.net/hpc/g77v3.4-bin.tar.gz?download >> http://www.fftw.org/fftw-2.1.5.tar.gz >> http://prdownloads.sourceforge.net/aquaterm/AquaTerm1.0.b2.dmg >> http://prdownloads.sourceforge.net/gnuplot/Gnuplot-4.0.0.dmg >> http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz >> >> Make sure framework python 2.41 is default python by putting >> /usr/local/bin at the front of shell PATH variable >> >> Install Numeric 23.7 from pkg installer >> Install numarray 1.1.1 from pkg installer >> >> Set default gcc compiler to version 3.3 this must be so for >> compatibility with g77 fortran compiler used in scipy >> >> >>> sudo gcc_select 3.3 >>> >> >> Install g77 3.4 >> >>> sudo tar -xvf g77v3.4-bin.tar -C / >>> >> >> Install fftw 2.1.5 >> >> >>> tar -xvzf fftw-2.1.5.tar.gz (or tar -xvf if it has already been >>> >> gunzipped) >> >>> cd fftw* >>> ./configure >>> make >>> sudo make install >>> >> >> >> Install F2PY 2.1.5 >> >>> tar -xvzf F2PY-2-latest.tar.gz >>> cd F2PY* >>> sudo python setup.py install >>> >> >> Install AquaTerm 1.0b2 from pkg installer >> >> Install GnuPlot 4.0 from pkg installer >> >> Untar the scipy_cvs_2005_07_29.tgx >> cd to the scipy directory >> Build and Install scipy >> >> >>> python setup.py build >>> sudo python setup.py install >>> >> >> Test >> >>> python >>> >>>>> import scipy >>>>> scipy.test() >>>>> >> >> Expect that some tests will fail. The test function should >> complete OK. >> >> ******************************************** >> >> >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> > > -- > Christopher Barker, Ph.D. > Oceanographer > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chris.Barker at noaa.gov > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > ********************************************************************** Samuel M. Smith Ph.D. 2966 Fort Hill Road Eagle Mountain, Utah 84043 801-768-2768 voice 801-768-2769 fax ********************************************************************** "The greatest source of failure and unhappiness in the world is giving up what we want most for what we want at the moment" ********************************************************************** From matthias.oberlaender at daimlerchrysler.com Fri Aug 19 14:11:52 2005 From: matthias.oberlaender at daimlerchrysler.com (matthias.oberlaender@daimlerchrysler.com) Date: Fri, 19 Aug 2005 14:11:52 +0200 Subject: [Pythonmac-SIG] Set/get finder color label of a file In-Reply-To: Message-ID: has wrote: > matthias oberlaender wrote: > >I would very much like to get and set the color label (or 'label index') > >of a file programmatically from Python. I spent quite some time googling, > >but was unable to extract the necessary bits how to do it with a few > >Carbon calls. > > Dunno about Carbon APIs, but it's easy enough using IPC: > > #!/usr/bin/env pythonw > > from appscript import * > from macfile import Alias > > path = '/Users/has/test.txt' > label = 3 > > app('Finder').items[Alias(path)].label_index.set(label) > print app('Finder').items[Alias(path)].label_index.get() > > > See . > Note: if you install appscript using the binary installer (easiest), > you'll also need to d/l the latest appscript-0.13.1.tar.gz package from < > http://freespace.virgin.net/hamish.sanderson/appscript_source.html> > and install that as well. > > HTH > > has Looked promising. Very concise. Thank you very much. However, I had no look installing appscript. I installed the two packages as you suggested (OS X 10.3 with Apple supplied Python). Below is what happened. Maybe some more updates necessary? (I assume installing appscript-0.13.1.tar.gz was meant as a patch to the pure binary installation.) from appscript import app from macfile import Alias import os path = '/Users/oberlaender/dead.letter' assert os.path.exists(path) print app('Finder').items[Alias(path)].label_index.get() Without AppscriptTerminologyServer running: pythonw -i test.py Traceback (most recent call last): File "test.py", line 8, in ? print app('Finder').items[Alias(path)].label_index.get() File "/Users/oberlaender/Desktop/appscript-0.13.1/appscript/specifier.py", line 390, in __init__ translationTables = tablesForLocalApp(path) File "/Users/oberlaender/Desktop/appscript-0.13.1/appscript/translationtablereader.py", line 142, in tablesForLocalApp classes, enums, properties, elements, commands = buildTables(path) File "/Users/oberlaender/Desktop/appscript-0.13.1/appscript/translationtablebuilder.py", line 99, in buildTables aeteparser.parse(getaete(path), p) File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/osaterminology/aeteparser.py", line 254, in parse File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/osaterminology/aeteparser.py", line 64, in list File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/osaterminology/aeteparser.py", line 182, in _parseSuite File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/osaterminology/aeteparser.py", line 64, in list File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/osaterminology/aeteparser.py", line 100, in _parseCommand TypeError: start_command() takes exactly 6 arguments (7 given) >>> With AppscriptTerminologyServer running: pythonw -i test.py Traceback (most recent call last): File "test.py", line 8, in ? print app('Finder').items[Alias(path)].label_index.get() File "/Users/oberlaender/Desktop/appscript-0.13.1/appscript/specifier.py", line 203, in __call__ raise CommandError(self, (args, kargs), e) appscript.specifier.CommandError: event() got an unexpected keyword argument 'resulttype' Failed command: app(u'/System/Library/CoreServices/Finder.app').items[Alias(u'/Users/oberlaender/dead.letter')].label_index.get() >>> -- Matthias From hengist.podd at virgin.net Fri Aug 19 14:46:16 2005 From: hengist.podd at virgin.net (has) Date: Fri, 19 Aug 2005 13:46:16 +0100 Subject: [Pythonmac-SIG] Set/get finder color label of a file Message-ID: matthias oberlaender wrote: >I had no >look installing appscript. I installed the two packages as you suggested >(OS X 10.3 with Apple supplied Python). Below is what happened. Maybe some >more updates necessary? Oops, binary installer's older than I thought. You'll also need the latest versions of aem and osaterminology: http://freespace.virgin.net/hamish.sanderson/aem-0.8.0.tar.gz http://freespace.virgin.net/hamish.sanderson/osaterminology-0.6.0.tar.gz That should do it. Any problems, let me know. has -- http://freespace.virgin.net/hamish.sanderson/ From Chris.Barker at noaa.gov Fri Aug 19 18:00:11 2005 From: Chris.Barker at noaa.gov (Chris Barker) Date: Fri, 19 Aug 2005 09:00:11 -0700 Subject: [Pythonmac-SIG] SciPy install on Tiger with Python 2.4.1 framework In-Reply-To: <13192D4F-0C4A-4AA9-8B4B-BABCDC6F561D@samuelsmith.org> References: <107F5E58-78BB-47B1-8FA4-4201667986E4@unsw.edu.au> <7DBA349F-5AA0-49D7-B12E-AB2CA2D7B620@samuelsmith.org> <42FCFCD9.1070002@noaa.gov> <13192D4F-0C4A-4AA9-8B4B-BABCDC6F561D@samuelsmith.org> Message-ID: <4306020B.9020901@noaa.gov> Samuel M. Smith wrote: > How do I get it to include the g77 install which it needs to build? I'm not sure I understand your question. bdist_mpkg creates a binary package from a python package created with distutils, so it doesn't need to include the compiler. However, you may be asking about shared libs that come with g77. In that case, I don't think you can get it to include them. This leaves two options: 1) Package up the required libs another way, as a tarball or whatever. 2) statically link everything that isn't a system library --that's what I did for matplotlib It's also possible to include the shared libs in a package, but I don't think bdist_mpkg does that for you. However, it's built on the py2app machinery, which can include shared libs in a application bundle, so it may be possible. Charles Moad created a matplotlib package that includes the shared libs required, you might try to find out how he did it. http://sda.iu.edu/projects.html Also be sure to check out Robert Kern's MacEnthon project as well. http://www.scipy.org/wikis/featurerequests/MacEnthon -Chris > On 12 Aug, 2005, at 13:47, Chris Barker wrote: > >> >> >> Samuel M. Smith wrote: >> >>> The gcc 3.3 issue was the key. Thanks for help. >>> >>> Below is a list of what I did. >>> >>> Could someone take these directions and create a pkg installer for >>> scipy? So others can just double click to install? >>> >> >> Great idea..why not you? py2app bdist_mpkg is fabulous. If you can run: >> >> python setup.py build >> >> then you should be able to run >> >> bdist_mpkg >> >> and have it build a package for you. The trick is shared libs. When I >> did this for matplotlib, I ended up making sure the libs it needed were >> statically linked. >> >> -good luck! >> >> >> >>> ****************** >>> scipy installation instruction for framework python 2.4.1 on OS X >>> 10.4.2 >>> >>> Get the following files >>> http://pythonmac.org/packages/Numeric-23.7-py2.4-macosx10.3.zip >>> http://pythonmac.org/packages/numarray-1.1.1-py2.4-macosx10.3.zip >>> http://prdownloads.sf.net/hpc/g77v3.4-bin.tar.gz?download >>> http://www.fftw.org/fftw-2.1.5.tar.gz >>> http://prdownloads.sourceforge.net/aquaterm/AquaTerm1.0.b2.dmg >>> http://prdownloads.sourceforge.net/gnuplot/Gnuplot-4.0.0.dmg >>> http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz >>> >>> Make sure framework python 2.41 is default python by putting >>> /usr/local/bin at the front of shell PATH variable >>> >>> Install Numeric 23.7 from pkg installer >>> Install numarray 1.1.1 from pkg installer >>> >>> Set default gcc compiler to version 3.3 this must be so for >>> compatibility with g77 fortran compiler used in scipy >>> >>> >>>> sudo gcc_select 3.3 >>>> >>> >>> Install g77 3.4 >>> >>>> sudo tar -xvf g77v3.4-bin.tar -C / >>>> >>> >>> Install fftw 2.1.5 >>> >>> >>>> tar -xvzf fftw-2.1.5.tar.gz (or tar -xvf if it has already been >>>> >>> gunzipped) >>> >>>> cd fftw* >>>> ./configure >>>> make >>>> sudo make install >>>> >>> >>> >>> Install F2PY 2.1.5 >>> >>>> tar -xvzf F2PY-2-latest.tar.gz >>>> cd F2PY* >>>> sudo python setup.py install >>>> >>> >>> Install AquaTerm 1.0b2 from pkg installer >>> >>> Install GnuPlot 4.0 from pkg installer >>> >>> Untar the scipy_cvs_2005_07_29.tgx >>> cd to the scipy directory >>> Build and Install scipy >>> >>> >>>> python setup.py build >>>> sudo python setup.py install >>>> >>> >>> Test >>> >>>> python >>>> >>>>>> import scipy >>>>>> scipy.test() >>>>>> >>> >>> Expect that some tests will fail. The test function should complete OK. >>> >>> ******************************************** >>> >>> >>> _______________________________________________ >>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >>> http://mail.python.org/mailman/listinfo/pythonmac-sig >>> >> >> -- >> Christopher Barker, Ph.D. >> Oceanographer >> >> NOAA/OR&R/HAZMAT (206) 526-6959 voice >> 7600 Sand Point Way NE (206) 526-6329 fax >> Seattle, WA 98115 (206) 526-6317 main reception >> >> Chris.Barker at noaa.gov >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG at python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> > > ********************************************************************** > Samuel M. Smith Ph.D. > 2966 Fort Hill Road > Eagle Mountain, Utah 84043 > 801-768-2768 voice > 801-768-2769 fax > ********************************************************************** > "The greatest source of failure and unhappiness in the world is > giving up what we want most for what we want at the moment" > ********************************************************************** > -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker at noaa.gov From kevino at tulane.edu Sat Aug 20 06:00:51 2005 From: kevino at tulane.edu (Kevin Ollivier) Date: Fri, 19 Aug 2005 21:00:51 -0700 Subject: [Pythonmac-SIG] How to tell if a .app is clicked again? In-Reply-To: <43024D10.2030603@noaa.gov> References: <43023EFF.2050901@noaa.gov> <4FD1AD2F-65BE-42F3-9A28-94C109C17362@tulane.edu> <43024D10.2030603@noaa.gov> Message-ID: <1F638E52-F05B-4656-A34E-9FEC829C0384@tulane.edu> Hi Chris, Sorry for the late reply. ;-/ On Aug 16, 2005, at 1:31 PM, Chris Barker wrote: > Kevin Ollivier wrote: > >> I can't answer the questions you posed below, as I do almost all >> of my >> Mac work with wxPython, but when I read about what you're trying >> to do >> I couldn't help but think that this is exactly what ActiveGrid >> AppBuilder is for: >> >> http://www.activegrid.com >> >> Granted, it's wxPython and thus not as lightweight, but apps you >> create >> with it can be run locally on the user's machine or can be >> deployed to >> a server with their server components installed. It allows you to >> use >> SQLite, Oracle, MySQL, or PostGreSQL for the database. It's also >> pretty >> nice for point-and-click creation of full- fledged database apps, >> so the >> apps are easy to customize. (See their Petstore demo that comes with >> the app.) Not sure what your exact needs are, but this might be at >> least worth a look if you haven't seen it already. >> > > No, I hadn't. It's a little hard to tell what the heck it really is > from > the web page..the usual marketing-speak, no mention of wx, for > instance. It's basically a web app development tool. The big benefit is that you can use it to very quickly throw this sort of app together (you can just point it at a database, tell it what forms you want, and it'll draft a web app for you), which is why I thought you may be interested in it. It sets up a local server automatically (based on Python's httpserver, like Quioxte, CherryPy, etc.) so that users can run and test the web app locally, and then there's a set of server components to install to a server. So it'd be similar to your situation now where you'd use py2app/py2exe to bundle the server components and your web app together. Of course, if you've already got a static web-app built that you just want to be able to run on machines with no (or slow) internet access, then there's probably no need to switch tools. I haven't done a bake- off of the various httpserver-based web servers out there, so I can't say for sure which one best deals with the various quirks in various browsers. (I know that ActiveGrid's server handles the IE post bug fine where it sends an extra two byte line feed sometimes.) > > However, these are our needs: > > The web version needs to run on a basic browser, with not extra > plug-ins > or custom clients. > > We'd like to make the stand-alone version share as much code as > possible > with the web version. That means the same GUI, which means it would > run > in a browser. It also needs to be a simple install, i.e. not MySQL + > apache + our app. Activegrid really doesn't seem to provide this, but > I'll look into it more. > > While I'm talking to Kevin: The other idea I had was to use wxMozilla, > to embed a browser in a wxPython app, then we could use the same > code to > generate all the HTML, and display the UI through wxMozilla, without > having to use a client-server set up and http. This came up because > apparently some Windows systems turn off all TCP/IP when the Ethernet > cable is disconnected. > > My question is: with wxMozilla, can you capture all the GET and/or > POST > events, so that you can essentially run a web app and browser all > within > one process? At present at least, there's no way to do this using wxMozilla. There're probably ways to do this using some Mozilla hacks, but I doubt they'd be supported. And considering that even Mozilla's primary embedding interface is still (as of 1.7.x) considered a 'private' interface subject to change, I'm not sure you could even rely on the hack to continue working in the future. The server route is a bit of a pain but is probably the more sustainable solution in the long run. Kevin > -Chris > > -- > Christopher Barker, Ph.D. > Oceanographer > > NOAA/OR&R/HAZMAT (206) 526-6959 voice > 7600 Sand Point Way NE (206) 526-6329 fax > Seattle, WA 98115 (206) 526-6317 main reception > > Chris.Barker at noaa.gov > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG at python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig > > From wrightca at hotmail.com Sat Aug 20 17:33:58 2005 From: wrightca at hotmail.com (Chris Wright) Date: Sun, 21 Aug 2005 01:33:58 +1000 Subject: [Pythonmac-SIG] internet config Message-ID: I've just been bitten by urllib (and urllib2) finding a proxy via ic.py when I'm actually at a location which doesn't have a proxy set in system preferences. I don't know much about Internet Config, but I was wondering if there is an alternative for urllib/urllib2 to use the System Preferences? cheers Chris _________________________________________________________________ REALESTATE: biggest buy/rent/share listings http://ninemsn.realestate.com.au From jlp at nerim.net Mon Aug 15 17:06:01 2005 From: jlp at nerim.net (=?ISO-8859-1?Q?Jean-Luc_Peuri=E8re?=) Date: Mon, 15 Aug 2005 17:06:01 +0200 Subject: [Pythonmac-SIG] help about python frameworks in blender Message-ID: <8f01ac174ff9686379f32cff257834be@nerim.net> Hello, I'm the Os X platform manager for blender (3D app, see www.blender.org), and we are facing some problems about embedding last version of python in it. Until now, we were using python 2.3 which meant that we statically linked the Os X 10.2 build with a fink installed python, and used the apple framework for 10.3 and later. Blender need to link against a core python for its internal use, and if an installed python is present, for non-core modules used by scripts. Now, our python team wants to switch to python 2.4.1 for blender 2.40 (nice versions match ;) which puts the Os X version a bit in jeopardy : - compiling with the "unofficial official" version works of course, but that means that users must have the same lib installed, or there is crash at launch as the lib resides in a different place than the apple one. Although installing the lib is not hard, we are not pleased to introduce a dependancy. - weak linking the framework leads to errors as non weak references are presents (which is normal) in our core python API - i did not manage yet to compile a static version out of the framework (which is straightforward with a fink installed python), and dont want to force coders to install by fink (or darwinports). - The 10.2 build will stay with its static 2.3 lib, so is out of questioning - Those building against CVS wont have problems as we can automate choice of the correct lib, but we are in trouble for releases So my questions are : - Do we have a way of linking against the 2.4 framework that allow a fallback against the apple provided 2.3 lib ? - If that dont work, how static compiling out of the framework, or include the framework in the app bundle ? Blender is build with 3 systems : makefiles, scons or xcode scons build settings for framework : PYTHON_INCLUDE = ['/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4'] PYTHON_LIBPATH = ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ config'] PYTHON_LIBRARY = [] PYTHON_LINKFLAGS = ['-u', '_PyMac_Error', '-framework', 'python' ] Please keep the CC, I'm not suscribed to this mlist, even if i will try to monitor this subject via archives -- Lukep Blender Os X platform manager From adriano at euma.com Tue Aug 16 13:27:56 2005 From: adriano at euma.com (Adriano) Date: Tue, 16 Aug 2005 13:27:56 +0200 Subject: [Pythonmac-SIG] supposed bug in MacOs X wxGlade Message-ID: Dear Kevin, dear listers, following the Kevin Ollivier's suggestion I'm moving this discussion about some bugs I found in the MacOs X wxPython based apps (wxGlade and Boa Constructor) in this list, that seems more appropriate. Ok I think I have found a bug in wxGlade similar to the one I found in Boa. I repeated this process 3 (three times) and it always crashed. The stacktraces seems similar, they always claim about the same method (SetEventParameter + 24) The process is to follow the wxGlade tutorial, that is: 1) create a frame and set its title to "Frame with Notebook" 2) clicking on the "has menubar" checkbox and filling in some menus 3) clickig on the "has status bar" ckeckbox 4) editing the only field the status bar has, at that point 5) in order to save the edited text, click somewhere to let the textfield to loose focus Here comes the crash The stacktrace follows. Thanks so much for the attention ! Bye Adriano Date/Time: 2005-08-16 11:11:07.155 +0200 OS Version: 10.4.2 (Build 8C46) Report Version: 3 Command: Python Path: /Users/adri/Desktop/SPE-OSX/wxGladeOSX.app/Contents/MacOS/Python Parent: WindowServer [63] Version: ??? (???) PID: 593 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0xbf7ffff0 Thread 0 Crashed: 0 com.apple.HIToolbox 0x93121a40 SetEventParameter + 24 1 com.apple.HIToolbox 0x93146c20 HIView::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 7260 2 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 3 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 4 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 5 com.apple.HIToolbox 0x93166fbc SendControlDefGetFocusPart(HIView*, short*) + 96 6 com.apple.HIToolbox 0x93162cb0 HIView::SetFocusPart(short, unsigned char) + 76 7 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 8 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 9 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 10 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 11 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 12 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 13 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 14 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 15 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 16 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 17 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 18 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 19 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 20 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 21 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 22 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 23 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 24 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 25 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 26 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 27 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 28 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 29 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 30 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 31 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 32 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 33 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 34 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 35 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 36 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 37 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 38 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 39 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 40 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 41 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 42 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 43 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 44 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 45 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 46 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 47 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 48 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 49 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 50 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 51 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 52 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 53 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 54 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 55 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 56 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 57 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 58 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 59 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 60 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 61 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 62 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 63 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 64 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 65 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 66 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 67 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 68 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 69 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 70 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 71 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 72 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 73 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 74 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 75 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 76 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 77 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 78 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 79 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 80 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 81 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 82 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 83 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 84 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 85 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 86 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 87 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 88 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 89 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 90 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 91 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 92 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 93 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 94 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 95 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 96 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 97 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 98 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 99 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 100 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 101 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 102 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 103 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 104 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 105 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 106 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 107 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 108 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 109 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 110 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 111 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 112 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 113 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 114 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 115 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 116 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 117 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 118 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 119 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 120 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 121 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 122 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 123 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 124 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 125 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 126 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 127 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 128 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 129 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 130 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 131 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 132 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 133 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 134 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 135 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 136 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 137 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 138 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 139 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 140 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 141 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 142 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 143 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 144 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 145 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 146 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 147 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 148 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 149 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 150 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 151 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 152 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 153 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 154 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 155 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 156 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 157 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 158 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 159 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 160 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 161 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 162 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 163 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 164 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 165 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 166 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 167 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 168 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 169 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 170 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 171 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 172 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 173 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 174 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 175 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 176 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 177 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 178 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 179 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 180 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 181 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 182 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 183 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 184 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 185 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 186 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 187 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 188 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 189 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 190 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 191 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 192 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 193 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 194 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 195 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 196 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 197 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 198 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 199 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 200 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 201 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 202 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 203 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 204 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 205 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 206 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 207 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 208 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 209 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 210 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 211 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 212 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 213 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 214 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 215 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 216 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 217 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 218 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 219 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 220 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 221 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 222 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 223 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 224 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 225 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 226 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 227 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 228 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 229 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 230 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 231 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 232 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 233 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 234 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 235 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 236 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 237 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 238 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 239 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 240 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 241 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 242 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 243 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 244 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 245 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 246 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 247 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 248 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 249 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 250 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 251 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 252 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 253 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 254 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 255 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 256 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 257 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 258 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 259 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 260 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 261 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 262 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 263 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 264 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 265 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 266 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 267 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 268 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 269 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 270 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 271 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 272 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 273 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 274 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 275 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 276 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 277 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 278 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 279 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 280 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 281 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 282 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 283 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 284 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 285 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 286 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 287 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 288 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 289 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 290 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 291 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 292 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 293 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 294 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 295 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 296 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 297 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 298 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 299 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 300 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 301 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 302 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 303 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 304 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 305 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 306 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 307 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 308 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 309 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 310 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 311 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 312 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 313 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 314 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 315 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 316 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 317 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 318 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 319 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 320 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 321 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 322 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 323 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 324 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 325 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 326 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 327 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 328 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 329 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 330 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 331 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 332 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 333 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 334 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 335 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 336 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 337 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 338 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 339 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 340 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 341 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 342 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 343 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 344 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 345 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 346 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 347 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 348 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 349 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 350 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 351 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 352 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 353 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 354 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 355 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 356 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 357 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 358 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 359 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 360 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 361 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 362 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 363 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 364 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 365 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 366 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 367 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 368 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 369 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 370 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 371 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 372 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 373 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 374 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 375 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 376 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 377 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 378 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 379 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 380 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 381 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 382 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 383 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 384 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 385 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 386 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 387 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 388 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 389 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 390 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 391 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 392 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 393 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 394 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 395 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 396 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 397 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 398 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 399 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 400 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 401 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 402 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 403 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 404 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 405 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 406 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 407 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 408 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 409 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 410 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 411 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 412 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 413 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 414 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 415 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 416 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 417 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 418 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 419 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 420 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 421 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 422 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 423 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 424 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 425 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 426 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 427 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 428 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 429 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 430 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 431 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 432 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 433 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 434 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 435 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 436 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 437 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 438 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 439 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 440 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 441 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 442 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 443 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 444 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 445 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 446 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 447 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 448 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 449 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 450 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 451 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 452 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 453 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 454 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 455 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 456 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 457 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 458 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 459 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 460 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 461 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 462 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 463 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 464 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 465 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 466 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 467 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 468 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 469 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 470 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 471 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 472 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 473 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 474 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 475 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 476 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 477 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 478 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 479 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 480 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 481 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 482 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 483 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 484 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 485 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 486 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 487 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 488 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 489 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 490 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 491 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) 492 libwx_macud-2.6.0.dylib 0x010fa42c wxMacWindowControlEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 960 (icplusplus.c:27) 493 libwx_macud-2.6.0.dylib 0x010fab98 wxMacWindowEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 128 (icplusplus.c:27) 494 com.apple.HIToolbox 0x931229f4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 692 495 com.apple.HIToolbox 0x9312214c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 372 496 com.apple.HIToolbox 0x93121fc8 SendEventToEventTargetWithOptions + 40 497 com.apple.HIToolbox 0x93163140 SendControlDefSetFocusPart(HIView*, short, unsigned char, short*) + 172 498 com.apple.HIToolbox 0x93162e6c HIView::SetFocusPartInternal(short, unsigned char, unsigned char, short*, short) + 112 499 com.apple.HIToolbox 0x93162cd4 HIView::SetFocusPart(short, unsigned char) + 112 500 com.apple.HIToolbox 0x93162a78 SetKeyboardFocus + 168 501 libwx_macud-2.6.0.dylib 0x0109bf74 wxMacControl::SetFocus(short) + 44 (icplusplus.c:27) 502 libwx_macud-2.6.0.dylib 0x010fc41c wxWindow::SetFocus() + 80 (icplusplus.c:27) 503 libwx_macud-2.6.0.dylib 0x011e388c wxGrid::HideCellEditControl() + 216 (icplusplus.c:27) 504 libwx_macud-2.6.0.dylib 0x011e2fac wxGrid::EnableCellEditControl(bool) + 248 (icplusplus.c:27) 505 libwx_macud-2.6.0.dylib 0x011d112c wxGridCellEditorEvtHandler::OnKillFocus(wxFocusEvent&) + 32 (icplusplus.c:27) 506 libwx_macud-2.6.0.dylib 0x01093c34 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 156 (icplusplus.c:27) 507 libwx_macud-2.6.0.dylib 0x01093318 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 220 (icplusplus.c:27) 508 libwx_macud-2.6.0.dylib 0x01093e14 wxEvtHandler::ProcessEvent(wxEvent&) + 252 (icplusplus.c:27) Thread 1: 0 libSystem.B.dylib 0x9002f68c kevent + 12 1 com.apple.DesktopServices 0x9278cad8 TFSNotificationTask::FSNotificationTaskProc(void*) + 56 2 ...ple.CoreServices.CarbonCore 0x90b39690 PrivateMPEntryPoint + 76 3 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96 Thread 2: 0 libSystem.B.dylib 0x9002ca98 semaphore_wait_signal_trap + 8 1 libSystem.B.dylib 0x9003127c pthread_cond_wait + 508 2 ...ple.CoreServices.CarbonCore 0x90b39880 MPWaitOnQueue + 224 3 com.apple.DesktopServices 0x9278d330 TNodeSyncTask::SyncTaskProc(void*) + 108 4 ...ple.CoreServices.CarbonCore 0x90b39690 PrivateMPEntryPoint + 76 5 libSystem.B.dylib 0x9002c3d4 _pthread_body + 96 Thread 0 crashed with PPC Thread State 64: srr0: 0x0000000093121a40 srr1: 0x000000000000f030 vrsave: 0x0000000000000000 cr: 0x48222222 xer: 0x0000000000000004 lr: 0x0000000093146c20 ctr: 0x000000009314debc r0: 0x0000000093146c20 r1: 0x00000000bf800050 r2: 0x00000000a31239e8 r3: 0x00000000068529c0 r4: 0x0000000063707274 r5: 0x0000000063707274 r6: 0x0000000000000002 r7: 0x00000000bf8000f2 r8: 0x0000000000000008 r9: 0x00000000a311b66c r10: 0x000000000000002c r11: 0x0000000061636365 r12: 0x000000009314debc r13: 0x0000000000000fdd r14: 0x0000000000000000 r15: 0x00000000a3122758 r16: 0x00000000068529c0 r17: 0x00000000bf800290 r18: 0x00000000636e746c r19: 0x0000000000000008 r20: 0x00000000062e42c0 r21: 0x00000000ffffd96e r22: 0x0000000000000000 r23: 0x00000000bf8003f0 r24: 0x0000000000000000 r25: 0x0000000063707274 r26: 0x00000000068529c0 r27: 0x00000000068529c0 r28: 0x00000000062f6de0 r29: 0x0000000063707274 r30: 0x00000000ffffd96e r31: 0x0000000093144fcc Binary Images Description: 0x1000 - 0x1fff Python /Users/adri/Desktop/SPE-OSX/wxGladeOSX.app/Contents/MacOS/Python 0x90000 - 0x90fff _weakref.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_weakref.so 0xa2000 - 0xa6fff _AE.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_AE.so 0xc6000 - 0xc7fff _Evt.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_Evt.so 0xca000 - 0xcbfff MacOS.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/MacOS.so 0xce000 - 0xd0fff time.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/time.so 0xdb000 - 0xdefff struct.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/struct.so 0xe1000 - 0xe4fff strop.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/strop.so 0x245000 - 0x24dfff _File.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_File.so 0x4e1000 - 0x4e5fff _Res.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_Res.so 0x615000 - 0x6dbfff _core_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core_.so 0x776000 - 0x778fff _locale.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_locale.so 0x1008000 - 0x145ffff libwx_macud-2.6.0.dylib /usr/local/lib/wxPython-unicode-2.6.1.0/lib/libwx_macud-2.6.0.dylib 0x1774000 - 0x17e1fff _gdi_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_gdi_.so 0x207e000 - 0x2080fff _ssl.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_ssl.so 0x20c3000 - 0x2159fff _windows_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_windows_.so 0x2203000 - 0x22b7fff _controls_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_controls_.so 0x23a3000 - 0x2441fff _misc_.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_misc_.so 0x24dd000 - 0x24e4fff _socket.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/_socket.so 0x24ef000 - 0x24f1fff com.apple.textencoding.unicode 2.0 /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings 0x2537000 - 0x2597fff _grid.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_grid.so 0x26a6000 - 0x26cffff pyexpat.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/pyexpat.so 0x415d000 - 0x415efff cStringIO.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/cStringIO.so 0x4161000 - 0x4162fff math.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/math.so 0x57fb000 - 0x57fdfff zlib.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/zlib.so 0x610d000 - 0x610ffff operator.so /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload/operator.so 0x10000000 - 0x100fbfff org.python.python 2.4a0 (2.2) /Library/Frameworks/Python.framework/Versions/2.4/Python 0x78e00000 - 0x78e07fff libLW8Utils.dylib /System/Library/Printers/Libraries/libLW8Utils.dylib 0x79200000 - 0x7923efff libLW8Converter.dylib /System/Library/Printers/Libraries/libLW8Converter.dylib 0x8fe00000 - 0x8fe51fff dyld 43.1 /usr/lib/dyld 0x90000000 - 0x901a6fff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x901fe000 - 0x90202fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib 0x90204000 - 0x90257fff com.apple.CoreText 1.0.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText 0x90284000 - 0x90335fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x90364000 - 0x9069dfff com.apple.CoreGraphics 1.256.14 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x90728000 - 0x90801fff com.apple.CoreFoundation 6.4.2 (368.11) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x9084a000 - 0x9084afff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x9084c000 - 0x9094efff libicucore.A.dylib /usr/lib/libicucore.A.dylib 0x909a8000 - 0x90a2cfff libobjc.A.dylib /usr/lib/libobjc.A.dylib 0x90a56000 - 0x90acafff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x90ae4000 - 0x90af6fff libauto.dylib /usr/lib/libauto.dylib 0x90afd000 - 0x90dc2fff com.apple.CoreServices.CarbonCore 10.4.1 (611.1) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x90e25000 - 0x90ea5fff com.apple.CoreServices.OSServices 4.0 (4.0.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x90eef000 - 0x90f2ffff com.apple.CFNetwork 10.4.2 (80) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x90f44000 - 0x90f5cfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore 0x90f6c000 - 0x90feafff com.apple.SearchKit 1.0.3 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x9102f000 - 0x91056fff com.apple.Metadata 1.1 (121.6) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x91066000 - 0x91073fff libz.1.dylib /usr/lib/libz.1.dylib 0x91076000 - 0x91238fff com.apple.security 4.0.1 (223) /System/Library/Frameworks/Security.framework/Versions/A/Security 0x9133a000 - 0x91343fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x9134a000 - 0x91371fff com.apple.SystemConfiguration 1.8.0 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x91384000 - 0x9138cfff libbsm.dylib /usr/lib/libbsm.dylib 0x91390000 - 0x9140efff com.apple.audio.CoreAudio 3.0.1 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x9144c000 - 0x9144cfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x9144e000 - 0x91486fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x914a1000 - 0x9156cfff com.apple.ColorSync 4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x915c1000 - 0x91654fff com.apple.print.framework.PrintCore 4.0 (172.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x9169a000 - 0x91757fff com.apple.QD 3.8.6 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x91795000 - 0x917f3fff com.apple.HIServices 1.5.0 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x91821000 - 0x91844fff com.apple.LangAnalysis 1.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x91858000 - 0x9187dfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent 0x91890000 - 0x918d1fff com.apple.LaunchServices 10.4.3 (157) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x918ec000 - 0x91900fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x9190e000 - 0x91944fff com.apple.ImageIO.framework 1.0.2 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x91958000 - 0x91a1afff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib 0x91a66000 - 0x91a7bfff libcups.2.dylib /usr/lib/libcups.2.dylib 0x91a80000 - 0x91a9cfff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x91aa1000 - 0x91b10fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x91b27000 - 0x91b2bfff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x91b2d000 - 0x91b45fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib 0x91b48000 - 0x91b8bfff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x91b92000 - 0x91babfff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x91bb0000 - 0x91bb3fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x91bb5000 - 0x91bb5fff com.apple.Accelerate 1.1.1 (Accelerate 1.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x91bb7000 - 0x91ca1fff com.apple.vImage 2.0 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x91ca9000 - 0x91cc8fff com.apple.Accelerate.vecLib 3.1.1 (vecLib 3.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x91d34000 - 0x91d54fff libmx.A.dylib /usr/lib/libmx.A.dylib 0x91d5a000 - 0x91dbffff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x91dc9000 - 0x91e5bfff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x91e75000 - 0x92405fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x9244d000 - 0x9275dfff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x9278a000 - 0x92815fff com.apple.DesktopServices 1.3 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x92857000 - 0x92a80fff com.apple.Foundation 6.4.1 (567.12) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x92b9e000 - 0x92c7cfff libxml2.2.dylib /usr/lib/libxml2.2.dylib 0x92c9c000 - 0x92d8afff libiconv.2.dylib /usr/lib/libiconv.2.dylib 0x92d9c000 - 0x92dbafff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x92dc5000 - 0x92e1ffff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x92e3d000 - 0x92e3dfff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x92e3f000 - 0x92e53fff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x92e6b000 - 0x92e7bfff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x92e87000 - 0x92e9cfff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x92eae000 - 0x92f35fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x92f49000 - 0x92f54fff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x92f5e000 - 0x92f8bfff com.apple.openscripting 1.2.2 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x92fa5000 - 0x92fb5fff com.apple.print.framework.Print 4.0 (187) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x92fc1000 - 0x93027fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering 0x93058000 - 0x930aafff com.apple.NavigationServices 3.4.1 (3.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices 0x930d6000 - 0x930f3fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound 0x93105000 - 0x93112fff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x9311b000 - 0x9342bfff com.apple.HIToolbox 1.4.2 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x93576000 - 0x93582fff com.apple.opengl 1.4.0 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x93622000 - 0x93622fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x93624000 - 0x93c55fff com.apple.AppKit 6.4.1 (824.1) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x93fe1000 - 0x9404bfff com.apple.CoreData 1.0 (46) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x94083000 - 0x9414dfff com.apple.audio.toolbox.AudioToolbox 1.4.1 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x941a1000 - 0x941a1fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x941a3000 - 0x94302fff com.apple.QuartzCore 1.4.1 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x9434a000 - 0x94387fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib 0x9438f000 - 0x943dafff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x9457a000 - 0x94589fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib 0x94591000 - 0x9459dfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib 0x945e2000 - 0x945f6fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib 0x945fc000 - 0x9485efff com.apple.QuickTime 7.0.1 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime 0x94931000 - 0x94950fff com.apple.vecLib 3.1.1 (vecLib 3.1.1) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib 0x94cd4000 - 0x94d02fff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib 0x959b5000 - 0x95a3ffff com.apple.WebKit 412.6 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit 0x95a99000 - 0x95b7bfff com.apple.JavaScriptCore 1.2 (412.3) /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore 0x95bcf000 - 0x95ebdfff com.apple.WebCore 415.11 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore 0x9603e000 - 0x96067fff libxslt.1.dylib /usr/lib/libxslt.1.dylib 0xeab00000 - 0xeab25fff libConverter.dylib /System/Library/Printers/Libraries/libConverter.dylib Model: PowerBook4,2, BootROM 4.3.2f1, 1 processors, PowerPC 750 (33.11), 600 MHz, 256 MB Graphics: ATY,RageM3, ATY,RageM3, AGP, 8 MB Memory Module: DIMM0/BUILT-IN, 128 MB, built-in, built-in Memory Module: DIMM1/J12, 128 MB, SDRAM, PC133-333 Modem: MicroDash, Euro, V.92, 1.0F, APPLE VERSION 2.6.6 Network Service: Modem interno, PPP (PPPSerial), modem Network Service: Ethernet integrata, Ethernet, en0 Parallel ATA Device: IBM-IC25N020ATDA04-0, 18.63 GB Parallel ATA Device: SONY CD-RW CRX800E, -- " One of the tricks here is to get away from thinking that programs have to be composed with only a simple text editor " - Alan Kay - "Java and C++ make you think that the new ideas are like the old ones. Java is the most distressing thing to hit computing since MS-DOS". - Alan Kay - "The computer revolution hasn't started yet. Don't be misled by the enormous flow of money into bad defacto standards for unsophisticated buyers using poor adaptations of incomplete ideas". -Alan Kay - From bob at redivi.com Mon Aug 22 00:17:27 2005 From: bob at redivi.com (Bob Ippolito) Date: Sun, 21 Aug 2005 12:17:27 -1000 Subject: [Pythonmac-SIG] help about python frameworks in blender In-Reply-To: <8f01ac174ff9686379f32cff257834be@nerim.net> References: <8f01ac174ff9686379f32cff257834be@nerim.net> Message-ID: <6C415D5C-E42E-4478-80C3-B8A3247AECB1@redivi.com> On Aug 15, 2005, at 5:06 AM, Jean-Luc Peuri?re wrote: > Hello, > > I'm the Os X platform manager for blender (3D app, see > www.blender.org), and we are facing some problems about embedding last > version of python in it. > > Until now, we were using python 2.3 which meant that we statically > linked the Os X 10.2 build with a fink installed python, and used the > apple framework for 10.3 and later. > > Blender need to link against a core python for its internal use, > and if > an installed python is present, for non-core modules used by scripts. > > Now, our python team wants to switch to python 2.4.1 for blender 2.40 > (nice versions match ;) which puts the Os X version a bit in > jeopardy : > > - compiling with the "unofficial official" version works of course, > but > that means that users must have the same lib installed, or there is > crash at launch as the lib resides in a different place than the apple > one. Although installing the lib is not hard, we are not pleased to > introduce a dependancy. > - weak linking the framework leads to errors as non weak references > are > presents (which is normal) in our core python API > - i did not manage yet to compile a static version out of the > framework > (which is straightforward with a fink installed python), and dont want > to force coders to install by fink (or darwinports). > - The 10.2 build will stay with its static 2.3 lib, so is out of > questioning > - Those building against CVS wont have problems as we can automate > choice of the correct lib, but we are in trouble for releases > > So my questions are : > > - Do we have a way of linking against the 2.4 framework that allow a > fallback against the apple provided 2.3 lib ? > > - If that dont work, how static compiling out of the framework, or > include the framework in the app bundle ? > > Blender is build with 3 systems : makefiles, scons or xcode > > scons build settings for framework : > > PYTHON_INCLUDE = > ['/Library/Frameworks/Python.framework/Versions/2.4/include/ > python2.4'] > PYTHON_LIBPATH = > ['/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ > config'] > PYTHON_LIBRARY = [] > PYTHON_LINKFLAGS = ['-u', '_PyMac_Error', '-framework', 'python' ] You want to include the framework in the application bundle. If you run the macho_standalone utility from py2app over blender.app after it's built, this will happen automatically (and any other library dependencies will also be included). This can save you a considerable amount of time, as you no longer have to worry about statically compiling everything and ensuring that the dynamic libraries are not present on the linker's path. -bob From bob at redivi.com Mon Aug 22 00:19:58 2005 From: bob at redivi.com (Bob Ippolito) Date: Sun, 21 Aug 2005 12:19:58 -1000 Subject: [Pythonmac-SIG] supposed bug in MacOs X wxGlade In-Reply-To: References: Message-ID: <11F5E98C-890D-45E0-8E5A-531ADA03B8F9@redivi.com> On Aug 16, 2005, at 1:27 AM, Adriano wrote: > following the Kevin Ollivier's suggestion I'm moving this discussion > about some bugs I found in the MacOs X wxPython based apps (wxGlade > and Boa Constructor) in this list, that seems more appropriate. wxPython bugs on Mac OS X are probably best reported to the wxPython- mac list . -bob From heimo.mueller at mac.com Mon Aug 22 17:18:26 2005 From: heimo.mueller at mac.com (heimo.mueller) Date: Mon, 22 Aug 2005 17:18:26 +0200 Subject: [Pythonmac-SIG] pygame - how to get rid of the windows decorations Message-ID: i'm using pygame on OS X 10.4.2. my challenge is to get rid of the window manger decorations, resulting in a pure openGL display. i can not use the FULLSCREEN option, since I plan to use on a dual monitor configuration with one screen in normal mode, and the other screen as fullscreen surface. best regards heimo From spe.stani.be at gmail.com Tue Aug 23 02:45:38 2005 From: spe.stani.be at gmail.com (SPE - Stani's Python Editor) Date: Tue, 23 Aug 2005 02:45:38 +0200 Subject: [Pythonmac-SIG] SPE 0.7.5.c released (feature rich python ide) Message-ID: <430A71B2.8010200@gmail.com> Hi, A new version of SPE is released, see http://pythonide.stani.be I am eager to port SPE to the Mac. Recently I tried to put a lot effort to get SPE on the Mac. I started a spe-mac-user list and was posting there all kind of patches, than I had to wait for some reactions with feedback of tracebacks and screenshots. This went bit by bit and seemed endless. However it became clear for me that at least it should be possible to port SPE to the mac. But needless to say that development cycle was slow and very inefficient. Suddenly Rich Brown, a spe mac user, took the initiative to start a fundraising so I could buy a mac to develop SPE properly. For me this was more than welcome as I almost start giving up as developing SPE for Mac took me a lot of time in proportion to the effort I had to put on it. Moreover it frozes the development of SPE itself. This campaign looks like if it is going to work. This means I will buy a Mac and start finally the Mac port. As Hraban told me I should announce SPE to this list, I tought of giving it a try. To my surprise I found in the archives that there was already quite some posting about SPE. That gave me the hope this interest might not be gone. Therefore some of you might be willing to donate the last bits to make the purchase of a Mini-Mac for SPE possible. (Please mention with the donation is for the mac.) It would be nice if you consider this seriously. This is the deal: you give me a Mac and I give you SPE. Thanks, Stani http://pythonide.stani.be http://pythonide.stani.be/screenshots ---------------------------------------------------------------- More info about the fund raising: ?*What it would be worth to you to have a new release of SPE running on your Mac Os X the same day as it appears on other platforms? $50? $75? $100? My company, Dartware, has contributed 250 Euros to start the fundraising. We're willing to give a major boost because it's worth it for us to have a nice environment for Python programming. *? /- Rich Brown (Dartware) /Do you work on Mac Os X? To support the development of SPE for Mac, some enthousiastic SPE users have started a fund raising campaign to buy a Mac. Acquiring a Mac for SPE will allow to optimize it properly and to release simultaneously for Mac Os X. Any donation is welcome, but of course generous donations are necessary. Due to the high Paypal commission fees, European users are explicitly requested to donate through IBAN. More info on the donation page. In the chart on http://pythonide.stani.be you see in red how much is still required to make the purchase (mini Mac & KVM switch) go through. If some people would donate 50 euros, this target could easily get archieved. Otherwise if you have an old Mac, which runs Os X and which you are ready to give to SPE, contact me . If someone is able to convince Mac to do some sponsering, please contact me as well. ----------------------------------------------------------------- Posting which started the fundraising: http://lists.berlios.de/pipermail/python-spe-mac/2005-August/000054.html ----------------------------------------------------------------- List of people who donated (donations without paypal commission fees): * Rich Brown, Dartware (250 euro) * Brian Myers (100 euro) * Stefan Csomor, Advanced Concepts (50 euro) * Stefano Morandi (50 euro) * Kenneth McDonald (40 euro) * Phil Hargett (10 euro) Who is next? From matthias.oberlaender at daimlerchrysler.com Tue Aug 23 12:05:37 2005 From: matthias.oberlaender at daimlerchrysler.com (matthias.oberlaender@daimlerchrysler.com) Date: Tue, 23 Aug 2005 12:05:37 +0200 Subject: [Pythonmac-SIG] Set/get finder color label of a file In-Reply-To: Message-ID: > Oops, binary installer's older than I thought. You'll also need the > latest versions of aem and osaterminology: > > http://freespace.virgin.net/hamish.sanderson/aem-0.8.0.tar.gz > http://freespace.virgin.net/hamish.sanderson/osaterminology-0.6.0.tar.gz > > That should do it. Any problems, let me know. > > has > You are right, works fine now. Thanks! (Wouldn't it be a good idea to update the binary installer? ;-) ) -- Matthias From rowen at cesmail.net Tue Aug 23 22:58:12 2005 From: rowen at cesmail.net (Russell E. Owen) Date: Tue, 23 Aug 2005 13:58:12 -0700 Subject: [Pythonmac-SIG] Some questions about going to MacOS X 10.4 Message-ID: I've been considering upgrading my Mac to 10.4.2. However, I notice that there are very few python packages for 10.4 at . I was wondering if this was innocuous (i.e. those who build such packages just aren't at 10.4 themselves) or something more ominous such as a problem with building python packages on 10.4? Also, I distribute a semi-standalone python app (which includes everything except python itself). Right now it's compatible with 10.3.x and 10.4.x. But if I upgrade...are users on 10.3.9 likely to be able to use an app created under 10.4.x 9 (with the built-in python 2.3.5)? In case it matters, I presently create the app with bundlebuilder, though I plan to switch to py2app someday. As an aside, I'd love to upgrade to python 2.4.x but then to distribute my app I'd have to figure out how to build a fully standalone app (one that includes python). -- Russell From bob at redivi.com Tue Aug 23 23:29:31 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 23 Aug 2005 14:29:31 -0700 Subject: [Pythonmac-SIG] Some questions about going to MacOS X 10.4 In-Reply-To: References: Message-ID: <3773FB37-F878-419C-80BD-E9869A8881B1@redivi.com> On Aug 23, 2005, at 1:58 PM, Russell E. Owen wrote: > I've been considering upgrading my Mac to 10.4.2. However, I notice > that > there are very few python packages for 10.4 at > . I was wondering if this was > innocuous > (i.e. those who build such packages just aren't at 10.4 themselves) or > something more ominous such as a problem with building python packages > on 10.4? The version marker for a package is the minimum required version (really -- the version of Mac OS X on which it was built). 10.3 packages work fine on 10.4, especially those for Python 2.4. > Also, I distribute a semi-standalone python app (which includes > everything except python itself). Right now it's compatible with > 10.3.x > and 10.4.x. But if I upgrade...are users on 10.3.9 likely to be > able to > use an app created under 10.4.x 9 (with the built-in python 2.3.5)? In > case it matters, I presently create the app with bundlebuilder, > though I > plan to switch to py2app someday. Well, semi-standalone apps are basically guaranteed not to work on 10.5, so you really should be looking to do standalone apps unless you want to maintain multiple versions in the future. > As an aside, I'd love to upgrade to python 2.4.x but then to > distribute > my app I'd have to figure out how to build a fully standalone app (one > that includes python). If you're using py2app, that happens by default when using a non- System interpreter. -bob From rowen at cesmail.net Wed Aug 24 01:45:14 2005 From: rowen at cesmail.net (Russell E. Owen) Date: Tue, 23 Aug 2005 16:45:14 -0700 Subject: [Pythonmac-SIG] Some questions about going to MacOS X 10.4 References: <3773FB37-F878-419C-80BD-E9869A8881B1@redivi.com> Message-ID: In article <3773FB37-F878-419C-80BD-E9869A8881B1 at redivi.com>, Bob Ippolito wrote: > On Aug 23, 2005, at 1:58 PM, Russell E. Owen wrote: > > > I've been considering upgrading my Mac to 10.4.2. However, I notice > > that > > there are very few python packages for 10.4 at > > ... > > The version marker for a package is the minimum required version > (really -- the version of Mac OS X on which it was built). 10.3 > packages work fine on 10.4, especially those for Python 2.4. That is great news! It would be helpful for the page to note that fact. Any suggestions on how to encourage or help that to happen? > > Also, I distribute a semi-standalone python app (which includes > > everything except python itself). Right now it's compatible with > > 10.3.x > > and 10.4.x. But if I upgrade...are users on 10.3.9 likely to be > > able to > > use an app created under 10.4.x 9 (with the built-in python 2.3.5)? In > > case it matters, I presently create the app with bundlebuilder, > > though I > > plan to switch to py2app someday. > > Well, semi-standalone apps are basically guaranteed not to work on > 10.5, so you really should be looking to do standalone apps unless > you want to maintain multiple versions in the future. I would prefer fully standalone, I just didn't know how to make it happen (bundlebuilder has the flag but I don't recall it actually working) until... > > As an aside, I'd love to upgrade to python 2.4.x but then to > > distribute > > my app I'd have to figure out how to build a fully standalone app (one > > that includes python). > > If you're using py2app, that happens by default when using a non- > System interpreter. Perfect. And I'm guessing that py2app can be asked to make fully standalone even if using the built-in python interpreter (thus allowing me to eventually build on 10.5 and run on 10.4). Thank you very much for all your help. This is excellent news all around. Plus it offers the perfect justification to switch to py2app. I already refactored my code a few months ago to simplify packaging. (I had resource files mixed in with bits of python code to make the resource files easier to find, and my main module search for modules to load at startup. Both of which worked fine but made packaging a pain). -- Russell From bob at redivi.com Wed Aug 24 01:59:37 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 23 Aug 2005 16:59:37 -0700 Subject: [Pythonmac-SIG] Some questions about going to MacOS X 10.4 In-Reply-To: References: <3773FB37-F878-419C-80BD-E9869A8881B1@redivi.com> Message-ID: On Aug 23, 2005, at 4:45 PM, Russell E. Owen wrote: > In article <3773FB37-F878-419C-80BD-E9869A8881B1 at redivi.com>, > Bob Ippolito wrote: > > >> On Aug 23, 2005, at 1:58 PM, Russell E. Owen wrote: >> >> >>> I've been considering upgrading my Mac to 10.4.2. However, I notice >>> that >>> there are very few python packages for 10.4 at >>> ... >>> >> >> The version marker for a package is the minimum required version >> (really -- the version of Mac OS X on which it was built). 10.3 >> packages work fine on 10.4, especially those for Python 2.4. >> > > That is great news! > > It would be helpful for the page to note that fact. Any suggestions on > how to encourage or help that to happen? Write the copy and I'll paste it in :) >>> As an aside, I'd love to upgrade to python 2.4.x but then to >>> distribute >>> my app I'd have to figure out how to build a fully standalone app >>> (one >>> that includes python). >>> >> >> If you're using py2app, that happens by default when using a non- >> System interpreter. >> > > Perfect. And I'm guessing that py2app can be asked to make fully > standalone even if using the built-in python interpreter (thus > allowing > me to eventually build on 10.5 and run on 10.4). py2app refuses to place any files that are part of the operating system into an application. If you want a standalone application, you must use a standalone interpreter to build it. Generally, software that ships with OS X is built with flags such that it won't work on previous versions of Mac OS X anyway. -bob From kquirk at solidworks.com Wed Aug 24 15:35:00 2005 From: kquirk at solidworks.com (Kent Quirk) Date: Wed, 24 Aug 2005 09:35:00 -0400 Subject: [Pythonmac-SIG] Some questions about going to MacOS X 10.4 Message-ID: To this end, Bob, what would it take to make it possible to create 10.3-capable builds from 10.4? In other words, is it technically feasible to support this? If so, what has to be changed? If you could document what needs to happen, maybe some of the rest of us could tackle the pieces. Especially with the intel stuff coming down the pike, I'd dearly like to be able to develop the C++ portions of my app under 10.4 and XCode 2.1, but still ship apps that could run under 10.3. Kent -----Original Message----- Bob Ippolito wrote: On Aug 23, 2005, at 1:58 PM, Russell E. Owen wrote: > I've been considering upgrading my Mac to 10.4.2. However, I notice > that > there are very few python packages for 10.4 at > . I was wondering if this was > innocuous > (i.e. those who build such packages just aren't at 10.4 themselves) or > something more ominous such as a problem with building python packages > on 10.4? The version marker for a package is the minimum required version (really -- the version of Mac OS X on which it was built). 10.3 packages work fine on 10.4, especially those for Python 2.4. From bob at redivi.com Wed Aug 24 19:46:56 2005 From: bob at redivi.com (Bob Ippolito) Date: Wed, 24 Aug 2005 10:46:56 -0700 Subject: [Pythonmac-SIG] Some questions about going to MacOS X 10.4 In-Reply-To: References: Message-ID: <557CD28D-A625-468B-853D-A3DFD6AD1684@redivi.com> On Aug 24, 2005, at 6:35 AM, Kent Quirk wrote: > To this end, Bob, what would it take to make it possible to create > 10.3-capable builds from 10.4? Build as much as possible on 10.3, and anything you build on 10.4 should be build against the SDK with GCC 3.3 (if you care about pre-10.3.9). The most important thing is to build as much as possible on the target platform. For example, Python itself does a lot of feature detection in its configure script, and it will find things that the target platform may not have, and will not work there! In your own code, you can avoid this, but do not trust ANYTHING you did not write to be portable unless you've tested it. > In other words, is it technically feasible to support this? If so, > what > has to be changed? It's possible to do, but it's a royal pain. I do it for our products, but we don't (and likely won't) support x86, because it's just an installer and isn't worth the universal binaries trouble since they don't go anywhere near 10.2 and we do. > If you could document what needs to happen, maybe some of the rest > of us > could tackle the pieces. This is the interesting from the script that runs setup.py: import os from subprocess import Popen # Python.framework for 10.2, plus a python2.3 executable are in the "deps" folder PYTHON_ENV = dict(os.environ) PYTHON_ENV['DYLD_FRAMEWORK_PATH'] = os.path.abspath('deps') Popen(['deps/python2.3', 'setup.py', 'py2app'], env=PYTHON_ENV).wait() This is what we do at the top of our setup.py: import os # check to make sure we're running against the 10.2 Python if os.path.abspath('deps') not in os.environ.get ('DYLD_FRAMEWORK_PATH', ''): raise RuntimeError, 'This is the wrong Python' # Try and compile in a 10.2 compatible manner os.environ['CC'] = '/usr/bin/gcc-3.3' deps = os.path.abspath('deps').replace(' ', '\\ ') os.environ['LDSHARED'] = '/usr/bin/gcc-3.3 -Wl,-x -Wl,-F%s -bundle - framework Python' % (deps,) os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.2' JAGUAR_SDK = '/Developer/SDKs/MacOSX10.2.8.sdk' if os.path.exists(JAGUAR_SDK): os.environ['NEXT_ROOT'] = JAGUAR_SDK os.environ['DYLD_LIBRARY_PATH'] = JAGUAR_SDK + '/usr/lib' + ':' + JAGUAR_SDK + '/usr/lib/system' os.environ['DYLD_FRAMEWORK_PATH'] += ':' + JAGUAR_SDK + '/System/ Library/Frameworks' > Especially with the intel stuff coming down the pike, I'd dearly > like to > be able to develop the C++ portions of my app under 10.4 and XCode > 2.1, > but still ship apps that could run under 10.3. This is ESPECIALLY hard to do, because you basically have to compile it with gcc 3.3 (for ppc), then compile it with gcc 4 (for x86) somewhere else and then lipo everything together. Unless you only care about 10.3.9, in which case you could build with gcc 4 against the universal SDK. I think PyObjC has some experimental code in its setup.py to build against the universal sdk (look for -isysroot -- the SDK flags changed in gcc4). -bob From smithsm at samuelsmith.org Thu Aug 25 17:53:55 2005 From: smithsm at samuelsmith.org (Samuel M. Smith) Date: Thu, 25 Aug 2005 09:53:55 -0600 Subject: [Pythonmac-SIG] PythonCard on OS X 10.4 with Python 2.4.1 In-Reply-To: References: Message-ID: Anybody have any luck in getting PythonCard to work on OS X 10.4x with Python 2.4.1? The PythonCard websit is limited to Panther instructions. I saw a post where someone got it to work with Python 2.3.5. From brad.allen at omsdal.com Thu Aug 25 18:11:14 2005 From: brad.allen at omsdal.com (brad.allen@omsdal.com) Date: Thu, 25 Aug 2005 11:11:14 -0500 Subject: [Pythonmac-SIG] PythonCard on OS X 10.4 with Python 2.4.1 In-Reply-To: Message-ID: "Samuel M. Smith" wrote on 08/25/2005 10:53:55 AM: > Anybody have any luck in getting PythonCard to work on OS X 10.4x > with Python 2.4.1? > The PythonCard websit is limited to Panther instructions. I saw a > post where someone got it to work with Python 2.3.5. There's a current thread about this in the PythonCard-users group, under the non-clear subject name: Re: update (was: Re: [Pythoncard-users] supposed bug in PythonCard) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050825/00af2c0c/attachment.htm From ronaldoussoren at mac.com Thu Aug 25 16:16:03 2005 From: ronaldoussoren at mac.com (Ronald Oussoren) Date: Thu, 25 Aug 2005 16:16:03 +0200 Subject: [Pythonmac-SIG] Some questions about going to MacOS X 10.4 In-Reply-To: <557CD28D-A625-468B-853D-A3DFD6AD1684@redivi.com> References: <557CD28D-A625-468B-853D-A3DFD6AD1684@redivi.com> Message-ID: <9952665D-BA64-4B85-8306-B8538157E8E4@mac.com> On 24-aug-2005, at 19:46, Bob Ippolito wrote: > >> Especially with the intel stuff coming down the pike, I'd dearly >> like to >> be able to develop the C++ portions of my app under 10.4 and XCode >> 2.1, >> but still ship apps that could run under 10.3. >> > > This is ESPECIALLY hard to do, because you basically have to compile > it with gcc 3.3 (for ppc), then compile it with gcc 4 (for x86) > somewhere else and then lipo everything together. Unless you only > care about 10.3.9, in which case you could build with gcc 4 against > the universal SDK. I think PyObjC has some experimental code in its > setup.py to build against the universal sdk (look for -isysroot -- > the SDK flags changed in gcc4). PyObjC does indeed contain some experimental code to build universal binaries. I don't think this is really the Right Way (TM) to do it, although the SDK-part is be correct. Two seperate compiles + lipo seems to be the more flexible approach. What I'd like to do, but probably won't happen until the week grows days between Saturday and Sunday, is hack on the Python build process and distutils to make it support cross-compiling on OSX: universal binaries that run on anything from 10.2 on PPC and 10.4 on Intel, with a PPC64 version added for fun. There's lots of issues that have to be dealt with before getting to this ideal situations, most of which have to do with autoconf (and simular constructs in setup.py files). Ronald From adriano at euma.com Thu Aug 25 21:35:51 2005 From: adriano at euma.com (adriano@euma.com) Date: Thu, 25 Aug 2005 21:35:51 +0200 Subject: [Pythonmac-SIG] PythonCard on OS X 10.4 with Python 2.4.1 Message-ID: <84A0916DE0C449648B8DF7D3366FCAFA.MAI@eutropia.biz> Hello listers, "Samuel M. Smith" wrote on 08/25/2005 10:53:55 AM: > Anybody have any luck in getting PythonCard to work on OS X 10.4x > with Python 2.4.1? > The PythonCard websit is limited to Panther instructions. I saw a > post where someone got it to work with Python 2.3.5. There's a current thread about this in the PythonCard-users group, under the non-clear subject name: Re: update (was: Re: [Pythoncard-users] supposed bug in PythonCard) Yes I originated the thread. I found a bug in Pythoncard with python 2.4.1 and wxPython 2.6.1.0 and PythonCard 0.8.1 It's not "supposed". It's a quite clearly a bug. The installation worked. The "Minimal" application started correctly and you can consider this as a test for correct installation, as stated in the tutorial. What I found is: a) when starting the resource editor, a .cfg file was looked for in PythonCard/somethin/something/ instead it was in PythonCard/ Now I don't remember exactly but you can read my posts. I reported it, I think Or you can follow the tutorial instructions and you probably reproduce it b) The ResourceEditor doesn't start correctly. It looks for sources to load in the wrong position, i don't know why. That' s it I think you can reproduce theese problems quite easly, if you try And if you can find something more than what I found, I'd be grateful if you would report too. Thanks so much Bye Adriano From s_t_a_n_i at gmx.net Tue Aug 23 02:45:03 2005 From: s_t_a_n_i at gmx.net (Stani) Date: Tue, 23 Aug 2005 02:45:03 +0200 Subject: [Pythonmac-SIG] SPE 0.7.5.c released (feature rich python ide) Message-ID: <430A718F.3030409@gmx.net> Hi, A new version of SPE is released, see http://pythonide.stani.be I am eager to port SPE to the Mac. Recently I tried to put a lot effort to get SPE on the Mac. I started a spe-mac-user list and was posting there all kind of patches, than I had to wait for some reactions with feedback of tracebacks and screenshots. This went bit by bit and seemed endless. However it became clear for me that at least it should be possible to port SPE to the mac. But needless to say that development cycle was slow and very inefficient. Suddenly Rich Brown, a spe mac user, took the initiative to start a fundraising so I could buy a mac to develop SPE properly. For me this was more than welcome as I almost start giving up as developing SPE for Mac took me a lot of time in proportion to the effort I had to put on it. Moreover it frozes the development of SPE itself. This campaign looks like if it is going to work. This means I will buy a Mac and start finally the Mac port. As Hraban told me I should announce SPE to this list, I tought of giving it a try. To my surprise I found in the archives that there was already quite some posting about SPE. That gave me the hope this interest might not be gone. Therefore some of you might be willing to donate the last bits to make the purchase of a Mini-Mac for SPE possible. (Please mention with the donation is for the mac.) It would be nice if you consider this seriously. This is the deal: you give me a Mac and I give you SPE. Thanks, Stani http://pythonide.stani.be http://pythonide.stani.be/screenshots ---------------------------------------------------------------- More info about the fund raising: ?*What it would be worth to you to have a new release of SPE running on your Mac Os X the same day as it appears on other platforms? $50? $75? $100? My company, Dartware, has contributed 250 Euros to start the fundraising. We're willing to give a major boost because it's worth it for us to have a nice environment for Python programming. *? /- Rich Brown (Dartware) /Do you work on Mac Os X? To support the development of SPE for Mac, some enthousiastic SPE users have started a fund raising campaign to buy a Mac. Acquiring a Mac for SPE will allow to optimize it properly and to release simultaneously for Mac Os X. Any donation is welcome, but of course generous donations are necessary. Due to the high Paypal commission fees, European users are explicitly requested to donate through IBAN. More info on the donation page. In the chart on http://pythonide.stani.be you see in red how much is still required to make the purchase (mini Mac & KVM switch) go through. If some people would donate 50 euros, this target could easily get archieved. Otherwise if you have an old Mac, which runs Os X and which you are ready to give to SPE, contact me . If someone is able to convince Mac to do some sponsering, please contact me as well. ----------------------------------------------------------------- Posting which started the fundraising: http://lists.berlios.de/pipermail/python-spe-mac/2005-August/000054.html ----------------------------------------------------------------- List of people who donated (donations without paypal commission fees): * Rich Brown, Dartware (250 euro) * Brian Myers (100 euro) * Stefan Csomor, Advanced Concepts (50 euro) * Stefano Morandi (50 euro) * Kenneth McDonald (40 euro) * Phil Hargett (10 euro) Who is next? From aryeh at bigfoot.com Tue Aug 23 16:20:25 2005 From: aryeh at bigfoot.com (ah) Date: Tue, 23 Aug 2005 16:20:25 +0200 Subject: [Pythonmac-SIG] macholib example Message-ID: <003101c5a7ed$ce458f00$f30101c0@dev03> Hello all, Does someone have a usage example of macholib for Re-writing all Libraries in a directory with @executable_path ? Any info would be greatly appreciated. Arye. From bob at redivi.com Fri Aug 26 02:38:30 2005 From: bob at redivi.com (Bob Ippolito) Date: Thu, 25 Aug 2005 17:38:30 -0700 Subject: [Pythonmac-SIG] macholib example In-Reply-To: <003101c5a7ed$ce458f00$f30101c0@dev03> References: <003101c5a7ed$ce458f00$f30101c0@dev03> Message-ID: <4ACCF8C9-70AC-4E80-B7FB-4FE0A88DA5E1@redivi.com> On Aug 23, 2005, at 7:20 AM, ah wrote: > Does someone have a usage example of macholib for > Re-writing all Libraries in a directory with @executable_path ? Take a look at the macho_standalone script it comes with. It does that for an application, which is probably what you're trying to do anyway. -bob From alex at tweedly.net Fri Aug 26 17:35:44 2005 From: alex at tweedly.net (Alex Tweedly) Date: Fri, 26 Aug 2005 16:35:44 +0100 Subject: [Pythonmac-SIG] [Pythoncard-users] Re: PythonCard on OS X 10.4 with Python 2.4.1 In-Reply-To: <84A0916DE0C449648B8DF7D3366FCAFA.MAI@eutropia.biz> References: <84A0916DE0C449648B8DF7D3366FCAFA.MAI@eutropia.biz> Message-ID: <430F36D0.2070500@tweedly.net> adriano at euma.com wrote: >Hello listers, > > >"Samuel M. Smith" wrote on 08/25/2005 10:53:55 >AM: > > > >>Anybody have any luck in getting PythonCard to work on OS X 10.4x >>with Python 2.4.1? >>The PythonCard websit is limited to Panther instructions. I saw a >>post where someone got it to work with Python 2.3.5. >> >> > >There's a current thread about this in the PythonCard-users group, >under the non-clear subject name: > > Re: update (was: Re: [Pythoncard-users] supposed bug in >PythonCard) > > >Yes I originated the thread. I found a bug in Pythoncard with python 2.4.1 and wxPython 2.6.1.0 and >PythonCard 0.8.1 > >It's not "supposed". It's a quite clearly a bug. > > > Adriano - the only reason the subject line says "supposed bug ..." is because that's the subject line you chose for your initial posting to the Pythoncard list on this topic :-) As you say, there definitely is a bug, and I believe it can be reliably reproduced (since it's Mac only, I cannot reproduce it myself, but I believe everyone on Mac can do so). Something appears to have changed wrt the path that Python's sys.modules reports for imported files. As far as I know, no-one has yet verified for sure whether it is a Python bug or merely a platform-specific change that Pythoncard will need to adjust for. (Nor do I know how we'll be able to adjust - but I'm hoping that some of the PythonCard / Mac users are investigating ....) -- Alex Tweedly http://www.tweedly.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20050826/a4e4789a/attachment.htm -------------- next part -------------- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.15/80 - Release Date: 23/08/2005 From simon.brunning at gmail.com Tue Aug 30 18:53:21 2005 From: simon.brunning at gmail.com (Simon Brunning) Date: Tue, 30 Aug 2005 17:53:21 +0100 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. Message-ID: <8c7f10c60508300953742b2874@mail.gmail.com> Complete and utter Mac newbie here - be gentle with me! Hi, all. I've downloaded and installed MacPython 2.4.1 from undefined.org. It installed happily enough, and seems to run fine. But when I attempt to install PyObjC (from pyobjc-1.3.7-py2.4-macosx10.4.zip) it says that it requires Python 2.4. I think that may be something to do with the fact that the original version of Python that came with the machine is still 'in charge'. Starting Python on the command line gives me version 2.3.5 - and when I installed appscript, it beccame available to Python 2.3.5 but not to Python 2.4. Now, I can appreciate that changing the version of Python that the OS uses might not be a good idea, but how do I get 2.4.1 working with appscript and PyObjC? Or is that a bad idea? I'm running OSX 10.4.2 in a nice shiny new Powerbook, if that helps. ;-) -- Cheers, Simon B, simon at brunningonline.net, http://www.brunningonline.net/simon/blog/ From bob at redivi.com Tue Aug 30 20:40:56 2005 From: bob at redivi.com (Bob Ippolito) Date: Tue, 30 Aug 2005 11:40:56 -0700 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <8c7f10c60508300953742b2874@mail.gmail.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> Message-ID: <0E36998E-ABDC-4871-B38E-1E6337BE3395@redivi.com> On Aug 30, 2005, at 9:53 AM, Simon Brunning wrote: > Complete and utter Mac newbie here - be gentle with me! > > Hi, all. I've downloaded and installed MacPython 2.4.1 from > undefined.org. It installed happily enough, and seems to run fine. But > when I attempt to install PyObjC (from > pyobjc-1.3.7-py2.4-macosx10.4.zip) it says that it requires Python > 2.4. I think that installer is broken, compile from source. > I think that may be something to do with the fact that the original > version of Python that came with the machine is still 'in charge'. > Starting Python on the command line gives me version 2.3.5 - and when > I installed appscript, it beccame available to Python 2.3.5 but not to > Python 2.4. appscript does not have an installer for 2.4, you'll have to compile it and its 5 or 6 dependencies. > Now, I can appreciate that changing the version of Python that the OS > uses might not be a good idea, but how do I get 2.4.1 working with > appscript and PyObjC? Or is that a bad idea? > > I'm running OSX 10.4.2 in a nice shiny new Powerbook, if that > helps. ;-) -bob From cdamundsen at gmail.com Tue Aug 30 20:59:35 2005 From: cdamundsen at gmail.com (Craig Amundsen) Date: Tue, 30 Aug 2005 11:59:35 -0700 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <8c7f10c60508300953742b2874@mail.gmail.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> Message-ID: <8dc0c28f05083011594b8ca217@mail.gmail.com> Hi - On 8/30/05, Simon Brunning wrote: > I think that may be something to do with the fact that the original > version of Python that came with the machine is still 'in charge'. > Starting Python on the command line gives me version 2.3.5 - and when > I installed appscript, it beccame available to Python 2.3.5 but not to > Python 2.4. The python you installed lives in /usr/local/bin. If you want it to run when you type 'python' at the prompt you need to make sure that /usr/local/bin is before /usr/bin in your path. > Now, I can appreciate that changing the version of Python that the OS > uses might not be a good idea, but how do I get 2.4.1 working with > appscript and PyObjC? Or is that a bad idea? When you build modules they are available to the version of python that built them. So if you build appscript (and its many dependencies) and PyObjC with 2.4.1, you'll be able to load them with 2.4.1. - Craig PS - Oh, and don't try to replace the Apple-supplied Python with a newer version. Down that path lies madness and reinstallation of the system. With proper attention, multiple versions of Python can live quite happily on the Mac. From simon.brunning at gmail.com Wed Aug 31 15:49:32 2005 From: simon.brunning at gmail.com (Simon Brunning) Date: Wed, 31 Aug 2005 14:49:32 +0100 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <0E36998E-ABDC-4871-B38E-1E6337BE3395@redivi.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> <0E36998E-ABDC-4871-B38E-1E6337BE3395@redivi.com> Message-ID: <8c7f10c6050831064946f2564e@mail.gmail.com> On 8/30/05, Bob Ippolito wrote: > I think that installer is broken, compile from source. > appscript does not have an installer for 2.4, you'll have to compile > it and its 5 or 6 dependencies. Thanks. I've grabbed source copies of all of these, and I'll have a bash with them this evening. It should be just a matter of unzipping and running: /usr/local/bin/python setup install On each of them, right? (In the right order, naturally. ;-) -- Cheers, Simon B, simon at brunningonline.net, http://www.brunningonline.net/simon/blog/ From simon.brunning at gmail.com Wed Aug 31 15:56:22 2005 From: simon.brunning at gmail.com (Simon Brunning) Date: Wed, 31 Aug 2005 14:56:22 +0100 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <8dc0c28f05083011594b8ca217@mail.gmail.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> <8dc0c28f05083011594b8ca217@mail.gmail.com> Message-ID: <8c7f10c605083106562457c074@mail.gmail.com> On 8/30/05, Craig Amundsen wrote: > The python you installed lives in /usr/local/bin. If you want it to > run when you type 'python' at the prompt you need to make sure that > /usr/local/bin is before /usr/bin in your path. Or I can just invoke the /usr/local/bin version explicitly, yes? Seems to work... How do I specify that in a shebang line? I tried "#!/usr/local/bin python", but I got a "bad interpreter: Permission denied" error message. > > Now, I can appreciate that changing the version of Python that the OS > > uses might not be a good idea, but how do I get 2.4.1 working with > > appscript and PyObjC? Or is that a bad idea? > > When you build modules they are available to the version of python > that built them. So if you build appscript (and its many dependencies) > and PyObjC with 2.4.1, you'll be able to load them with 2.4.1. As I thought. > PS - Oh, and don't try to replace the Apple-supplied Python with a > newer version. Down that path lies madness and reinstallation of the > system. With proper attention, multiple versions of Python can live > quite happily on the Mac. Thanks. I won't do that, then. ;-) -- Cheers, Simon B, simon at brunningonline.net, http://www.brunningonline.net/simon/blog/ From cdamundsen at gmail.com Wed Aug 31 17:26:09 2005 From: cdamundsen at gmail.com (Craig Amundsen) Date: Wed, 31 Aug 2005 08:26:09 -0700 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <8c7f10c605083106562457c074@mail.gmail.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> <8dc0c28f05083011594b8ca217@mail.gmail.com> <8c7f10c605083106562457c074@mail.gmail.com> Message-ID: <8dc0c28f05083108266c8ac273@mail.gmail.com> Hi - > Or I can just invoke the /usr/local/bin version explicitly, yes? Seems > to work... > > How do I specify that in a shebang line? I tried "#!/usr/local/bin > python", but I got a "bad interpreter: Permission denied" error > message. Did you mean #! /usr/local/bin/python or #! /usr/local/bin python ? The first line works for me, the second does not. - Craig From simon.brunning at gmail.com Wed Aug 31 17:47:35 2005 From: simon.brunning at gmail.com (Simon Brunning) Date: Wed, 31 Aug 2005 16:47:35 +0100 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <8dc0c28f05083108266c8ac273@mail.gmail.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> <8dc0c28f05083011594b8ca217@mail.gmail.com> <8c7f10c605083106562457c074@mail.gmail.com> <8dc0c28f05083108266c8ac273@mail.gmail.com> Message-ID: <8c7f10c605083108474a863cce@mail.gmail.com> On 8/31/05, Craig Amundsen wrote: > > Or I can just invoke the /usr/local/bin version explicitly, yes? Seems > > to work... > > > > How do I specify that in a shebang line? I tried "#!/usr/local/bin > > python", but I got a "bad interpreter: Permission denied" error > > message. > > Did you mean #! /usr/local/bin/python > or #! /usr/local/bin python ? I meant the latter - the first version works for me too. Thanks. I extrapolated "#! /usr/local/bin python" from the shebang line that ran stuff with the OS's version of Python, "#!/usr/bin/env python". Clearly, I don't have a clue as yet. ;-) Still-in-the-foothills-ly y'rs, Simon B, simon at brunningonline.net, http://www.brunningonline.net/simon/blog/ From dangoor at gmail.com Wed Aug 31 20:53:27 2005 From: dangoor at gmail.com (Kevin Dangoor) Date: Wed, 31 Aug 2005 14:53:27 -0400 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <8c7f10c605083108474a863cce@mail.gmail.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> <8dc0c28f05083011594b8ca217@mail.gmail.com> <8c7f10c605083106562457c074@mail.gmail.com> <8dc0c28f05083108266c8ac273@mail.gmail.com> <8c7f10c605083108474a863cce@mail.gmail.com> Message-ID: <3f085ecd050831115310490917@mail.gmail.com> On 8/31/05, Simon Brunning wrote: > On 8/31/05, Craig Amundsen wrote: > > Did you mean #! /usr/local/bin/python > > or #! /usr/local/bin python ? > > I meant the latter - the first version works for me too. Thanks. > > I extrapolated "#! /usr/local/bin python" from the shebang line that > ran stuff with the OS's version of Python, "#!/usr/bin/env python". > Clearly, I don't have a clue as yet. ;-) #!/usr/bin/env python is actually saying to invoke the "env" command (you can type 'man env' to see what that command's all about). This particular usage of env does not actually do anything of value, as far as I can see. You could have gotten the equivalent working with your python of choice by doing this: #!/usr/bin/env /usr/local/bin/python Kevin From rkern at ucsd.edu Wed Aug 31 21:18:39 2005 From: rkern at ucsd.edu (Robert Kern) Date: Wed, 31 Aug 2005 12:18:39 -0700 Subject: [Pythonmac-SIG] Python 2.4.1 not replacing earlier versions. In-Reply-To: <3f085ecd050831115310490917@mail.gmail.com> References: <8c7f10c60508300953742b2874@mail.gmail.com> <8dc0c28f05083011594b8ca217@mail.gmail.com> <8c7f10c605083106562457c074@mail.gmail.com> <8dc0c28f05083108266c8ac273@mail.gmail.com> <8c7f10c605083108474a863cce@mail.gmail.com> <3f085ecd050831115310490917@mail.gmail.com> Message-ID: <4316028F.7000206@ucsd.edu> Kevin Dangoor wrote: > #!/usr/bin/env python > > is actually saying to invoke the "env" command (you can type 'man env' > to see what that command's all about). This particular usage of env > does not actually do anything of value, as far as I can see. It selects the first executable named "python" in the PATH. The shebang line requires an explicit executable. For example, #!python does not work. -- Robert Kern rkern at ucsd.edu "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter From bsharitt at gmail.com Wed Aug 31 01:46:19 2005 From: bsharitt at gmail.com (Brandon Sharitt) Date: Tue, 30 Aug 2005 19:46:19 -0400 Subject: [Pythonmac-SIG] py2app and Bittornado Message-ID: <4164bfb2050830164636b23b73@mail.gmail.com> I'm trying to get Bittornado to run on Mac OS X (10.4 with Python 2.3.5) but I've only ever dealt with Python at lower lever scripting stuff, never wxPython or another GUI stuff. py2app is supposed to be the tool to create Mac friendly Python applications(like py2exe on Windows), but the documentation for py2app doesn't seem to be much help. The setup.py script that comes with BitTornado doesn't run when I type python setup.py py2app and produces the following error: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: invalid command 'py2app' (no module named 'distutils.command.py2app') When I drag the script to PackageInstaller, it creates a Mac installer package, but all that does is mostly copy the the sane stuff stuff to /usr/local/bin and when I try to run btdownloadgui.py all I get is: Traceback (most recent call last): File "btdownloadgui.py", line 29, in ? from BitTornado.ConfigReader import configReader File "/Library/Python/2.3/site-pack ages/BitTornado/ConfigReader.p y", line 40, in ? _CHECKINGCOLOR = ColorToHex(wxSystemSettings_Ge tColour(wxSYS_COLOUR_3DSHADOW) ) File "/BinaryCache/wxWidgets/wxWidg ets-2.root~174/System/Library/ Frameworks/Python.framework/Ve rsions/2.3/Extras/lib/python/w x-2.5.3-mac-unicode/wx/_misc.p y", line 145, in SystemSettings_GetColour wx._core.PyNoAppError: The wx.App object must be created first! I also made my own setup file using the sparse documentation on py2app, but that just produces a broken app. Maybe I got the setup.py wrong. Any help would be appreciated. Either reply to this or email me.