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
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
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
>
>>> 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
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
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
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
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
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
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
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
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
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
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.
--
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
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
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
'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
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
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
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
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
_
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
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
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
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
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
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
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
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,
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>
> &
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
___
; 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
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
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
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
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
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.
, 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))
>>
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
__
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
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
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
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,
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
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.
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
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
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
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
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
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
")
> >>> 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
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
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]
_
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
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
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]
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
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]
> 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
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
#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
[]}
>>> 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_
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
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
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
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')
= 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
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
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
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]
___
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
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
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
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)
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
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
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
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 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
201 - 281 of 281 matches
Mail list logo