[Pyobjc-dev] Installing for Python 3.1
Brought to you by:
ronaldoussoren
From: Colin M. <col...@ta...> - 2010-10-26 17:32:22
|
Hello! Could some kind person point me at instructions for installing PyObjC (any version, including SVN bleeding-edge) for use with Python 3.1 please? I successfully installed PyObjC 2.3 for Python 2.6 but when I tried to repeat it for 3.1 it failed: 1. Downloaded pyobjc_core-2.3-py3.1-macosx-10.6-fat.egg from the Python Package Index and installed it with easy_install-3.1 ... OK 2. Tried to install the frameworks with easy_install-3.1 pyobjc==2.3 ... installed several frameworks OK but died on SystemConfiguration with the longest traceback I've ever seen, culminating in "Exception: Oh no! I don't understand pattern WildcardPattern(None, (( ..." from a lib2to3 module. The full traceback is appended. Thanks for any pointers you can give. -- Colin ----------------------------------------------------------------------------------- Searching for pyobjc-framework-SystemConfiguration==2.3 Reading http://pypi.python.org/simple/pyobjc-framework-SystemConfiguration/ Best match: pyobjc-framework-SystemConfiguration 2.3 Downloading http://pypi.python.org/packages/source/p/pyobjc-framework-SystemConfiguration/pyobjc-framework-SystemConfiguration-2.3.tar.gz#md5=4c38458240a9f5ead59a041ee496e89b Processing pyobjc-framework-SystemConfiguration-2.3.tar.gz Running pyobjc-framework-SystemConfiguration-2.3/setup.py -q bdist_egg --dist-dir /var/folders/-L/-LE6tUAPFWOeVy4nGDUywE+++TI/-Tmp-/easy_install-F8iQAW/pyobjc-framework-SystemConfiguration-2.3/egg-dist-tmp-qoAycq Traceback (most recent call last): File "/Users/colin/bin/easy_install-3.1", line 9, in <module> load_entry_point('distribute==0.6.14', 'console_scripts', 'easy_install-3.1')() File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 1855, in main with_ei_usage(lambda: File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 1836, in with_ei_usage return f() File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 1859, in <lambda> distclass=DistributionWithoutHelpCommands, **kw File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/core.py", line 149, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", line 919, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", line 938, in run_command cmd_obj.run() File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 342, in run self.easy_install(spec, not self.no_deps) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 582, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 614, in install_item self.process_distribution(spec, dist, deps) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 666, in process_distribution [requirement], self.local_index, self.easy_install File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/pkg_resources.py", line 544, in resolve dist = best[req.key] = env.best_match(req, self, installer) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/pkg_resources.py", line 786, in best_match return self.obtain(req, installer) # try and download/install File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/pkg_resources.py", line 798, in obtain return installer(requirement) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 582, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 612, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 802, in install_eggs return self.build_and_install(setup_script, setup_base) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 1079, in build_and_install self.run_setup(setup_script, setup_base, args) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/easy_install.py", line 1068, in run_setup run_setup(setup_script, args) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/sandbox.py", line 30, in run_setup lambda: exec(compile(open( File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/sandbox.py", line 71, in run return func() File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/sandbox.py", line 33, in <lambda> {'__file__':setup_script, '__name__':'__main__'}) File "setup.py", line 22, in <module> File "/var/folders/-L/-LE6tUAPFWOeVy4nGDUywE+++TI/-Tmp-/easy_install-F8iQAW/pyobjc-framework-SystemConfiguration-2.3/pyobjc_setup.py", line 271, in setup File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/core.py", line 149, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", line 919, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", line 938, in run_command cmd_obj.run() File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/bdist_egg.py", line 179, in run cmd = self.call_command('install_lib', warn_dir=0) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/bdist_egg.py", line 166, in call_command self.run_command(cmdname) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/cmd.py", line 315, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", line 938, in run_command cmd_obj.run() File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/install_lib.py", line 20, in run self.build() File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/command/install_lib.py", line 106, in build self.run_command('build_py') File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/cmd.py", line 315, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py", line 938, in run_command cmd_obj.run() File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/build_py.py", line 81, in run self.run_2to3(self.__updated_files, True) File "/Users/colin/Library/Python/3.1/site-packages/distribute-0.6.14-py3.1.egg/setuptools/command/build_py.py", line 40, in run_2to3 r = DistutilsRefactoringTool(self.fixer_names) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/lib2to3/refactor.py", line 202, in __init__ self.pre_order_heads = _get_headnode_dict(self.pre_order) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/lib2to3/refactor.py", line 81, in _get_headnode_dict heads = _get_head_types(fixer.pattern) File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/lib2to3/refactor.py", line 70, in _get_head_types raise Exception("Oh no! I don't understand pattern %s" %(pat)) Exception: Oh no! I don't understand pattern WildcardPattern(None, ((NodePattern('power', [WildcardPattern(None, ((WildcardPattern(None, ((NodePattern(),),), 'base'), NodePattern('trailer', [WildcardPattern(None, ((LeafPattern(23, '.'), LeafPattern(1, 'next', 'attr')),))]), NodePattern('trailer', [WildcardPattern(None, ((LeafPattern(7, '('), LeafPattern(8, ')')),))])),))]),), (NodePattern('power', [WildcardPattern(None, ((WildcardPattern(None, ((NodePattern(),),), 'head'), NodePattern('trailer', [WildcardPattern(None, ((LeafPattern(23, '.'), LeafPattern(1, 'next', 'attr')),))]), NegatedPattern(None, NodePattern('trailer', [WildcardPattern(None, ((LeafPattern(7, '('), LeafPattern(8, ')')),))]))),))]),), (NodePattern('classdef', [WildcardPattern(None, ((LeafPattern(1, 'class'), WildcardPattern(None, ((NodePattern(),),)), LeafPattern(11, ':'), NodePattern('suite', [WildcardPattern(None, ((WildcardPattern(None, ((NodePattern(),),)), NodePattern('funcdef', [WildcardPattern(None, ((LeafPattern(1, 'def'), LeafPattern(1, 'next', 'name'), NodePattern('parameters', [WildcardPattern(None, ((LeafPattern(7, '('), LeafPattern(1), LeafPattern(8, ')')),))]), WildcardPattern(None, ((NodePattern(),),))),))]), WildcardPattern(None, ((NodePattern(),),))),))])),))]),), (NodePattern('global_stmt', [WildcardPattern(None, ((LeafPattern(1, 'global'), WildcardPattern(None, ((NodePattern(),),)), LeafPattern(1, 'next'), WildcardPattern(None, ((NodePattern(),),))),))], 'global'),))) $ |