Having a problem to install PyObjC to Snow Leopard

View: New views
2 Messages — Rating Filter:   Alert me  

Having a problem to install PyObjC to Snow Leopard

by Takahiro IWAMOTO :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I'm trying to install PyObjC by "sudo port -d install py26-pyobjc2"

I got an error message related with KeyError '_objc'.
The error message is

>>
DEBUG: Backtrace: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-pyobjc2/work/pyobjc-core"
&& /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
setup.py --no-user-cfg build " returned error 1
Command output: running build
running build_py
running build_ext
Traceback (most recent call last):
  File "setup.py", line 324, in <module>
    '': ['*.bridgesupport'],
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py",
line 152, in setup
    dist.run_commands()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 987, in run_commands
    self.run_command(cmd)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 1007, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build.py",
line 134, in run
    self.run_command(cmd_name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py",
line 333, in run_command
    self.distribution.run_command(command)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py",
line 1007, in run_command
    cmd_obj.run()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py",
line 46, in run
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
line 340, in run
    self.build_extensions()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
line 449, in build_extensions
    self.build_extension(ext)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py",
line 175, in build_extension
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
line 460, in build_extension
    ext_path = self.get_ext_fullpath(ext.name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/command/build_ext.py",
line 633, in get_ext_fullpath
    filename = self.get_ext_filename(modpath[-1])
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/build_ext.py",
line 85, in get_ext_filename
KeyError: '_objc'

    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for py26-pyobjc2):
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
Error: Status 1 encountered during processing.
<<

Would you give some hit for me please?

TIA,

T. Iwamoto
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: Having a problem to install PyObjC to Snow Leopard

by Ned Deily :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In article
<3f39e1330910080429y16802094pef7505d7e7456a7c@...>,
 Takahiro IWAMOTO <cibicco@...> wrote:

> I'm trying to install PyObjC by "sudo port -d install py26-pyobjc2"
>
> I got an error message related with KeyError '_objc'.

The problem was due to a Distutils incompatibility released in Python
2.6.3.  It will be fixed in 2.6.4 which will be released in two weeks
but the MacPorts maintainers have already patched setuptools to get
around it.  Just rerun:

   sudo port sync

and try the install again.  This time it should also install a new
version of py26-setuptools and the install of py26-pyobjc2 should now
work.

--
 Ned Deily,
 nad@...

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@...
http://mail.python.org/mailman/listinfo/pythonmac-sig