Re: [Pythonmac-SIG] os 9.2

2009-08-18 Thread Ned Deily
gui would be nice, but keyboard based input > would be ok too... Try here: http://homepages.cwi.nl/~jack/macpython/download.html Good luck! -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/m

Re: [Pythonmac-SIG] no module named appscript error

2009-08-16 Thread Ned Deily
part of the standard library. Have you included it in a packages option to py2app? -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] run python script on another computer's terminal (LAN)

2009-08-11 Thread Ned Deily
In article , Ned Deily wrote: > In article > <50697b2c0908111235j42440662ic7cdffa611f96...@mail.gmail.com>, > Chris Rebert wrote: > > On Tue, Aug 11, 2009 at 3:25 PM, pedro wrote: > > > Hi, does anyone know how to send a command that is within a python >

Re: [Pythonmac-SIG] run python script on another computer's terminal (LAN)

2009-08-11 Thread Ned Deily
>>> from appscript import * >>> term=app("Terminal",url="eppc://USERNAME:passw...@computer2.local") >>> term.do_script("ls") http://appscript.sourceforge.net/py-appscript/doc/appscript-manual/07_app licationobjects.html -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Making a Python application scriptable via AppleScript

2009-08-08 Thread Ned Deily
t for Apple events. Presumably that would include supplying an sdef and modifying the app bundle's Info.plist to enable scripting as outlined here: http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptableCocoa Applications/SApps_implement/SAppsImplement.html#//a

Re: [Pythonmac-SIG] MacPython Leopard help needed

2009-08-07 Thread Ned Deily
ribution to use on OSX is a frequent discussion topic and there are other options and other pros and cons; search the archives if interested. Whatever you do, don't try to delete or alter the Apple-maintained Python 2.5 files in /System/Library. -- Ned Deily, n...@acm.org

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

2009-07-31 Thread Ned Deily
veloper/SDKs/MacOSX10.5.sdk/Library/Frameworks is a symlink to / Library/Frameworks. -- Ned Deily n...@acm.org -- [] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

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

2009-07-30 Thread Ned Deily
the /Developer version of the library? The normal install path for a frameworks build is /Library/Frameworks/ Python.frameworks/Version/... . And it appears that /Developer/SDKs/MacOSX10.5.sdk/Library/Frameworks is a symlink to /Library/Frameworks. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Problem in EasyDialogs???[Sec=Unclassified]

2009-07-30 Thread Ned Deily
st to migrate away from use of EasyDialogs now. Short of that, you may have better luck with using it from Python 2.5. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

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

2009-07-29 Thread Ned Deily
referenced from: > > Any ideas? Long shot (Xcode 3.1.3): in the project's Groups & Files list, select the Python.framework and do a Get Info on it to ensure that the path is set to /System/Library/... . -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py2app refresher

2009-07-22 Thread Ned Deily
want to do it on Mac but are > at home in Python but not in Terminal. Glad it worked. It normally is easier and clearer; py2app and friends could use a new release. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Python

Re: [Pythonmac-SIG] py2app refresher?

2009-07-21 Thread Ned Deily
not find suitable distribution for > Requirement.parse('modulegraph>=0.7.2dev') > > I'm afraid I'm too ignorant to know what to do next. Ah, py2app depends on several other packages (modulegraph, macholib, altgraph, maybe others) that may also have updates

Re: [Pythonmac-SIG] py2app refresher?

2009-07-21 Thread Ned Deily
setuptools incompatibility with the lastest version of svn): mkdir /tmp/p2a cd /tmp/p2a svn co http://svn.pythonmac.org/py2app/py2app/trunk/ easy_install trunk/ -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Interpreter not initialized

2009-06-05 Thread Ned Deily
ype "python", you'll still get the system python. Try explicitly invoking the desired python, like this: $ cd /path/to/app/direcotry $ /opt/local/bin/python2.6 setup.py py2app That should work regardless of $PATH and of the python_select setting. --

Re: [Pythonmac-SIG] Chinese glyphs in Python 3

2009-05-26 Thread Ned Deily
would be initialization glue code at run time that looks at the run environment to see which Tk is installed and then loads and sets up all calls to the appropriate _tkinter.so. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Python PyGame GTK SQLAlchemy on Leopard

2009-05-17 Thread Ned Deily
iling list. You might want to check its archives or ask over there. <http://pygtk.org/feedback.html> Good luck! -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Python PyGame GTK SQLAlchemy on Leopard

2009-05-16 Thread Ned Deily
tk > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named pygtk IIUC, those instructions just install the underlying GTK+ libraries. You would still need to install PyGTK, the python wrappers to those libraries: http://www.pygtk.org/downloads.html -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

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

2009-05-13 Thread Ned Deily
't tried to install them and have no idea how well they work. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

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

2009-05-13 Thread Ned Deily
uptools should generally be able to transparently handle the framework-specific details for you. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Use Setup.py to install to /usr

2009-04-19 Thread Ned Deily
cports also includes a duplicity port, though no idea how well it is maintained. Or, in theory, you could use virtualenv with any of those python versions to create a "frozen" virtual python environment and install duplicity there. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Unable to run python application

2009-04-15 Thread Ned Deily
s on the new window, the menu bar will change to include a Run menu. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] MacPython sprint at PyCon

2009-03-25 Thread Ned Deily
any other sprints that grab my attention, but it > would be nice to have a bigger group. It would! > Partly I'm wondering 'cause I need to know if I need to bring a Mac. As opposed to a Windows laptop ? :=) (FWIW, I'll be mac-enabled.) -- Ned Deily, n...@acm.org _

Re: [Pythonmac-SIG] [pysqlite] sqlite and python

2009-03-25 Thread Ned Deily
te2 is just the python wrapper to a sqlite3 library, it doesn't include sqlite3 itself. Note, the cavaet in the spatialite install instructions: "the sqlite3 of standard distribution [10.5] doesn't supports the dynamic extension loading mechanism" So I think you'll need to do

Re: [Pythonmac-SIG] [pysqlite] sqlite and python

2009-03-25 Thread Ned Deily
g on osx too ? > thanks a lot for any help! <http://www.gaia-gis.it/spatialite/instalMacOsX.html> -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Python PyGame GTK SQLAlchemy on Leopard

2009-03-22 Thread Ned Deily
Frameworks. And fink python installs are more debian-y style non-framework layouts in /sw/{bin,lib,...}. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Uninstalling Python 2.6?

2009-02-23 Thread Ned Deily
t* respect, there is no advantage to using MacPorts over python.org pythons. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] 64-bit mode no work

2009-02-22 Thread Ned Deily
omething like this: EGG-INFO/ MySQLdb/ _mysql.py* _mysql.pyc _mysql.pyo _mysql.so* _mysql_exceptions.py* _mysql_exceptions.pyc _mysql_exceptions.pyo So it looks like there's something wrong with your sys.path here. Are you using your python-64 to install the built egg to its site-packages

Re: [Pythonmac-SIG] 64-bit mode no work

2009-02-21 Thread Ned Deily
have it. The support for 4-way universal builds in python is relatively new. There has been some discussion recently on the python-dev list about providing "official" 4-way installers for OS X. This will probably get discussed more at the upcom

Re: [Pythonmac-SIG] IDLE fixes for 2.x and 3.x

2009-02-16 Thread Ned Deily
In article , Ned Deily wrote: > [...] All versions can > co-exist with each other and with the Apple-supplied python which lives > in /System/Library/Frameworks/Python.framework/Versions/2.5 > for 10.5 and 2.3 for > 10.4. > [...] -- Ned De

Re: [Pythonmac-SIG] IDLE fixes for 2.x and 3.x

2009-02-16 Thread Ned Deily
ce to have a more intuitive way to manage the nest of pythons. There will be likely be some discussion and perhaps some work on that at the upcoming Pycon. I'm sure I'm missing some details here but I hope that gives you enough to feel comfortable exploring 3.0. -- Ned Deily,

Re: [Pythonmac-SIG] IDLE fixes for 2.x and 3.x

2009-02-16 Thread Ned Deily
In article , Ned Deily wrote: > I've opened the following issues for problems with various menu, key > definitions, and launch problems with IDLE.app and bin/idle on OS X: > <http://bugs.python.org/issue5194> > <http://bugs.python.org/issue5195> > &

Re: [Pythonmac-SIG] resetting up-arrow

2009-02-16 Thread Ned Deily
cent python.org pythons are linked with the former while Apple's built-in python has the latter. Unfortunately, the two have different syntax. See for instance: <http://article.gmane.org/gmane.comp.python.general/606317> -- Ned Deily, n...@acm.org ___

Re: [Pythonmac-SIG] Python 3 Update?

2009-02-16 Thread Ned Deily
; http://python.org/ftp/python/3.0.1/python-3.0.1-macosx2009-02-14.dmg > > Dunno whether it's Universal. It's 2-way "fat" Universal: i386 and ppc. And should work on 10.3.9(?) on up. -- Ned Deily, n...@acm.org ___ Pytho

Re: [Pythonmac-SIG] IDLE fixes for 2.x and 3.x

2009-02-10 Thread Ned Deily
In article <49919728.6020...@codebykevin.com>, Kevin Walzer wrote: > Ned Deily wrote: > > The patches included have been tested on 2.6, 2.7, 3.0, and 3.1 as > > indicated. I believe that, with these patches applied, IDLE.app and > > command line idle (bin/idle) o

[Pythonmac-SIG] IDLE fixes for 2.x and 3.x

2009-02-09 Thread Ned Deily
via the issue tracker. [1] One minor difference: bin/idle still has an application name of "Python" in menus and the dock while IDLE.app is "IDLE". -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@py

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

2009-02-02 Thread Ned Deily
In article <77657.1233609...@parc.com>, Bill Janssen wrote: > Ned Deily wrote: > > In article <73365.1233593...@parc.com>, Bill Janssen > > wrote: > > > I'm thinking that the right thing to do about rocket-in-the-dock should > > > be to c

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

2009-02-02 Thread Ned Deily
try to whip something up in the next few days and report back. One thing the background settings doesn't seem to change is the regression test (subprocess) that brings up the Application Failed dialog. But I haven't had time to look at that one in detail

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

2009-01-31 Thread Ned Deily
steps in the Mac/Makefile.in, as I have been doing recently. Note that the binary at /bin/python2.5 is *not* the actual python interpreter binary. Rather it is the so-called pythonw binary whose only function is to execv to the real python binary which is located at /Resources/Python.

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

2009-01-15 Thread Ned Deily
, socket.SOCK_DGRAM) >>> s.connect(('google.com', 0)) Traceback (most recent call last): File "", line 1, in File "", line 1, in connect socket.error: [Errno 49] Can't assign requested address >>> s.connect(('google.com', 1)) >>

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary? [SOLVED!]

2009-01-08 Thread Ned Deily
d. I think documenting the problem with 5.1.30, which we've done in the pythonmac world and on the MySQL tracker, and if necessary "encouraging" a resolution over at MySQL are sufficient actions for now. In any case, just my $0.02. --Ned -- Ned Deily, n...@acm.org __

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
In article , Ned Deily wrote: > Did you try rebuilding the app bundle with py2app after the mysql libs > were fixed? Safer: after fixing the mysql libs installed on your mac (not in the app bundle), first rebuild MySQLdb, then rebuild the app with py2app. -- Ned Deily, n...@a

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
In article <496586d9.8000...@strout.net>, Joe Strout wrote: > Ned Deily wrote: > > > Hmm, there's omething odd about that download. > > ... > > > $ file libmysqlclient_r.16.0.0.dylib > > libmysqlclient_r.16.0.0.dylib: Mach-O universal binary wi

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
ibmysqlclient_r.16.0.0.dylib libmysqlclient_r.dylib -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
In article , Ned Deily wrote: > Yes, but see my followup post. After comparing the 5.0 and 5.1 > tarballs, it seems clear that the libs on the 5.1 tarball are hosed a > bit. I've opened bug #41940 on the MySQL tracker to document the problem. -- Ned Deily,

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
mysqlclient_r.16.0.0.dylib (for architecture ppc): Mach-O dynamically > > linked shared library ppc > > and where did you get this? is that from the tarball on the MySQL site? Yes, but see my followup post. After comparing the 5.0 and 5.1

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
In article , Ned Deily wrote: > In article <49653a6a.3070...@strout.net>, Joe Strout > wrote: > [...] > > But OK, now this brings up the question of why my > > libmysqlclient_r.16.dylib is Intel-only, when I took pains to install a > > UB version of MySQL (c.

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
ib (for architecture ppc): Mach-O dynamically linked shared library ppc $ file libmysqlclient_r.16.dylib libmysqlclient_r.16.dylib: Mach-O dynamically linked shared library i386 Perhaps you can get away with making a symlink or copying from one to the other?? -- Ned Deily, n...@acm.org

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
In article , Ned Deily wrote: > It looks like there is an open feature request for the MySQL prebuilt > packages to be built as universal libraries. The submitter includes a > recipe for doing it yourself. I haven't tried it myself, though. > > <http://bugs.mysql.com

Re: [Pythonmac-SIG] How to get setuptools to build a Universal Binary?

2009-01-07 Thread Ned Deily
zipped, create a .pydistutils.cfg file in your home directory with an [easy_install] section: [easy_install] zip-ok = 0 So, once you have a universal mysql client library installed, easy_install -Z MySQL-python should be all you need to download, build, and install mysqldb. HTH! -- Ned Dei

Re: [Pythonmac-SIG] py2app: Bombing on unknown load command 27

2009-01-05 Thread Ned Deily
order of directories on its sys.path, the older version is always found first. Jack suggests a workaround in this thread: <http://comments.gmane.org/gmane.comp.python.apple/13850> So you could try putting a .pth hack for the newer setuptools into one of the directories on sys.path as

Re: [Pythonmac-SIG] Compiling Python 2.6.1 on Leopard

2008-12-20 Thread Ned Deily
dded at python.org: <http://www.python.org/download/releases/2.6.1/> -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py2app on UDF DVD

2008-12-15 Thread Ned Deily
dle in a disk image and place the disk image file on the DVD instead. That's a fairly common way to distribute an OS X application in a filesystem-agnostic manner. The disk image file may even be smaller than the app bundle. hdiutil

Re: [Pythonmac-SIG] using appscript to add a login item?

2008-12-03 Thread Ned Deily
") > >>> a.login_items() > > Sure enough, a display of items. But how do I create a new one and add > it? a.login_items.end.make(new=k.login_item, with_properties={k.path:"/Applications/TextEdit.app", k.hidden:True}) (Adapted and translated from

Re: [Pythonmac-SIG] Python 2.6 eggs don't quite build as universal

2008-11-25 Thread Ned Deily
spected, it doesn't find the i386 egg and builds from source instead. ("it" == setuptools-0.6c9) > (BTW, if you email me the resulting .egg off-list I'll bung it onto PyPI.) Done. -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] appscript and launching apps from "background-only" Python processes

2008-10-28 Thread Ned Deily
per-user LaunchAgents (triggered by various conditions) and LaunchDaemons. Peter Borg has written a nifty free app, Lingon, to simplify the creating and editing of launchd plists. <http://tuppis.com/lingon/> HTH -- Ned Deily, [EMAIL PROTECTED] _

Re: [Pythonmac-SIG] IDE that doesn't look awful?

2008-10-20 Thread Ned Deily
In article <[EMAIL PROTECTED]>, Christopher Barker <[EMAIL PROTECTED]> wrote: > A lot of folks like TextMate. "Python Usage 101" @ <http://macromates.com/screencasts> -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac

Re: [Pythonmac-SIG] ScriptingBridge vs. AppScript

2008-10-09 Thread Ned Deily
ript reference similar to your SB one: app('iTunes').sources()[0].playlists()[0].tracks() This is using the pre-release appscript 0.19 with the python.org python 2.5.2 on 10.5.5 Intel. I see your track count is 38447. 2**16 > 38447 > 2**15, so could there possibly be some overflow

Re: [Pythonmac-SIG] Appscript Python module / Applescript to python conversion

2008-10-09 Thread Ned Deily
ript manipulation on the loaded page > jscript= u"window.alert('foo');" > > safari.do_JavaScript(jscript) You need a reference to the specific document not to the application: safari.document.do_JavaScript(jscript) -- Ned Deily, [EMAIL PROTECTED]

Re: [Pythonmac-SIG] findertools Error

2008-09-15 Thread Ned Deily
gh the "System Events" agent. >>> from appscript import * >>> app('System Events').sleep() You can browse its terminology using, for example, appscript's built-in help introspection or Apple's Script Editor. > Also, what would be the best way to

Re: [Pythonmac-SIG] Leopard Python library ?missing functions?

2008-08-18 Thread Ned Deily
er not? AFAIK, HTMLCalendar has never been part of the standard Python library. See the Python Package Index here: http://pypi.python.org/pypi/HTMLCalendar/ and install via setuptools: easy_install HTMLCalendar -- Ned Deily, [EMAIL PROTECTED]

Re: [Pythonmac-SIG] converting Mac 'path' to file path in appscript?

2008-06-19 Thread Ned Deily
> the POSIX path. Would it be too much to ask for a one-liner showing > how to do that? Using TextEdit if you don't have Word? One way: mactypes.File.makewithhfspath(u'wolfe:downloads').path <http://appscript.sourceforge

Re: [Pythonmac-SIG] using for reference

2008-06-05 Thread Ned Deily
aries['James'].make(new=k.collection, with_name='James', > for=bn.libraries['James']) Which app/version are you trying to script? What's the rest of the error traceback? And which versions of py-appscript, python, and OS X? -- Ned Deily, [EMAIL PROTECTED

Re: [Pythonmac-SIG] Trouble installing Tkinter with 2.3.5/10.2

2008-06-01 Thread Ned Deily
#x27;d be surprised if 10.2 shows up much any more. What is pretty indisputable, I think, is that Apple has some pretty powerful carrots and sticks out there; users of new hardware aren't going to be running anything but the latest releases so the number of systems running older OS X versi

Re: [Pythonmac-SIG] Locale and number formatting

2008-05-22 Thread Ned Deily
[]} >>> print locale.format("%8.2f", 1234.56, True) 1234.56 >>> locale.setlocale(locale.LC_NUMERIC, 'en_US') 'en_US' >>> print locale.localeconv() {'mon_decimal_point': '', 'int_frac_digits': 127, 'p_sep_

Re: [Pythonmac-SIG] appscript path problem from a newbie

2008-04-14 Thread Ned Deily
set it. Any ideas? > > I am running mac os x 10.3.9, macpython 2.4.4, appscript 0.18.1 FWIW, it works OK here for 10.5.2, 2.5.2, 0.19-alpha. Any chance the xterm shell is running under a different user name? Have you tried the same sequence from Terminal.app rather than xterm? -- Ned D

Re: [Pythonmac-SIG] expat.py broken in Python 2.5

2008-03-30 Thread Ned Deily
work/Versions/2.5/lib/python2.5/site-packages/ > _xmlplus/parsers/pyexpat.so: > mach-o, but wrong architecture Note the path. The module being imported is from site-packages, not the standard library. Looks like you have an old third-party xml package i

Re: [Pythonmac-SIG] ASTranslate and appscript question

2008-03-28 Thread Ned Deily
input_volume=35) If you have ASDictionary.app installed, you can look at the appscript/osax syntax of StandardAdditions easily by its menu item: Dictionary -> Choose Installed Scripting Additions... -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Sending files to the trash

2008-03-28 Thread Ned Deily
sion (which doesn't work): > >app('Finder').move(os.path.abspath(path), to=k.trash) > > Can anyone give me any pointers on how to get the appscript version > working? With a current appscript, try this: app('Finder')

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-03-02 Thread Ned Deily
= app('EyeTV') if etv.playing(): for window in etv.player_windows(): window.close() Hope that helps. -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-28 Thread Ned Deily
so the crontab line could be simplified to: [...] /usr/local/bin/python /DVR/scripts[...] -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] py-appscript problem in crontab

2008-02-28 Thread Ned Deily
is to explicitly reference the python you want (see followup reply). -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Path conversions

2008-02-27 Thread Ned Deily
actypes. So, with the lastest versions of py-appscript, you'll need to change macfile.Alias() to mactypes.Alias(). See the doc files included with the py-appscript source download: <http://appscript.sourceforge.net/>. -- Ned Deily, [EMAIL PROTECTED] ___

Re: [Pythonmac-SIG] [Numpy-discussion] Problem with numpy on Leopard

2007-11-01 Thread Ned Deily
s to multiple users on multiple machines. Controlling all those environments isn't so easy. Deploying apps and components as eggs using setuptools is one way to simplify that problem; building standalone OSX apps with embedded stripped-down Python runtimes and

Re: [Pythonmac-SIG] Problem with numpy on Leopard

2007-11-01 Thread Ned Deily
In article <[EMAIL PROTECTED]>, Christopher Barker <[EMAIL PROTECTED]> wrote: > Ned Deily wrote: > > Ah, but there is a de-facto standard multi-platform Python versioning > > system out there in ever increasing use: setuptools (a.k.a > > easy_install). > O

Re: [Pythonmac-SIG] Problem with numpy on Leopard

2007-11-01 Thread Ned Deily
an with an installer that has to manage library dependencies makes the extra disk space a small price to pay. Or, at least, that's what we're encouraged to believe. I do after seeing problems like the one you're wrestling with now. -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Minimal Python 2.5 and Django install

2007-09-20 Thread Ned Deily
ed, either. And there's no need to test for SQLite. It's just there in 2.5.1. Finally, I'd limit the References to just the first www.python.org mac link. The others and more are referenced from there (and the one link isn't really relevant to current OSX stuff anyway)

Re: [Pythonmac-SIG] Macports and Django install problems

2007-09-18 Thread Ned Deily
zy to try it all again from scratch but I'd suggest forgetting about MacPorts for this. For most users, it should be much simpler to stick to the "official" 2.5.1 version, then getting setuptools installed, and then using easy_install to install Django and additional site pa

Re: [Pythonmac-SIG] Pythonmac 2.4.4 (PPC) and mod_python problems

2007-04-25 Thread Ned Deily
on my PPC with the latest universal build pythonmac 2.5.1 on 10.4.9. One obvious difference apparent from your log file: on my system lxml is linking with the Apple-supplied libxml2, libxslt, and libexslt in /usr/lib/, not whatever you have in /opt/local/lib (presumably libs installed by

Re: [Pythonmac-SIG] StuffIt 10 can corrupt applications packaged with py2app

2007-04-25 Thread Ned Deily
new workflow should show up in the Finder's right click menu under the Automator submenu. -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] Drag and Drop Launch of whatever.py?

2006-07-20 Thread Ned Deily
l..." button below "Use this application to open all documents like this". -- Ned Deily, [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] appscript introspection?

2006-02-10 Thread Ned Deily
re convenient to use Script Editor.app to browse the application's terminology resources. But, as has has noted here before, you can't always trust what any application says is available. There's often a lot of trial and error to discover what works and what doesn't. Se

<    1   2   3