Re: [Pythonmac-SIG] Python completion in emacs fails on OSX

2012-04-17 Thread Bill Janssen
This is really an Emacs issue, not a Python issue. I don't even see where they say they are both using the version of the Python interpreter. Bill Leo sdl@gmail.com wrote: It seems the python interpreter built by Apple doesn't behave like the ones built from upstream. See this:

Re: [Pythonmac-SIG] Problems with CoreGraphics API post-Snow Leopard

2012-04-17 Thread Bill Janssen
João Leão joaol...@gmx.net wrote: But now I'm getting another error (and I'll probably get some more) with another function that expects a CGFloat object instead of a plain integer. The code looks like this: --- self.pdf.drawPlainTextInRect(text_prov, textRect, 10) --- And the error

Re: [Pythonmac-SIG] Python on iphone for developers

2011-08-04 Thread Bill Janssen
Alex Jouravlev al...@businessabstraction.com wrote: Is there a port of Python to iPhone? I want to be able to check-out from SVN, edit and run some Python server code now and then. See https://github.com/cobbal/python-for-iphone/blob/master/iOS-build.sh. Bill

Re: [Pythonmac-SIG] Python on iphone for developers

2011-08-04 Thread Bill Janssen
with a working PyObjC for iOS, of course, but I don't know what the status of that is. Bill On Thu, 4 Aug 2011 11:58:58 PDT, Bill Janssen wrote: Alex Jouravlev al...@businessabstraction.com wrote: Is there a port of Python to iPhone? I want to be able to check-out from SVN, edit

Re: [Pythonmac-SIG] Lion

2011-07-20 Thread Bill Janssen
Dan Ross d...@rosspixelworks.com wrote: Anyone have reports of Pythons on Lion? It's Python 2.7.1 pre-installed in /System/Library, but I don't know about PyObjC or Twisted. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org

Re: [Pythonmac-SIG] why does the Mac installer hack the user's .bash_profile?

2011-04-11 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: BTW. I've talked with Ned about this feature at Pycon and we'd like to move to a python-select command that gives you a command-line tool for managing the path to the current python (simular to gcc-select or xcode-select). That way it should be

[Pythonmac-SIG] why does the Mac installer hack the user's .bash_profile?

2011-04-07 Thread Bill Janssen
I've got a Snow Leopard buildslave I'm trying to debug. So I thought I'd try Python 2.7 on it. Normally, I advise people to never try to install a different Python on a Mac, as it's too embedded in the OS to do safely, without a great deal of domain knowledge. But here, I figured I could always

Re: [Pythonmac-SIG] why does the Mac installer hack the user's .bash_profile?

2011-04-07 Thread Bill Janssen
Ned Deily n...@acm.org wrote: In article 64461.1302209...@parc.com, Bill Janssen jans...@parc.com wrote: I've got a Snow Leopard buildslave I'm trying to debug. So I thought I'd try Python 2.7 on it. Normally, I advise people to never try to install a different Python on a Mac, as it's

Re: [Pythonmac-SIG] why does the Mac installer hack the user's .bash_profile?

2011-04-07 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: I'm a bit confused, Bill. You're just that kind of guy that shouldn't have any problem hacking your .bash_profile! i.e. you are not the target audience for the installer. Right, I usually just build from source with a non-Framework build if I

Re: [Pythonmac-SIG] py2app not including /Library/Python/2.6/site-packages

2011-01-24 Thread Bill Janssen
Michael, I'm not sure what problem you are reporting? But some of those paths on sys.path look suspicious to me: /usr/Extras/lib/python, for instance. Might want to look into how those got on your sys.path. Also, in last week's discussion, we didn't really cover setuptools and easy_install, as

Re: [Pythonmac-SIG] Python development on OSX

2011-01-21 Thread Bill Janssen
Charles Hartman co...@conncoll.edu wrote: it would seem to be short-sighted for anyone interested in Python on the Mac not to support py2app as fully as possible. You calling me short-sighted, Charles? That's OK -- it's true, you know; I've been wearing thick glasses since I was a kid :-).

Re: [Pythonmac-SIG] Python development on OSX

2011-01-20 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: and certainly the majority of those who need any help. I think that's key -- Bill's approach is fine one for some users, but not what Id recommend to newbies that aren't sure how to set a PATH. Hmmm. My experience is that those are exactly

Re: [Pythonmac-SIG] Python development on OSX

2011-01-20 Thread Bill Janssen
Adam Morris amor...@mistermorris.com wrote: By the way, Python is more than just another good scripting language. I build large systems with it. I do (rarely) write Mac applications with Python. I use Xcode and Cocoa-Python, and IMO it works great. Is that using py2app under the covers?

Re: [Pythonmac-SIG] Python development on OSX

2011-01-18 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: On 1/17/11 9:17 AM, Bill Janssen wrote: And- I want to update the default python that came om my macbook pro to 2.7. Should I do install that from Python.org? My advice? I've never had good luck trying to update the default Python

Re: [Pythonmac-SIG] Python development on OSX

2011-01-17 Thread Bill Janssen
Tony Cappellini cappy2...@gmail.com wrote: And- I want to update the default python that came om my macbook pro to 2.7. Should I do install that from Python.org? My advice? I've never had good luck trying to update the default Python that comes with the Mac. I'd recommend just leaving it

Re: [Pythonmac-SIG] Loading Python on my Mac

2011-01-12 Thread Bill Janssen
Macs come with Python pre-installed. Open a Terminal window and type python at the prompt. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe:

[Pythonmac-SIG] sad state of OS X Python testing...

2010-10-03 Thread Bill Janssen
Folks, I was looking at the buildbots again. Do you realize that we have no OS X Snow Leopard buildbot? No Intel Leopard buildbot? Well over half of Mac users are using Snow Leopard, and we're not testing on that platform. In fact, the only Intel OS X machine we're testing on is a Core Duo,

Re: [Pythonmac-SIG] get an OS X buildbot into the stable set

2010-06-23 Thread Bill Janssen
-- Dan Rabin On Tue, Jun 22, 2010 at 11:05 AM, Bill Janssen jans...@parc.com wrote: Shashwat Anand anand.shash...@gmail.com wrote: I have Intel machine (2.53 GhZ, 4gb Ram) with Snow Leopard running on it and the system is 'ON' 24x7 with an average uptime of 1 month. I guess I can

Re: [Pythonmac-SIG] get an OS X buildbot into the stable set

2010-06-22 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: On 21 Jun, 2010, at 21:17, Bill Janssen wrote: I just noticed that the list of stable Python buildbots don't include any OS X buildbots. From the web page, the definition of stable is this: ``The stable versions are the primary

Re: [Pythonmac-SIG] get an OS X buildbot into the stable set

2010-06-22 Thread Bill Janssen
Shashwat Anand anand.shash...@gmail.com wrote: Tk is a foreign domain for me :( Beside I do participate in roundup, will increase the frequency after I get over with GSoC. I thought may be I can be of help regarding buildbots ( you mentioned something similar in issue 9048) We could use

Re: [Pythonmac-SIG] get an OS X buildbot into the stable set

2010-06-22 Thread Bill Janssen
Shashwat Anand anand.shash...@gmail.com wrote: I have Intel machine (2.53 GhZ, 4gb Ram) with Snow Leopard running on it and the system is 'ON' 24x7 with an average uptime of 1 month. I guess I can use mine to run the buildbots. That sounds great! Just install the buildbot software (see

[Pythonmac-SIG] get an OS X buildbot into the stable set

2010-06-21 Thread Bill Janssen
I just noticed that the list of stable Python buildbots don't include any OS X buildbots. From the web page, the definition of stable is this: ``The stable versions are the primary platforms that should always have all tests passing.'' Don't we want OS X in that set of platforms? Bill

Re: [Pythonmac-SIG] Still Unable to get my Python program working on the mac

2010-05-18 Thread Bill Janssen
An easy way to speak stuff on the Mac from Python is import os os.system(/usr/bin/say 'hello hello hello') Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe:

Re: [Pythonmac-SIG] Still Unable to get my Python program working on the mac

2010-05-16 Thread Bill Janssen
Mike, I looked back at your messages. I find that things work best on the Mac when I don't try to install things that Apple has already installed -- just my experience. Once you start doing that, you've almost got to take a couple of months and understand everything from source. There are also

Re: [Pythonmac-SIG] Still Unable to get my Python program working on the mac

2010-05-16 Thread Bill Janssen
I tried pyttsx on a Mac running 10.5.8: % ls MANIFEST.in README pyttsx setup.cfg PKG-INFOdocspyttsx.egg-info setup.py % python setup.py build Traceback (most recent call last): File setup.py, line 18, in module from ez_setup import use_setuptools

Re: [Pythonmac-SIG] buildbots for OS X: G4 eMacs useful?

2010-04-24 Thread Bill Janssen
Chris Barker chris.bar...@noaa.gov wrote: Bill Janssen wrote: I've got 3 eMacs just sitting around, and thought I'd deploy them as OS X Python buildbots, if they'd be useful. They're 1 GHz G4 machines, with 640 MB of memory, running Tiger If there is a need -- it would be great to keep

[Pythonmac-SIG] buildbots for OS X: G4 eMacs useful?

2010-04-23 Thread Bill Janssen
I've got 3 eMacs just sitting around, and thought I'd deploy them as OS X Python buildbots, if they'd be useful. They're 1 GHz G4 machines, with 640 MB of memory, running Tiger (I could upgrade to Leopard), 40 GB disks. Can we actually build and test on them? Bill

Re: [Pythonmac-SIG] py-appscript 0.20.3, 0.21.0 and impending 1.0.0 release (addendum)

2009-11-28 Thread Bill Janssen
has hengist.p...@virgin.net wrote: The bouncing Dock icon is gone when using appscript 0.21.0 on a version of Python that was built against 10.5 or 10.6 SDKs. (Yay!) Yay! Now I can can my private copy of Python with the LSUIElement flag set... Perhaps it's time python.org started

Re: [Pythonmac-SIG] Py2app PIL recipe

2009-11-24 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: I don't know, I don't even know which name is the preferred one. The PIL Handbook (http://www.pythonware.com/library/pil/handbook/index.htm) uses 'import Image' throughout. Note that the on-line PIL handbook is from 4.5 years ago. Bill

Re: [Pythonmac-SIG] PIL and Snow Leopard

2009-10-02 Thread Bill Janssen
Jerry LeVan jerry.le...@eku.edu wrote: Is building PIL on Snow Leopard 'easy' I have the apple python (32/64) installed and the python.org 2.6.2 (32 bit) version installed. Yes, I just build it with /usr/bin/python, and it works fine. Assuming you have Xcode 3.2 installed. Bill

Re: [Pythonmac-SIG] machine architecture 32/64 with Python 2.6 on Snow Leopard?

2009-09-19 Thread Bill Janssen
You could also use other test I've seen: def arch(): import ctypes return {4: i386, 8: x86_64}[ctypes.sizeof(ctypes.c_size_t)] Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-18 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: On 17 Sep, 2009, at 23:50, Bill Janssen wrote: Ronald Oussoren ronaldousso...@mac.com wrote: Bill, Appscript probably gets installed as a zipped egg, the .python-eggs directory gets created when a real filesystem path is needed

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-18 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: Yes, that's part of the problem. The other part is that .pth handling seems to have changed from 2.5 to 2.6. That's news to me. I've been using zipped eggs with 2.6 without any problems. Don't know that it had anything to do with eggs. What

[Pythonmac-SIG] machine architecture 32/64 with Python 2.6 on Snow Leopard?

2009-09-18 Thread Bill Janssen
I'm running /usr/bin/python on SL, and import platform; print platform.machine() give me i386 But Activity Monitor shows Python as Intel (64-bit). Is this a bug in platform.machine(), or am I misunderstanding what i386 means? platform.architecture() returns ('64bit', ''). Bill

Re: [Pythonmac-SIG] machine architecture 32/64 with Python 2.6 on Snow Leopard?

2009-09-18 Thread Bill Janssen
William Kyngesburye wokl...@kyngchaos.com wrote: If you run the CLI 'uname -m' on any Intel Mac, it always has returned i386. So all it really means is 'Intel'. On Sep 18, 2009, at 5:53 PM, Bill Janssen wrote: I'm running /usr/bin/python on SL, and import platform; print

Re: [Pythonmac-SIG] machine architecture 32/64 with Python 2.6 on Snow Leopard?

2009-09-18 Thread Bill Janssen
I think I'm just going to put '32bit' or '64bit' in my installer name strings. Bill e...@apple.com wrote: On Sep 18, 2009, at 5:05 PM, Bill Janssen wrote: William Kyngesburye wokl...@kyngchaos.com wrote: If you run the CLI 'uname -m' on any Intel Mac, it always has returned i386

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-17 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: Bill, Appscript probably gets installed as a zipped egg, the .python-eggs directory gets created when a real filesystem path is needed for an item in such an egg. Yes, that's part of the problem. The other part is that .pth handling seems to

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-14 Thread Bill Janssen
has hengist.p...@virgin.net wrote: On 13 Sep 2009, at 18:52, Bill Janssen wrote: Is it possible to disentangle appscript from setuptools? I just downloaded the sources to my Snow Leopard machine, did python setup.py build python setup.py install which went just fine. But then I

[Pythonmac-SIG] Using Python 2.5 on Snow Leopard

2009-09-11 Thread Bill Janssen
I was happy to see that Python 2.5 still shipped with SL, but now I'm less happy. I can't seem to compile PIL for Python 2.5 on Snow Leopard. The problem is that when I build and install libjpeg or libpng, it builds 64-bit libraries, but Python 2.5 is 32-bit, so the libraries don't work when PIL

Re: [Pythonmac-SIG] Using Python 2.5 on Snow Leopard

2009-09-11 Thread Bill Janssen
Brad Howes ho...@ll.mit.edu wrote: On Sep 11, 2009, at 1:50 PM, Bill Janssen wrote: I was happy to see that Python 2.5 still shipped with SL, but now I'm less happy. I can't seem to compile PIL for Python 2.5 on Snow Leopard. The problem is that when I build and install libjpeg

Re: [Pythonmac-SIG] Using Python 2.5 on Snow Leopard

2009-09-11 Thread Bill Janssen
. Bill Thijs Triemstra | Collab li...@collab.nl wrote: On 11 Sep 2009, at 18:50, Bill Janssen wrote: I was happy to see that Python 2.5 still shipped with SL, but now I'm less happy. I can't seem to compile PIL for Python 2.5 on Snow Leopard. Hm, haven't upgraded to snow leopard yet

Re: [Pythonmac-SIG] Mac OS-X 10.5 and two icons bouncing in the dock problem

2009-08-14 Thread Bill Janssen
I guess the question is, why two dock icons? I'm seeing something perhaps similar; I have a Python-Cocoa app that when started will cause one of those pop-up windows, App quit unexpectedly, do you want to submit a bug report to Apple, and the crash report shows that a multi-threaded program

Re: [Pythonmac-SIG] Mac OS-X 10.5 and two icons bouncing in the dock problem

2009-08-14 Thread Bill Janssen
Anything having to do with Finder or the Dock (or Activity Monitor, for that matter) seems to be somewhat over-simplified and mysterious. Not responding, in Activity Monitor, for instance, seems to be due to an undocumented window server probe of processes marked somehow as applications, for

Re: [Pythonmac-SIG] how to recover from a framework build?

2009-07-30 Thread Bill Janssen
Bill Janssen jans...@parc.com wrote: Think I fixed things. I found two problems. First of all, my build wasn't universal, but it appparently overwrote the Python framework SDK in /Developer/. So when Xcode tried to build for both ppc and i386, it only found i386. That was the link error

Re: [Pythonmac-SIG] how to recover from a framework build?

2009-07-30 Thread Bill Janssen
Ned Deily n...@acm.org wrote: Sorry, I don't use Xcode for Python development but I'm having a hard time imagining what sequence of events would have caused the SDK to be overwritten. I'm assuming you mean: /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework

[Pythonmac-SIG] how to recover from a framework build?

2009-07-29 Thread Bill Janssen
I made the mistake of trying to build a version of Python with debugging symbols on my Mac. I downloaded the sources to 2.5.4, and did a make frameworkinstall DESTDIR=/tmp. Now my Python-Cocoa apps won't compile in Xcode. They compiled just fine before I did this... Line Location Tool:0:

Re: [Pythonmac-SIG] how to recover from a framework build?

2009-07-29 Thread Bill Janssen
: In article 6054.1248909...@parc.com, Bill Janssen jans...@parc.com wrote: I made the mistake of trying to build a version of Python with debugging symbols on my Mac. I downloaded the sources to 2.5.4, and did a make frameworkinstall DESTDIR=/tmp. Now my Python-Cocoa apps won't compile

Re: [Pythonmac-SIG] Python program done, now need to Change Rocketship Icon, Remove Python menu?

2009-06-29 Thread Bill Janssen
Python Nutter pythonnut...@gmail.com wrote: 1. I wish to override the Rocketship icon and display an icon representing my Application. Put your icon in the Info.plist file of your application: keyCFBundleIconFile/key stringYourLogo.icns/string You can use

Re: [Pythonmac-SIG] Installing Pygame

2009-06-29 Thread Bill Janssen
My two cents: Don't try to install a new Python on OS X. Just use /usr/bin/python. artha...@sbcglobal.net wrote: I am using a Mac PPC with Tiger 10.4.11 and I recently downloaded and installed Python 2.6.2. and I am having difficulties getting started. What are you trying to do, learn

Re: [Pythonmac-SIG] Building a debug framework build of Python

2009-06-02 Thread Bill Janssen
, 2009, at 2:14, Bill Janssen wrote: I'd like to be able to connect to my Python programs, mainly long-running servers, and see what's going on in specific threads. To do that, I need a version of Python that's compiled with debug symbols in it. What's the correct invocation to build

Re: [Pythonmac-SIG] Building a debug framework build of Python

2009-06-02 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: On 2 Jun, 2009, at 17:26, Bill Janssen wrote: Thanks, Ronald. It looks to me as if MacPython already includes the -g flags appropriately (at least build-script.py does); could I just download 2.5.4 from python.org and use

Re: [Pythonmac-SIG] Building a debug framework build of Python

2009-06-02 Thread Bill Janssen
) t.start() return t start_new_thread = staticmethod(start_new_thread) def allocate_lock(): return threading.RLock() allocate_lock = staticmethod(allocate_lock) Leonardo Santagada santag...@gmail.com wrote: On Jun 2, 2009, at 1:18 PM, Bill Janssen wrote

Re: [Pythonmac-SIG] question about garbage collection with NSApplication.run()

2009-06-01 Thread Bill Janssen
Thanks, Ronald. Bill Ronald Oussoren ronaldousso...@mac.com wrote: On 31 May, 2009, at 20:34, Bill Janssen wrote: I'm writing a Python program that has a main that looks like this: application = NSApplication.sharedApplication() # set up handler for network change

[Pythonmac-SIG] Building a debug framework build of Python

2009-06-01 Thread Bill Janssen
I'd like to be able to connect to my Python programs, mainly long-running servers, and see what's going on in specific threads. To do that, I need a version of Python that's compiled with debug symbols in it. What's the correct invocation to build a debug version of Python (2.5) which matches

[Pythonmac-SIG] crankd for monitoring OS X

2009-05-31 Thread Bill Janssen
I ran across this project yesterday, and thought I'd point it out to others: http://code.google.com/p/pymacadmin/ A collection of Python utilities for Mac OS X system administration. In particular, check out crankd, a Python program for monitoring various kinds of OS X events. Bill

[Pythonmac-SIG] question about garbage collection with NSApplication.run()

2009-05-31 Thread Bill Janssen
I'm writing a Python program that has a main that looks like this: application = NSApplication.sharedApplication() # set up handler for network change notification SCDynamicStoreSetNotificationKeys(DYNSTORE, None, [NETWORK_KEY,]) # Get a CFRunLoopSource for our

Re: [Pythonmac-SIG] Why is Framework build of Python needed

2009-05-14 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: On 14 May, 2009, at 4:31, Bill Janssen wrote: I think this depends on what you think the native Mac GUI is, and what you want to do with it. For instance, a non-framework build, combined with Xlib (http://python-xlib.sourceforge.net

Re: [Pythonmac-SIG] Why is Framework build of Python needed

2009-05-14 Thread Bill Janssen
, which seems like a lot of work. Bill Janssen wrote: I think this depends on what you think the native Mac GUI is, and what you want to do with it. For instance, a non-framework build, combined with Xlib (http://python-xlib.sourceforge.net/) works quite well with the Apple X11 server

Re: [Pythonmac-SIG] Why is Framework build of Python needed

2009-05-13 Thread Bill Janssen
The Mac comes with a Framework build of Python pre-installed (and with PyObjC pre-installed, which you also need). Just use /usr/bin/python, and you'll be fine. It's the default way that Python builds on a Mac, too. Bill Brian Granger ellisonbg@gmail.com wrote: Hi, I seem to recall

Re: [Pythonmac-SIG] Why is Framework build of Python needed

2009-05-13 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: Brian Granger ellisonbg@gmail.com wrote: I seem to recall that a Framework build of Python is needed if you want to do anything with the native Mac GUI. Is my understanding correct? Pretty much -- to access the Mac GUI, an app

Re: [Pythonmac-SIG] Why is Framework build of Python needed

2009-05-13 Thread Bill Janssen
I think this depends on what you think the native Mac GUI is, and what you want to do with it. For instance, a non-framework build, combined with Xlib (http://python-xlib.sourceforge.net/) works quite well with the Apple X11 server, which in turn uses the native Mac GUI. Bill Brian Granger

Re: [Pythonmac-SIG] Leaning PyObjC

2009-05-07 Thread Bill Janssen
Kevin Walzer k...@codebykevin.com wrote: My strong preference is to keep my Python toolchain reasonably close to what I'm doing already, i.e. doing my development outside of Xcode and using py2app for bundling, rather than using Xcode. I found crossing this bridge a bit tricky, until I

Re: [Pythonmac-SIG] Building a PreferencePane with PyObjC?

2009-04-20 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: If you don't add the IBAction decorator Interface Builder won't show your action methods as actions when you ctrl-drag a connection to an instance of your class. Thanks, Ronald. So this is part of what IB looks for when you tell it to scan the

Re: [Pythonmac-SIG] Building a PreferencePane with PyObjC?

2009-04-19 Thread Bill Janssen
Emacs myself, but it's handy to generate that stub project you recommend. Bill Ronald On 17 Apr, 2009, at 19:56, Bill Janssen wrote: Hi, all. I'm trying to build a PreferencePane with Python and Interface Builder, and the examples I can find on the Web seem somewhat out-of-date

Re: [Pythonmac-SIG] Building a PreferencePane with PyObjC?

2009-04-19 Thread Bill Janssen
Bill Janssen jans...@parc.com wrote: Ronald Oussoren ronaldousso...@mac.com wrote: The example that's in the repository is fully up-to-date, although it doesn't use Interface Builder. Good to know. I'd downloaded a version of the example from somewhere, which seems a bit antique

Re: [Pythonmac-SIG] Building a PreferencePane with PyObjC?

2009-04-19 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: On 19 Apr, 2009, at 21:01, Bill Janssen wrote: Ronald Oussoren ronaldousso...@mac.com wrote: The example that's in the repository is fully up-to-date, although it doesn't use Interface Builder. Good to know. I'd downloaded a version

[Pythonmac-SIG] Building a PreferencePane with PyObjC?

2009-04-17 Thread Bill Janssen
Hi, all. I'm trying to build a PreferencePane with Python and Interface Builder, and the examples I can find on the Web seem somewhat out-of-date. In particular, the EnvironmentPane example seems to use a magic NIB, which I can't figure out how to construct from scratch, and which I can't seem

Re: [Pythonmac-SIG] Using Python with Emacs

2009-04-08 Thread Bill Janssen
Gregg Lobdell gmlobd...@seanet.com wrote: I can get it to start python 3.0 if, in python.el, I set python- python-command to /Library/Frameworks/Python.framework/Versions/3.0/ bin/python. But this seems like a kludge, to have to set the full path. There must be a better way. This is really

Re: [Pythonmac-SIG] urllib2.urlopen fails in a forked daemon with a CoreFoundation error

2009-03-16 Thread Bill Janssen
Jarkko Laiho jarkko.la...@iki.fi wrote: So ultimately the question is: how should the forking code in the recipe be modified, so that it satisfies the requirements of OS X? What does an actual, concrete exec() call look like in this case, and at what point in the code should it occur? I

Re: [Pythonmac-SIG] urllib2.urlopen fails in a forked daemon with a CoreFoundation error

2009-03-15 Thread Bill Janssen
You need to do an exec after doing a fork. /usr/bin/python on OS X is a framework build, and some (most?) of the OS X frameworks just don't work after doing a fork. You have to restart with an exec. It's hard to say just what is using CF; I see you're importing some external packages (json

Re: [Pythonmac-SIG] appscript path issue

2009-03-06 Thread Bill Janssen
Jack Jansen jack.jan...@cwi.nl wrote: I wouldn't be surprised if the root of the problem is with PowerPoint. It started its life as an OS9 application, so if it still thinks it lives in an OS9 world with FSSpecs and colon-separated pathnames, it could be trying to do the conversion to

Re: [Pythonmac-SIG] appscript path issue

2009-03-05 Thread Bill Janssen
has hengist.p...@virgin.net wrote: Bill Janssen wrote: I'm trying to write this scrap of Applescript in Python appscript: on run tell application Microsoft PowerPoint set this_item to path of active presentation end tell set unix_item to POSIX path

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-05 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: Can you reproduce the issue in the second problem with a simple script? If so, please file a bug in the python bugtracker and assign it to me. If I could, I'd be halfway to fixing it -- but thanks! The dock icon should mean you're calling an

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-04 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: LSUIElement=1 completely surpresses the dock icon and menu bar for an application, although you can get those back by calling an API. This would be a support nightmare for python.app, any (OSX) newby that runs a Tkinter script from a tutorial ends

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-04 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: Whether we need to also upgrade the tutorials strikes me as a minor matter. You'd have to modify every tutorial out there, including books. That's not really feaseable. Python changes. Tutorials need to keep changing. The right ways to

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Henning Hraban Ramm hra...@fiee.net wrote: But I wouldn't like to loose some GUI functionality. I'm sure that's true. But I think the change I'm proposing needn't cause any negative effects. I've lost the ability to log out, and would like that back! Bill

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: if I understand the LSUIElement document correctly the setting you propose would make it impossible to use python sometkscript.py to run a simple GUI script. Then you misunderstand either LSUIElement, or the discussion so far. What we'd like to do

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: On 2 Feb, 2009, at 21:53, Bill Janssen wrote: In any case, it does include a info.plist, and it may include a different launch stub, so setting LSUIElement = 1 may work in either case. Sounds reasonable, then. Set LSUIElement=1

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: Most of *my* wxPython-based (actually dabo-based) tools don't even need to be an app bundle - doubleclicking some .py file is mostly enough. But I wouldn't like to loose some GUI functionality. IMHO running the script shouldn't be the default

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
has hengist.p...@virgin.net wrote: Annoying, but tweaking the Python.app bundle's LSBackgroundOnly/LSUIElement flags isn't a solution, it's a kludge - one that will take us back to the bad old days where some scripts automatically fail when run with 'python'. *Right now*, some scripts fail

[Pythonmac-SIG] setting LSUIElement in Python.app Info.plist

2009-02-03 Thread Bill Janssen
I have to say, I find the somewhat uninformed resistance to this idea incredible. It's an *idea*, folks, not a patch. It can't hit OS X in any form till 10.7, which is well over a year away. Relax -- try it out, read the docs, and report back. Let's *find out* what the effects of doing this

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Ronald Oussoren ronaldousso...@mac.com wrote: On 3 Feb, 2009, at 17:54, Bill Janssen wrote: I'm seriously wondering if having Python Launcher.app is a good idea, and if we shouldn't scrap it entirely. If building full app bundles using py2app is too much of a burden we could look

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Chris, I'm a bit confused, too. Could someone (Bill?) summarize what functionally will change if this change is applied? Basically, if you're running /usr/bin/python or Python.app directly, you still won't get a dock icon even if you're using appscript. The app is marked as an agent

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: This is a concern -- what if I do need to Force Quit my app? I can probably find it with ps, and kill it with kill, but that's only because I was a Linux geek before I got a Mac. Then give your app its own Info.plist. There are zillions of

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Kevin Walzer k...@codebykevin.com wrote: Bill, the behavior that you experiencing is the expected behavior of Python, albeit not what you want in this instance. Rather than re-doing the long-standing infractucture of Python on the Mac, wouldn't it be better to find the code that is causing

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-03 Thread Bill Janssen
Bill Janssen jans...@parc.com wrote: It would, and that's actually the long-standing infrastructure of Python on the Mac that you refer to. The Python.app formulation is recent, and not yet well-enough debugged. Though, I should hasten to say, I think removing the distinction between python

[Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-02 Thread Bill Janssen
I'm thinking that the right thing to do about rocket-in-the-dock should be to change the Info.plist of Python.app, to include the setting LSUIElement: 1. Here's the doc from Apple: ``LSUIElement (String). If this key is set to '1', Launch Services runs the application as an agent application.

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-02 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: Bill Janssen wrote: It seems to me that this is what we want for the Python interpreter proper. could be. It sounds promising. Applications (like IDLE) that are indeed proper foreground apps can always call TransformProcessType

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-02 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: Bill Janssen wrote: Yes, that sounds like a good idea to me. I've never used py2app; does it include a private copy of Python? yes and no: yes, if you run it with the non-apple python no, if you run it with Apple's system python

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-02 Thread Bill Janssen
Ned Deily n...@acm.org wrote: In article 73365.1233593...@parc.com, Bill Janssen jans...@parc.com wrote: I'm thinking that the right thing to do about rocket-in-the-dock should be to change the Info.plist of Python.app, to include the setting LSUIElement: 1. There's also

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-02 Thread Bill Janssen
Christopher Barker chris.bar...@noaa.gov wrote: Ned Deily wrote: I'm thinking that the right thing to do about rocket-in-the-dock should be to change the Info.plist of Python.app, to include the setting LSUIElement: 1. There's also LSBackgroundOnly. That might be even more

Re: [Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?

2009-02-02 Thread Bill Janssen
Robin Dunn ro...@alldunn.com wrote: Bill Janssen wrote: But only tkinter is part of the Python distribution, I believe. Of course, whoever supports the various non-standard GUI toolkits might also want to make changes, if necessary. Of course, that's a pretty standard thing that most

Re: [Pythonmac-SIG] appscript rocket-in-dock preventing logout

2009-01-31 Thread Bill Janssen
:. If the delegate does not implement this method, the application is terminated regardless of any unsaved documents. Presumably, my script doesn't implement this method, and thus the application is terminated. How? Is it as simple as installing a SIGTERM handler? Bill Bill Janssen wrote: We discussed

Re: [Pythonmac-SIG] appscript rocket-in-dock preventing logout

2009-01-31 Thread Bill Janssen
Bill Janssen jans...@parc.com wrote: I'm not running Python.app -- I'm running /usr/bin/python, which if I follow the symlinks leads me to /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5, which in turn file shows to be a dual-architecture executable, which in my case

Re: [Pythonmac-SIG] appscript rocket-in-dock preventing logout

2009-01-31 Thread Bill Janssen
Ned Deily n...@acm.org wrote: In article 55150.1233433...@parc.com, Bill Janssen jans...@parc.com wrote: has hengist.p...@virgin.net wrote: ...or prevent the OS from automatically upgrading your python process to a GUI process (which it only does if it knows the executable

[Pythonmac-SIG] appscript rocket-in-dock preventing logout

2009-01-30 Thread Bill Janssen
We discussed this a bit last year, but with no resolution that I remember. I've got a situation where a Python program is preventing logout/shutdown. It's a script that just runs in an endless loop watching what app I'm working with; when it sees one it knows (Preview, MS Word, Safari, etc.) it

Re: [Pythonmac-SIG] PDF reading

2009-01-25 Thread Bill Janssen
Paul Brown appwo...@mac.com wrote: anyone have any pointers on reading a pdf file. i need to extract the text content , page number , text style , block , ... all in XML if poss Paul Hi, Paul. I use a patched version of xpdf to get this stuff, which works pretty well. Extracts the

Re: [Pythonmac-SIG] socket code works on Win32 but not Mac :-(

2009-01-15 Thread Bill Janssen
Ranec python-...@cemery.org.uk wrote: s.connect(('google.com', 0)) What does this even mean? google.com is a domain, not a server (though it does forward to www.google.com). And port 0? Does anything listen on port 0? Sounds like OS X is the only platform that gets this right :-).

Re: [Pythonmac-SIG] socket code works on Win32 but not Mac :-(

2009-01-15 Thread Bill Janssen
Sorry, my mistake. I didn't see you were using UDP... Bill Janssen jans...@parc.com wrote: does anything listen on port 0? Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] appscript Python script preventing logout

2008-12-18 Thread Bill Janssen
has hengist.p...@virgin.net wrote: copy Python.app's executable (.../Python.app/ Contents/MacOS/Python) to /usr/local/bin/pythonb and use that to run your scripts. Ah! That sounds easy. I'll try it. aemreceive's sfba module lets you run an event loop, which you need to handle any sort of

  1   2   3   >