Re: [Pythonmac-SIG] Macports and Django install problems
On Sep 19, 2007, at 6:53 AM, Dave Everitt wrote: The idea is for it to be completely accessible to beginners (i.e. those who may not even know how to cd in Terminal). I think we need to do for Python and Django, what Marc Liyanage did for PHP on OSX. Does anyone know if one already exists or has been started? I would consider helping. I can't contribute to the code, but might be able to help polish things up somehow. Accepted. I was sort of hoping someone else would take the lead on this. I guess I will be forced to. I am a little surprised something is not started already. I just made the project iDjango. http://code.google.com/p/idjango/ My intention here is to do something really simple, quick, and with minimal functionality. I see no reason why it can't do an automated checkout from svn. Any volunteers to help? I may also ping the Django list. Brian Ray [EMAIL PROTECTED] http://kazavoo.com/blog ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Macports and Django install problems
I am glad your doing this, but... I wish Leopard would ship with Django or there was a tool to install. I know Ruby on Rails is there. Already for, Ruby on Rails, there is a program called Locomotive http://locomotive.raaum.org/. Have not tried this, but, (you see where I am getting) we need an installer/ monitor for Django on OSX. Documentation is great. I also encourage/applaud this, regardless. However we need a installer/montitor app for Django development on on OSX. Does anyone know if one already exists or has been started? I would consider helping. Brian Ray [EMAIL PROTECTED] http://kazavoo.com/blog ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] How to generate C files in Mac/Modules?
On Aug 23, 2007, at 1:45 AM, Ronald Oussoren wrote: On 22 Aug, 2007, at 21:42, [EMAIL PROTECTED] wrote: How are all the extension modules in Mac/Modules generated? I'm trying to remove PyArg_Parse() from the Python 3 C API. They use PyArg_Parse extensively. If they were autogenerated I'd rather fix the generator instead of editing each file by hand. They are generated using bgen, which is in Tools/bgen/bgen. The last time I looked at this (which is a couple of years ago) you basicly had to be Jack to run this :-(. You also have to have the MacOS9 SDK headers, bgen doesn't look at the system headers at the moment. I see PyArg_Parse... being generated from there. Maybe its just a matter of changing it in the two or three places? Although, I am not sure what your doing. I was curious and also found this doc from MacPython: file:///localhost/Developer/Examples/Python/MacPython/plugins.html Mentions bgen and something called Modulator. Also I notice in the bgen module README it states something about not being mac-specific. This must not be true. I wonder if FlatCarbon headers could be used instead of MacOS9 SDK. I do not have any answers but I too am trying to get up to speed how all this works. Brian Ray [EMAIL PROTECTED] http://kazavoo.com/blog ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Does urllib.getproxies() work in 2.4/2.5 on Mac?
On Aug 18, 2007, at 4:12 PM, Bill Janssen wrote: Is this fixed in later versions of Python, anyone know? You can test by calling urllib.getproxies() and seeing if it returns your proxysettings. Python 2.5.1 (r251:54863, Aug 5 2007, 21:08:32) _ urllib.getproxies() _ {} Does this answer your quesiton? Brian Ray [EMAIL PROTECTED] http://kazavoo.com/blog ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] ANN: ChiPy August Meeting Topic Snakes On Apples
ChiPy the Chipmunk** invites you to attend August's Chicago Python User Group meeting. ChiPy says, This will be the best meet ever! When Thursday August 9th 2007 7:00PM Cost Free Topics -- Snakes on Apples http://chipy.org/SnakesOnApples Developing Python on the Mac. All are welcome, no Macintosh, Unix, or Python experience required. - TextMate with Python -- Kumar McMillan + how to edit / navigate -- all the stuff that makes it comparable to emacs or whatnot (I'll keep this short) + hack: how to write commands / Bundles to automate your coding needs - Address Book Plugin for syncing with gmail contacts utilizing libgmail -- Brian Ray - Python Sprint at Google and PyCon '08 updates / discussion - After: If you wish, follow Chipy the Chipmunk to Greektown or Taylor Street Venue - :: The University of Illinois at Chicago Science and Engineering Offices (SEO 1000) 851 South Morgan Street Chicago, Illinois 60607 (note: Emergency Cell 773 835 9876, if you get lost and need moral support) CTA ~~~ FROM O'HARE AIRPORT BY CTA TRAIN: Take the CTA BLUE LINE TRAIN from O'Hare to the UIC-Halsted stop. Exit up stairs in center of the train platform (the platform also has two long ramps on either side heading East and West, which also can be used). Proceed South on street level to the UIC campus. FROM MIDWAY AIRPORT BY CTA TRAIN: Take the CTA ORANGE LINE TRAIN from Midway to the Clark/Lake station. Exit the train, GO DOWNSTAIRS and transfer to the CTA BLUE LINE. Take the Blue Line train towards 54/Cermak (Forest Park) and exit at the UIC-Halsted stop. Exit up stairs in center of the train platform (the platform also has two long ramps on either side heading East and West, which also can be used). Proceed South on street level to the UIC campus. Driving ~~~ PARKING: Public parking is available via a four-level parking garage on the NE corner of Taylor Halsted streets, and at the open parking lot on the SE corner of Taylor and Morgan streets. IF PARKING IN THE GARAGE, ENTER ON THE LEFT DRIVEWAY as you turn Nor th into the building, ensuring that you take a ticket. If parking in the open lot, enter through the Southern most driveway, the one that has the attendant booth. DRIVING FROM THE NORTH: Take 90/94 South (Kennedy Expressway) to the Taylor Street/Roosevelt Ave, Exit 52A. Keep to the right and turn right immediately onto Taylor Street. The entrance to the parking garage will be immediately to your right. FROM THE SOUTH: Take 90/94 Nor th (Dan Ryan Expressway). Pass to the far right lane and take the Roosevelt Ave exit, Exit 52B. Stay in the middle or far right lane and go straight through the first intersection, paralleling the expressway. Turn left onto Taylor Street. The entrance to the parking garage will be to your right. FROM THE WEST: Take 290 East (Eisenhower Expressway) to 90/94 South (Dan Ryan Expressway). Immediately exit to the right onto Taylor Street/Roosevelt Ave, Exit 52A. Stay to the right and turn right at the light onto Taylor Street. The entrance to the parking garage will be immediately to your right. FROM THE EAST: In the Loop area, take Harrison Street. Proceed west and turn left onto Halsted Street. Continue South on Halsted, turn left onto Taylor and left again into the parking garage. Food Donations -- Roy Talman Associates About ChiPy --- ChiPy is a group of Chicago Python Programmers, l33t, and n00bs. Meetings are held monthly at various locations around Chicago. Also, ChiPy is a proud sponsor of many Open Source and Educational efforts in Chicago. Stay tuned to the mailing list for more info. ChiPy website: http://chipy.org ChiPy Mailing List: http://mail.python.org/mailman/listinfo/chicago Python website: http://python.org ** ChiPy the Chipmunk is a fictitious character. Any similarity to actual chipmunks, living or dead, is purely coincidental. -- ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] ChiPy Presenters Wanted
Greetings: ChiPy http://chipy.org is looking for presenters for our August 9th meeting. This is our regular monthly meeting; although, it happens to be the day before C4 starts. Anyone who is in town is more than welcome to attend. We will love to have you regardless if your a presenter or not. We still need to find presenters and a venue so spread the word. Some possible venues may be Google's Chicago Office or UIC. The topic for this meeting is Snakes On Apples. The planning page may be found on our wiki: http://chipy.org/SnakesOnApples. A meeting dedicated to Python on the Macintosh is a ChiPy first. Please ping this list, the ChiPy list http://mail.python.org/mailman/ listinfo/chicago , update the wiki page, or contact me off the list if your even slightly interested in presenting. Kind Regards, Brian Ray [EMAIL PROTECTED] http://kazavoo.com/blog ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Can someone help me reverse engineer this installer?
On Jul 3, 2007, at 9:19 AM, skip at pobox.com wrote: A long time ago Sam Thorne created a Mac installer for SpamBayes. It's referenced here: http://entrian.com/sbwiki/MacOSXPackage and source is available here: http://www.s-j-t.co.uk/SpamBayes/SpamBayesPkg%200.5.zip This contains pmsp which should be upgraded to a pmproj. PackageMaker.app will do this for you. The package maker project is fairly self-explanatory. The Contents Root should probably be changed to a relative path. One thing to take in consideration is that there is a postflight and postinstall scripts that get ran at the appropriate time during the install. They will may be found in the SpamBayesPkg 0.5/ SpamBayes/Package_resources directory. Installer.app knows to run these because of how they are named. The install simply copies the files from what is found in SpamBayes/ Package_contents/ to /. So the three big items that get installed are: /Library/StartupItems/SpamBayes /Library/Python/2.3 /Library/SpamBayes/ The postinstall script adds SPAMBAYES=-YES- to the /etc/hostconfig The postflight script starts SpamBayes (simulating the way this will be done during boot using SystemStarter) and opens the url http:// localhost:8880, presumably where SpamBayes runs.. The binary package here: http://www.s-j-t.co.uk/SpamBayes/SpamBayesPackage.pkg.tgz won't untar for me. It complains about a lone zero block at 678. I get the same error. Must be corrupt. Brian Ray [EMAIL PROTECTED] http://kazavoo.com/blog ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Garbage Collection with Carbon
Hi Python Mac People: When I run the following: ### import sys,os import Carbon.File import Carbon.CF def fileurl(posix): fileref = Carbon.File.FSRef(posix) cfurl = Carbon.CF.CFURLCreateFromFSRef(fileref) filestr = cfurl.CFURLGetString() return filestr.CFStringGetString() if __name__ == __main__: print fileurl(/tmp) ### I get: python(7038) malloc: *** error for object 0x3101f0: double free python(7038) malloc: *** set a breakpoint in szone_error to debug file://localhost/private/tmp/ Can anybody tell me what those errors mean? And BTW, does anybody know if this code works fine with an untouched Tiger install. I am considering making this an automater script and giving to some friends. Although, the script does not work at all in Automator but works on the command line with the result above. I wonder if this makes Automator think the script failed? tia, Brian Ray with running python -v I get more info: snip... # /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/Carbon/CF.pyc has bad mtime import Carbon.CF # from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/Carbon/CF.py # can't create /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/Carbon/CF.pyc dlopen(/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload/_CF.so, 2); import _CF # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload/_CF.so python(7053) malloc: *** error for object 0x310200: double free python(7053) malloc: *** set a breakpoint in szone_error to debug file://localhost/private/tmp/ ... snip ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] SQLobject example
Did you see SQLObject has it's own mailing lists? http://sqlobject.org/community.html ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] MacPython documentation and webpages
On Jan 4, 2006, at 2:51 PM, Bob Ippolito wrote: There's already two relevant wikis (python.org, pythonmac.org), what would a CMS do differently? I agree these work well. I keep reminding myself to start adding stuff :) BTW, what happened to the ReStructuredText as a formatting option on pythonmac.org wiki? I tried to add some Carbon documentation a while back in ReST, but it gave me an error. Docutils? See the problem is I already have some of it in ReStructedText. Regards, Brian Ray http://brianray.chipy.org aim:brianray34 ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] PIL for Python 2.4x? (Mac OS 2.4.x)
On Jan 5, 2006, at 8:01 AM, Schollnick, Benjamin wrote: I am under the impression that PIL was bundled automatically with MacPython? Am I wrong? I think MacPython came with Package Manager. From Package Manager you obtain PIL. At least, that is what I read from the MacPython homepage. I never used PIL on the Mac. There are plenty of native Python binding to other (better?) imaging libraries. --Brian http://brianray.chipy.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] PIL for Python 2.4x? (Mac OS 2.4.x)
On Jan 5, 2006, at 8:01 AM, Schollnick, Benjamin wrote: I am under the impression that PIL was bundled automatically with MacPython? Am I wrong? I think MacPython came with Package Manager. From Package Manager you obtain PIL. At least, that is what I read from the MacPython homepage. I never used PIL on the Mac. There are plenty of native Python binding to other (better?) imaging libraries. --Brian http://brianray.chipy.org PS Sorry if you get multiple emails, Benjamin, I meant to reply to the list ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Converting to AppleEvents
Thanks for your guidance. I will play with all three and see where it gets me.Also, with:On Dec 7, 2005, at 5:57 AM, has wrote:1. Execute AppleScript code via os.system() and osascript: os.system(''' osascript -e 'with timeout of 3600 seconds tell application "TextEdit" get name end tell end timeout' ''') This seems to work well for now. However, is there a way to have os.system() wait till it's finished? In other words how to I get the osascript tool to not return until the script has actually finished.Brianhttp://brianray.chipy.org___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Speed up Python on the Mac?
On Dec 6, 2005, at 11:07 AM, Louis Pecora wrote:I see there are many other approaches (SWIG, Pyrex, Psyco -- some may not be available on the Mac), so I thought I would start here to ask what people in this email list use and recommend. Rewriting as "C" extensions is a good approach. But as you already said, it may be time consuming. Maybe break the program in small chunks to see where the bottle neck really exists. If your looking for the culprit, I would recommend taking a look at hotshot http://docs.python.org/lib/module-hotshot.html.Although it's part of the standard modules, some people do not realize it exists. I found this and other performance tips on Skip's site http://orca.mojam.com/~skip/python/fastpython.html.Regardless, sounds like you already know the culprit. Although this will not help you know, I have been told, Pycho http://psyco.sourceforge.net/ will run on the Intel Chip.hth, Brian Rayhttp://brianray.chipy.org___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Speed up Python on the Mac?
On Dec 6, 2005, at 11:39 AM, Louis Pecora wrote: Thanks for the tips, Brian. Wish I had that Intel Chip Mac Powerbook now. :-) BTW, I think you get a loner from Apple if your a transition developer. I have seen one although, I do not know the details.http://brianray.chipy.org___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Converting to AppleEvents
Hi All: I have an AppleScript I am calling with os.system(): with timeout of 3600 seconds tell application MyApp reload startup end tell end timeout I am interested in various methods to convert this to AppleEvents. Any sample codes of something similar? There seems to be more than one approach. Also, I do not mind keeping as an AppleScript in a triple quoted string, but I am onsure how this is done. I am trying to learn how to handle all my communication between Mach- O applications and Python2.3 with AppleEvents, although I do not know where to get started. Are there any tutorials on this topic? I do not want to use any helper modules because I also must stick with just Python2.3. Thanks in Advance. Brian Ray http://brianray.chipy.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig