Unable to install on macOS Catalina 10.15

Issue #280 resolved
Tom Carroll created an issue

I tried installing via Pip as well as cloning the repository as described in the ReadMe.rst.

My environment is macOS Catalina 10.15, Python 3.7.4 via pyEnv.

Here’s what happens with Pip:

% pip install Quartz

Collecting Quartz
Using cached https://files.pythonhosted.org/packages/31/f2/4fac785ec7690dd2b9f87506aa52e702ed5d98dedc06a2e940c4a076136a/quartz-0.0.1.dev0.tar.gz
ERROR: Command errored out with exit status 1:
command: /Users/carroll/.pyenv/versions/3.7.4/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xv/g1mx036n1wj12gxhgm672wlm0000gn/T/pip-install-6ekt3gx6/Quartz/setup.py'"'"'; file='"'"'/private/var/folders/xv/g1mx036n1wj12gxhgm672wlm0000gn/T/pip-install-6ekt3gx6/Quartz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/xv/g1mx036n1wj12gxhgm672wlm0000gn/T/pip-install-6ekt3gx6/Quartz/pip-egg-info
cwd: /private/var/folders/xv/g1mx036n1wj12gxhgm672wlm0000gn/T/pip-install-6ekt3gx6/Quartz/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xv/g1mx036n1wj12gxhgm672wlm0000gn/T/pip-install-6ekt3gx6/Quartz/setup.py", line 35, in <module>
install_requires=read_dependencies("requirements.txt"),
File "/private/var/folders/xv/g1mx036n1wj12gxhgm672wlm0000gn/T/pip-install-6ekt3gx6/Quartz/setup.py", line 7, in read_dependencies
with open(req_file) as req:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

This is what happens when trying to build from a clone:

% python pyobjc/install.py

pyobjc/install.py:100: DeprecationWarning: The readPlist function is deprecated, use load() instead pl = plistlib.readPlist('/System/Library/CoreServices/SystemVersion.plist')
Skipping 'pyobjc-framework-ServerNotification' because it is not supported on the current platform
Skipping 'pyobjc-framework-InterfaceBuilderKit' because it is not supported on the current platform
Skipping 'pyobjc-framework-XgridFoundation' because it is not supported on the current platform
Skipping 'pyobjc-framework-Message' because it is not supported on the current platform
Cleaning 'pyobjc-core' using '/Users/carroll/.pyenv/versions/3.7.4/bin/python'
running clean
Installing 'pyobjc-core' using '/Users/carroll/.pyenv/versions/3.7.4/bin/python'
running install
running bdist_egg
running egg_info
writing include/pyobjc-compat.h to Lib/pyobjc_core.egg-info/include/pyobjc-compat.h
writing include/pyobjc-api.h to Lib/pyobjc_core.egg-info/include/pyobjc-api.h
writing Lib/pyobjc_core.egg-info/PKG-INFO
writing dependency_links to Lib/pyobjc_core.egg-info/dependency_links.txt
writing namespace_packages to Lib/pyobjc_core.egg-info/namespace_packages.txt
writing top-level names to Lib/pyobjc_core.egg-info/top_level.txt
reading manifest file 'Lib/pyobjc_core.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no directories found matching 'Doc'
warning: no directories found matching 'Scripts'
warning: no directories found matching 'setup-lib'
warning: no directories found matching 'source-deps'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '.pyo' found anywhere in distribution
warning: no previously-included files matching '.so' found anywhere in distribution
warning: no previously-included files matching 'pycache' found anywhere in distribution
no previously-included directories found matching 'Lib/objc/.dSYM'
writing manifest file 'Lib/pyobjc_core.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.15-x86_64/egg
running install_lib
running build_py
Overriding build_packages to copy PyObjCTest
creating build
creating build/lib.macosx-10.15-x86_64-3.7
creating build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_bridges.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_protocols.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_sequence.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_nsset.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_pycoder.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_lazyimport.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_nsstring.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_framework.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_nsdecimal.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_properties.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/init.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_callable_docstr.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_context.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_locking.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_descriptors.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_bridgesupport.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_nsdictionary.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_pythonify.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_nsarray.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_nsobject.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_category.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_compat.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_mapping.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_dyld.py -> build/lib.macosx-10.15-x86_64-3.7/objc
copying Lib/objc/_convenience_nsdata.py -> build/lib.macosx-10.15-x86_64-3.7/objc
creating build/lib.macosx-10.15-x86_64-3.7/PyObjCTools
copying Lib/PyObjCTools/Signals.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTools
copying Lib/PyObjCTools/TestSupport.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTools
copying Lib/PyObjCTools/init.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTools
copying Lib/PyObjCTools/KeyValueCoding.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTools
copying Lib/PyObjCTools/MachSignals.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTools
creating build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_voidpointer.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_specialtypecodes_unichar.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test2_filepointer.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_fsref.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_methodedits.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_bundleFunctions.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_specialtypecodes_struct.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_dict_proxy.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_callbacks.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_unicode.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_weakref.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_testsupport.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_protocol.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_methods.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_objcpointer.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_inspect_signatures.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_archiving_interop.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_dyld.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_copying.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_nsdate_proxy.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_metadata_inheritance.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_assocations.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_classandinst.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_archiving_secure_interop.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_splitsig.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_pickling_objc.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_pickle.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_clinmeth.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test3_filepointer.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_bridges.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_convenience.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_metadata_function.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_version_support.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_bundleVariables.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test3_dict_interface.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_list_proxy.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_blocks.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_array_interface.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_allocatebuffer.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_deprecations.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_synthesize.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_propertiesforclass.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_specialtypecodes_charbyte.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_varargs.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_usekvo.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_metadata.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_exceptions.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_hidden_selector.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/init.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_bridgesupport.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_keyvalue.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_specialtypecodes_nsbool.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_subclass.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test2_dict_interface.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_nsdecimal.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_pointer_compat.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_set_interface.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_NULL.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_protocolNamed.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_signatures.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_classhooks.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_conversion.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_python_method.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_arrays.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_metadata_py2py.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_set_property.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_methods2.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_methres.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/fnd.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_initialized.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_method_prototypes.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_specialtypecodes_charint.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/loader.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_keyvaluecoding.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_metadata_py.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_default_selector.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_objc.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_structs.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test3_protocol.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_corefoundation.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_identity.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_compat.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_imp.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test3_typecheck.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_regr.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_nsdata.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_outputinitializer.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_set_proxy.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_locking.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/helper_bridgesupport.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_archive_python.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_array_property.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_object_property.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_context.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_structpointer.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_lazy_import.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/dejagnu.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_number_proxy.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_dict_property.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_methodlookup.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_ivar.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_descriptors.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_protected.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_callable_docstr.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_framework.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_ctests.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test2_dictviews.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/keyvaluehelper.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_sockaddr.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_keyvalue_prop.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_constants.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_posing.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_bridged_classes.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_metadata_imp.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_methodaccess.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_opaque.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_leaks.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
copying PyObjCTest/test_specialtypecodes_methdef.py -> build/lib.macosx-10.15-x86_64-3.7/PyObjCTest
running build_ext
Traceback (most recent call last):
File "setup.py", line 735, in <module>
**parse_package_metadata()
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/site-packages/setuptools/init.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
self.run_command(cmdname)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 385, in run
install_lib.install_lib.run(self)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/command/install_lib.py", line 107, in build
self.run_command('build_ext')
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/carroll/.pyenv/versions/3.7.4/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 598, in run
CFLAGS.append("-DPyObjC_BUILD_RELEASE=%02d%02d"%( tuple(map(int, get_sdk_level(self.sdk_root).split('.')))))
ValueError: invalid literal for int() with base 10: ''
Installing 'pyobjc-core' failed (status 1)

Comments (4)

  1. Ronald Oussoren repo owner

    Does “pip install pyobjc” work for you? That should use binary wheels from PyPI.

    Do you have Xcode installed or are you using the command line developer tools?

    If you do have Xcode installed, which version?

    Finally, “pip install Quartz” is not part of PyObjC, the PyObjC package with the bindings to Quartz is named “pyobjc-framework-Quartz” (that naming avoid conflicts with other projects).

  2. Tom Carroll reporter

    Yes! That worked! The pypi.org site should have the installation via Pip on their page for this package/module. It’s confusing because reference is being made to Quartz. Nothing about installing pyobjc. Thank you!

  3. Ronald Oussoren repo owner

    pypi.org is a repository of packages and can’t really change the description of the “quartz” package (at least not unless its owner makes the change, which is unlikely to happen).

    The PyObjC bindings to the Quartz frameworks are the number 2 result for “quartz” on the PyPI search page, that’s as good as its gets when the number 1 result is actually named “quartz”.

    Anyway, glad to hear that using “pip install pyobjc” works for you.

  4. Log in to comment