Pyobjc fails to install on Mac OS 10.4

Issue #242 new
T M
created an issue

When I tried to install pyobjc using this command: 'sudo easy_install -U pyobjc', it failed. This is the error message I saw:

Processing pyobjc-framework-WebKit-4.2.2.tar.gz
Writing /tmp/easy_install-Z_bk3w/pyobjc-framework-WebKit-4.2.2/setup.cfg
Running pyobjc-framework-WebKit-4.2.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Z_bk3w/pyobjc-framework-WebKit-4.2.2/egg-dist-tmp-HjDxVj
Traceback (most recent call last):
  File "/usr/local/cellar/python/2.7.12_3/bin/easy_install", line 9, in <module>
    load_entry_point('setuptools==23.1.0', 'console_scripts', 'easy_install')()
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 2291, in main
    **kw
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 409, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 664, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 699, in install_item
    self.process_distribution(spec, dists[0], deps, "Using")
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 741, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 826, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1092, in best_match
    return self.obtain(req, installer)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1104, in obtain
    return installer(requirement)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 664, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 694, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 875, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1114, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1100, in run_setup
    run_setup(setup_script, args)
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 246, in run_setup
    raise
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 243, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 273, in run
    return func()
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 242, in runner
    _execfile(setup_script, ns)
  File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 46, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-Z_bk3w/pyobjc-framework-WebKit-4.2.2/setup.py", line 27, in <module>
  File "/tmp/easy_install-Z_bk3w/pyobjc-framework-WebKit-4.2.2/pyobjc_setup.py", line 404, in Extension
ValueError: invalid literal for int() with base 10: 'ent versions: DevToolsCore-798'

System information: iMac G5 Mac OS 10.4.11 Python 2.7.12

Comments (4)

  1. Ronald Oussoren repo owner

    I no longer have access to systems running 10.4, the earliest version of macOS I can run is 10.6 in a VM.

    This makes it hard for me to fix this issue for you.

    Why are you still using 10.4?

    This years major release of PyObjC is likely the last one that will even in theory run on that version. I'll almost certainly remove support for PPC hardware and older versions of macOS sometime next year.

  2. Ronald Oussoren repo owner

    If you want to debug this yourself:

    1. Create a checkout of the repository using mecerial
    2. Run "python setup.py install" in the subdirectory pyobjc-core
    3. Run the same command in "pyobjc-framework-Cocoa", this will likely fail with the error you were getting.

    Then find a way to avoid this error, probably with a check that's gated on the OSX release, and create a pull request to get this change merged.

    I cannot promise that I'll actually merge, as I mentioned in my previous message I'll almost certainly remove support for PPC code sometime next year.

  3. T M reporter

    I am still using Mac OS 10.4 because I love it. It is one of Apple's best versions of Mac OS X.

    If you don't want to fix any problems with PyObjc, could you point me to an installer file that is known to work on Mac OS 10.4? I don't need the newest version of PyObjc. The only installers I found said they only support Apple's Python 2.5. I had installed Python 2.7 so I couldn't use it.

    I know a way you could run Mac OS 10.4 PPC on your system. There is an emulator called QEMU that can run this version of Mac OS X.

    Directions: https://wiki.qemu.org/Documentation/Platforms/PowerPC

    QEMU Download: http://www.mediafire.com/file/yuh4gb7j28osnr3/MacQEMU_2.0_beta_3.zip/file

    Mac OS X download: https://www.macintoshrepository.org/45-mac-os-x-for-ppc-osx-10-0-10-1-10-2-10-3-10-4-10-5-

    Please let me know if there is anything else I could do to help. Thanks.

  4. Log in to comment