At 12:32 AM 4/12/2006 -0700, Matthew Bogosian wrote:
AssertionError: distutils has already been patched by <class py2app.install.Distribution at 0x589390>
I'm now at a total loss. Is there any advice anyone can give me on now to get this to work (besides "don't use (py2app|ClientForm)")? Any help is greatly appreciated.
Whenever setuptools is used with a tool (such as py2exe or py2app), setuptools must be imported first.
In your specific situation, you should first install the latest version of setuptools, then replace your existing setup command with:
python -c "import setuptools; execfile('setup.py')" stuff
where "stuff" is whatever you would have put after "python setup.py" on the command line. This is the easiest way to force setuptools to be imported first, before anything else has a chance to attach itself to the distutils.
This still doesn't guarantee success, since it's possible for other programs to monkeypatch the distutils in ways that break setuptools. But it should at least move you forward another step.