Pyobjc fails to install on Mac OS 10.4

Issue #242 wontfix
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/ -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/", line 2291, in main
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 151, in setup
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 953, in run_commands
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 972, in run_command
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 409, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 664, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 699, in install_item
    self.process_distribution(spec, dists[0], deps, "Using")
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 741, in process_distribution
    [requirement], self.local_index, self.easy_install
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/", line 826, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/", line 1092, in best_match
    return self.obtain(req, installer)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/", line 1104, in obtain
    return installer(requirement)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 664, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 694, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 875, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 1114, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/local/lib/python2.7/site-packages/setuptools/command/", line 1100, in run_setup
    run_setup(setup_script, args)
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 246, in run_setup
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 195, in setup_context
  File "/usr/local/Cellar/python/2.7.12_3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 166, in save_modules
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 154, in save_modules
    yield saved
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 195, in setup_context
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 243, in run_setup
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 273, in run
    return func()
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 242, in runner
    _execfile(setup_script, ns)
  File "/usr/local/lib/python2.7/site-packages/setuptools/", line 46, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-Z_bk3w/pyobjc-framework-WebKit-4.2.2/", line 27, in <module>
  File "/tmp/easy_install-Z_bk3w/pyobjc-framework-WebKit-4.2.2/", 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 (6)

  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 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.


    QEMU Download:

    Mac OS X download:

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

  4. Ronald Oussoren repo owner

    macOS 10.4 is too old to spent my development time on, I'm therefore not going to fix this.

    I don't know which version of PyOBjC is the latest that still can be build on on 10.4, I'm afraid you'll have to test this yourself by trying to install the latest subrelease of every major version until you find one that works for you.

  5. Log in to comment