[Pythonmac-SIG] Leopard easy_install chokes on appscript egg
has
hengist.podd at virgin.net
Fri Dec 21 22:37:22 CET 2007
Hi all,
Just ran into the following problem when trying to install appscript
0.18.0 into Leopard's default Python installation via easy_install
(setuptools 0.6c3):
has$ /usr/bin/easy_install appscript
Searching for appscript
Reading http://pypi.python.org/simple/appscript/
Reading http://appscript.sourceforge.net
Reading http://freespace.virgin.net/hamish.sanderson/appscript.html
Best match: appscript 0.18.0
Downloading http://pypi.python.org/packages/source/a/appscript/appscript-0.18.0.tar.gz#md5
=8c013f0489349f145089c71d6d747859
Processing appscript-0.18.0.tar.gz
Running appscript-0.18.0/setup.py -q bdist_egg --dist-dir /var/folders/
p+/p+pBAQxKE-S81g-RmJ1K8U+++TI/-Tmp-/easy_install-7MwieU/
appscript-0.18.0/egg-dist-tmp-deTIQh
Traceback (most recent call last):
File "/usr/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c7', 'console_scripts',
'easy_install')()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 1670, in
main
with_ei_usage(lambda:
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 1659, in
with_ei_usage
return f()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 1674, in
<lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 446, in
easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 471, in
install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 655, in
install_eggs
return self.build_and_install(setup_script, setup_base)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 930, in
build_and_install
self.run_setup(setup_script, setup_base, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/command/easy_install.py", line 919, in
run_setup
run_setup(setup_script, args)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/sandbox.py", line 27, in run_setup
lambda: execfile(
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/sandbox.py", line 63, in run
return func()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/setuptools/sandbox.py", line 29, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 10, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/py2app/util.py", line 9, in <module>
import macholib.util
File "/System/Library/Frameworks/Python.framework/Versions/2.5/
Extras/lib/python/macholib/util.py", line 56, in <module>
class writablefile(file):
TypeError: Error when calling the metaclass bases
first argument must be callable
Two things:
1. Any ideas on why it's selecting the .tar.gz version rather than
the .egg? (Note: the egg was built using my own Python 2.5
installation, rather than the Apple one.)
2. I get the above traceback when easy_install tries to use the source-
based appscript. This occurs with Leopard's own Python 2.5 and the
Python 2.4 installation I keep around for testing purposes. Any
guesses on what's going wrong? I'm not that familiar with setuptools
and its error reporting leaves something to be desired, so I don't
even know if the problem lies with it or appscript's setup.py script.
Thanks,
has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
More information about the Pythonmac-SIG
mailing list