f?
Dunno about "recommended" but I just fiddled around until I got
PYTHONPATH etc set up correctly -- I think I may have created some fake
apps (using py2app) that dumped the env for debugging purposes. This was
a couple of years ago in a previous job, so I don't h
ine.
>
> I have also tried komodo edit but really not getting comfortable with
> it.
vim is a great cross-platform text editor -- it can be used as an IDE,
though it's really not the best tool if you REALLY want an IDE. Another
popular option is PyEclipse.
--
Aahz (a...@pythoncraft.co
On Tue, Jan 22, 2013, Ronald Oussoren wrote:
>
> I've just pushed PyObjC 2.5.1 to PyPI. This is primarily a bugfix
> release, the list of changes since 2.4 (the last version on PyPI) is
> included below.
Huzzah! Wow, that's a lot of stuff!
--
Aahz
On Fri, Nov 18, 2011, learner404 wrote:
>
> OSX Lion, native Apple Python and PyObjC (64 bits).
Look at the archives for the pyobjc list:
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
If you're still having problems, you should ask there.
--
Aahz (a...@pyth
lem is that py2app can't
correctly set the Python path. You'll need to do some digging in the
bootstrap loader.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you don't know what your program is supposed to do, you'd better no
s/Resources/lib/python2.6/lib-dynload/PySide/.
Responding late, notice the oddball path. Somehow your lib-dynload/
isn't getting looked at. You might try running the app from the command
line (using the packaged Python).
--
Aahz (a...@pythoncraft.com) <*> http://www.
nc_list.append(item.act_on)
(Notice who I change the names to match PEP8.)
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you don't know what your program is supposed to do, you'd better not
start writing it." --Dijkstra
__
e only way to get a multi-platform build?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you don't know what your program is supposed to do, you'd better not
start writing it." --Dijkstra
an older XCode on 10.7. I doubt that would work properly,
> if at all.
> - Stay with 10.6 or at least keep it around for building apps to
> distribute.
The latter is what we're doing.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
&qu
icial 10.7 release and should
> have some preliminary results posted by tomorrow.
I'm not sure which 2.6.4 we're using, but it works with Lion.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you don't know w
ast MacOS
> X 10.5 and later.
>
> I assume there's no problems, but it would be very helpful to know what
> to watch out for if there are.
Works for us, but Lion always runs installs as root so you need to
update your flights to use "su -u $USER" for anything y
On Wed, Jul 20, 2011, Dan Ross wrote:
>
> Anyone have reports of Pythons on Lion?
Are you asking about what's installed, what works, something else?
My company is getting ready for acceptance testing on Lion using 2.6.4.
--
Aahz (a...@pythoncraft.com) <*
On Fri, Jul 15, 2011, Dan Ross wrote:
>
> I'm working on a tkinter gui for an app I made.
>
> I can't seem to get a progressbar to start and stop while a function
> runs.
http://pythoncraft.com/OSCON2001/FibThreaded.py
--
Aahz (a...@pythoncraft.com)
year.
>
> So if I wanted to pursue a fix for this one, how might I begin?
It's not clear what searching you've on just the Unix side. Does this
problem show up outside the Python context?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
pyc", line 13, in
> ImportError: No module named listenerimpl
Do you have this problem with a simple test app? Are any of your
imports inside ``if`` blocks or function calls?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"At Resolver we
e available.
You need to download from python.org; using the built-in Python causes
py2app to behave differently.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Programming language design is not a rational science. Most reasoning
about it is at bes
le name "supperdoodle".
> The resulting superdoodle.app is around 48.5 MB. Am I missing something in
> setup.py or this is normal size for wxpython based applications?
wxpython by itself probably accounts for about 10MB. You should be able
to compress that down to around 15MB i
pp runs fine when invoked directly from the Terminal.
Short answer (someone may come along with a longer one): use the
python.org installer. If you use Python 2.7, pick the 32-bit version
unless you're absolutely certain ALL your users are on 10.6.
--
Aahz (a...@pythoncraft.c
hon.
Doesn't matter whether it's Mac, Windows (yes, some Windows machines
ship with a system Python for internal utilities), or Linux. If you
don't like the system Python, your Python should be installed somewhere
else, with your PATH (and/or aliases) adjusted to grab it.
--
Aahz (a
Mac OS X 10.3.9 through current 10.6.x ; and a new
> 64-bit/32-bit installer for OS X 10.6.x systems.
Thanks for your hard work!
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"The volume of a pizza of thickness 'a
ad of going from bytes to string.
Python 3.1.2 (r312:79147, Mar 29 2010, 18:34:41)
>>> ''.decode
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'str' object has no attribute 'decode'
>>> b''.decode
Any particular r
n/name".
>
> Should have included the full path for the argument as well. Thanks!
Nope. If you're doing that, just use os.path.exists() or isfile().
Faster and safer.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Think of it
hat GUI stuff tends to either
require the python.org build or a careful manual build (making sure you
get all the framework stuff correct).
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do t
n2.6 on darwin ports along with the needed libraries.
You are likely better off using the python.org build.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
unti
ny uses cherrypy/cheetah to similar
effect.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
t removed all Quartz usage or that you're
somehow activating some other GUI mechanism.
You might also look at what the multiprocessing module does, we use that
extensively with our GUI app and it works fine.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.c
> File "", line 8, in ?
> File "SamAgenda.py", line 221
>StartLines = (R_LINE_X + (C * LINE_X_OFFSET) for C in range(COLUMNS))
> ^
> SyntaxError: invalid syntax
Based on your later message, you presumably
has anyone else been able to use this disk image??
What's the exact URL? rc2 was just released and I don't see that image
anymore. (And the rc2 Mac image isn't up yet.)
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you don't
rly in terms of being able to use
PyObjC and/or py2app), stick with 2.x for now. Otherwise, it doesn't
matter much which exact version of 3.x you use.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
f u cn rd ths, u cn g
you had
significant difficulty.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
f u cn rd ths, u cn gt a gd jb n nx prgrmmng.
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mail
s,
> so I'd greatly appreciate it if someone would help out, and it would
> help a lot of people as well.
Have you looked in the console logs?
(Your cause is important to me, but I have nearly zero time other than
sporadic mailing list activity.)
--
Aahz (a...@pythoncraft.com)
First: please do not top-post -- you'll notice that none of the regulars
do that on this list.
On Sun, May 02, 2010, Mike wrote:
> - Original Message - From: "Aahz"
>> On Sun, Apr 25, 2010, Mike wrote:
>>>
>>> ImportError:
>>> dlopen(/L
'd already managed to build from
source myself.)
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
___
Pythonma
be a
huge help.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.o
hat's the line of code generating this error?
> Also, will this application build with py2app since it uses this package?
Theoretically, yes. I'm a bit confused, because build/ implies that
you're already using py2app or some other distribution mechanism.
--
Aahz (a...@pythoncraft.c
riable 'k' referenced before assignment""
You need to provide the code. But this isn't really Mac-specific; you
might get better advice on comp.lang.python.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"It is easier to opti
" command to "/usr/local/bin/convert" in the app
> but then when convert calls Ghostscript (gs) it can't find IT in /bin/sh.
>
> Suggestions?
PIL?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Many customs in this life
e that I didn't record exactly.
Before someone asks how I can use both PyObjC 1.4 and PyObjC 2.2, I'm
playing games with ~/Library/Python/2.6 being a symlink that gets swapped
during the build process. (Obviously, I end up with two different apps
built.)
--
Aahz (a...@pyt
ready then for training / testing?
You will need to expand your jargon if you want anyone unfamiliar with
this specific operation to provide assistance. (I.e. I have no clue what
you're talking about.)
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
&
On Tue, Feb 16, 2010, Xiao Yu wrote:
>
> Just tried again. Python from python.org and py2app, all built from
> source. Python is built with i386 and x86_64 and as a framework.
No, I meant using the python.org DMG, just to make sure you've got a
properly built Pytho
bit program?
Why not use python.org's 2.6.4?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"At Resolver we've found it useful to short-circuit any doubt and just
refer to comments in code as 'lies'. :-)"
_
: 'Target' object has no attribute 'appdir'
This looks like setup.py for GNS3 is expecting to use a later setuptools
than what's in py2app 0.4.3 or is depending on a setuptools extension
(such as py2exe creates). Try installing a later setuptools, maybe.
--
Aahz (
On Tue, Feb 09, 2010, Ronald Oussoren wrote:
> On 7 Feb, 2010, at 15:30, Aahz wrote:
>> On Sun, Feb 07, 2010, Ronald Oussoren wrote:
>>> On 4 Feb, 2010, at 18:59, Aahz wrote:
>>>>
>>>> I've alread
On Sun, Feb 07, 2010, Ronald Oussoren wrote:
> On 4 Feb, 2010, at 18:59, Aahz wrote:
>> On Thu, Feb 04, 2010, Christopher Barker wrote:
>>>
>>> Peter Hanson, on the wxPython list, seems to have identified a bug in
>>> the gestalt module, that may be a Ca
odule does the same calls).
>
> It seems to be independent of wxPython, other than that I'm using it to
> show the symptom.
> """
That's different from my issue, which only shows up on 10.6/Show Leopard.
--
Aahz (a...@pyt
e same thread as
> wxPython, there is no failure.
I've already complained that mac_ver() causes a crash with
USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER
but I'm pretty sure we're not using wx on Mac, just Windows (we're using
AppHelper).
--
Aahz (a...@pyt
the info you need to unsub.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
import antigravity
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
is is clearly a threading issue deep in the C
threading code, and there's nothing much you can protect against (it's
the functional equivalent of a segfault).
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
import antigravity
__
On Tue, Jan 19, 2010, Ben Jack wrote:
>
> Well! As per usual, after hours of frustration as soon as I send off an
> email I discover the answer for myself.
Put a teddybear on your desk and explain the problem to it. ;-)
--
Aahz (a...@pythoncraft.com) <*&g
Delegate starts another process for the main
code that then calls mac_ver() to log the current OS version.) I'm using
os.uname() instead for now.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional t
h for the latitude
> and longitude of the point at the center of its screen, or using the
> finder to pop-up a dialog window to get input from the user:
>
> http://juanreyero.com/article/python/os-x-python.html
>
> Cheers,
>
> Juan
> http://juanreyero.com
>
--
ld you describe your experience with those two issues (or point at
something you've posted elsewhere)? I'm probably going to have to deal
with related issues soon, so getting an idea of what problems I'm likely
to run into would be helpful.
--
Aahz (a...@pythoncr
Howdy,
If you tried getting a PyObjC app running on 10.6 a couple of months ago
and gave up, you should try again now. I just ran software update and my
app works fine now, without any changes (still building on 10.5).
--
Aahz (a...@pythoncraft.com) <*>
ssary environment on each user machine to be able to run this
> python script.
http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"You could make Eskimos emigrate to the Sahara by vigorously argu
orm support, but I still want to keep up with changes in
Python etc.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Normal is what cuts off your sixth finger and your tail..." --Siobhan
___
Pythonmac-S
ng 10.4, 10.5, and 10.6? Does
including PPC make any difference?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Normal is what cuts off your sixth finger and your tail..." --Siobhan
___
Pythonmac-
On Thu, Oct 01, 2009, Christopher Barker wrote:
>
> Twisted is work a look, too, though I haven't used it.
Twisted is definitely work to look at. ;-)
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Normal is what cuts off your sixt
gt; could create two emtries :
Why not just write a single wrapper script that creates the virtualenv
and then runs the main program? Python rocks!
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
gfarber: Thank God, or the belief system of your choice.
pddb: D
eks ago,
but it was definitely the case that setuptools was crashing due to a
missing pyconfig.h, and the Python 2.6 installation I was using didn't
have one.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
gfarber: Thank God, or the belief system of y
On Wed, Sep 23, 2009, Ned Deily wrote:
> In article <20090923163646.ga26...@panix.com>,
> Aahz wrote:
>> On Wed, Sep 23, 2009, Christopher Barker wrote:
>> > Aahz wrote:
>> >> On Wed, Sep 23, 2009, mathew oakes wrote:
>> >
>> >>>&
On Wed, Sep 23, 2009, Christopher Barker wrote:
> Aahz wrote:
>> On Wed, Sep 23, 2009, mathew oakes wrote:
>
>>>> DistutilsPlatformError: invalid Python installation: unable to
>>>> open /Full/Path/To/App.app/Contents/Resources/include/python2.6/pyconfig.h
>
ython installation: unable to
> > open /Full/Path/To/App.app/Contents/Resources/include/python2.6/pyconfig.h
> > (No such file or directory)
>
> but python in in the bundle at .../Resources/lib/ and it doesn't have a
> pyconfig header
Ayup, you need to cop
d since the entire Python interpreter is running within the app
> it might take that much. So is it safe to assume that all PyObjC apps
> need a minimum of 30+M to work?
Dunno whether that's a safe assumption, but that certainly matches my
experience.
--
Aahz (a...@pythonc
On Thu, Sep 17, 2009, Bill Janssen wrote:
> Ronald Oussoren wrote:
>>
>> If you install appscript as an unzipped egg the problem should go away.
>
> How does one do that?
You can unzip manually as with any other .ZIP file, or you can do
easy_install with -Z.
--
Aahz
go away.
My auto-installer for the packages needed by my company's product now
includes "-Z" for everything. It also unzips setuptools if needed.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"It's 106 miles to Chicago. We h
e trying to do, but it almost certainly is
possible. Keep in mind that running programs on a Mac is more similar
(overall) to running programs on Unix than Windows. However, an
"application" on a Mac is an entirely different beast, and if you want
multiple applications you probably nee
On Wed, Aug 19, 2009, Oliver Goodman wrote:
>
> I'm having problems getting py2app to work for me.
>
> The program (minimal test case):
>
> # test.py
> from Crypto.Cipher import DES3
Is Crypto in a zipped .egg? If yes, you need to unzip it.
--
pport this and have
> attached a patch.
You probably want to upload the patch:
http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#online-resources
http://trac.pythonmac.org/py2app/
However, the latter URL doesn't seem to be working
--
Aahz (a...@pythoncraft.com) <*
experience with py2app so far is strictly with non-system Python,
maybe that would work better for you? Especially given that 2.6.2
includes multiprocessing.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"...string iteration isn't about treati
an on Tiger yet.
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"...string iteration isn't about treating strings as sequences of strings,
it's about treating strings as sequences of characters. The fact that
characters are also strings
On Mon, Aug 03, 2009, Henning Hraban Ramm wrote:
> Am 2009-08-03 um 18:23 schrieb Aahz:
>>
>> I'm using py2app 0.3.6 with PyObjC 2.2b2, and py2app is refusing to
>> copy
>> pyobjc_framework_Cocoa-2.2b2-py2.6-macosx-10.3-fat.egg/PyObjCTools/NibClassBuilder
>&
7;ve tried setting both 'packages' and 'includes' in setup.py, but it's
not working.
Suggestions?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"...string iteration isn't about treating strings as sequences of strings,
it&
I have an app built on PyObjC 1.4 that uses XcodeSupport in its setup.py;
now I'm trying to build on 2.2b2 and there is no XcodeSupport AFAICT.
There's nothing in pyobjc-core/NEWS.txt. Am I missing something?
--
Aahz (a...@pythoncraft.com) <*> http://www.pythonc
73 matches
Mail list logo