make pyinstall fails with (and without) SulfLiq on MacOS Sonoma
Summary
I get 2 distinct errors:
- Following the instruction in the README, running
make pyinstall
fails when cmake is called for SulfLiq (see log below, the same error occurs when runningpip install .
in the cloned repository of SulfLiq). - Taking out SulfLiq results in another error which seems to be related to setuptools (see log below), and for which I didn't find much help on Google.
Steps to reproduce
Follow the README: clone repository, make
, make install
, and finally make pyinstall
, when the bug occurs.
My configuration is:
- MacOS 14.1.2 (Sonoma)
- Apple M2 chip
- Compiler Clang
- Python 3.11.5
- Cmake 3.28
- Make 3.81
Relevant logs and/or screenshots
cmake for sulfLiq returns an error
2 warnings and 8 errors generated.
make[2]: *** [CMakeFiles/SulfLiq.dir/src/wrap_SulfLiq.cc.o] Error 1
make[1]: *** [CMakeFiles/SulfLiq.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/v1/43hhxly534j0r72sx7ykrl99c4hf23/T/pip-install-7nmt950r/sulfliq_22251dd3e3a641b8b69b58294578ef57/setup.py", line 66, in <module>
setup(
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/wheel/bdist_wheel.py", line 325, in run
self.run_command("build")
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/dist.py", line 1234, in run_command
super().run_command(command)
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/v1/43hhxly534j0r72sx7ykrl99c4hf23/T/pip-install-7nmt950r/sulfliq_22251dd3e3a641b8b69b58294578ef57/setup.py", line 32, in run
self.build_extension(ext)
File "/private/var/folders/v1/43hhxly534j0r72sx7ykrl99c4hf23/T/pip-install-7nmt950r/sulfliq_22251dd3e3a641b8b69b58294578ef57/setup.py", line 61, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "/opt/homebrew/anaconda3/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
When taking SulfLiq out (as suggested in #9 (closed) and #12), I obtain another error:
Traceback (most recent call last):
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/anaconda3/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 71, in <module>
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
dist.parse_config_files()
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 627, in parse_config_files
pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 67, in apply_configuration
return _apply(dist, config, filepath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 56, in apply
_apply_project_table(dist, config, root_dir)
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 82, in _apply_project_table
corresp(dist, value, root_dir)
File "/private/tmp/pip-build-env-s_x7hmhz/overlay/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 183, in _license
_set_config(dist, "license", val["text"])
~~~^^^^^^^^
KeyError: 'text'