I lost my PyCharm settings during an update and tried to reinstall the environment, however struggled to install HABapp, ending with error message that seems to come from failure to localize ‘distutils’. Tried workaround installing/upgrading ‘setuptools’ with no difference.
Working work-around: changed the interpreter to Python 3.10 which I had installed and all was ok/good (HABapp installed nicely).
Building wheels for collected packages: pendulum
Building wheel for pendulum (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pendulum (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
Traceback (most recent call last):
File "C:\Users\perno\AppData\Local\Temp\pip-install-v2k_9bci\pendulum_c183a93236674f19b796a9685466f802\build.py", line 5, in <module>
from distutils.command.build_ext import build_ext
ModuleNotFoundError: No module named 'distutils'
Traceback (most recent call last):
File "C:\_HG\PN_AUTOMATION\CODING\Python\habapp_test_env\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\_HG\PN_AUTOMATION\CODING\Python\habapp_test_env\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\_HG\PN_AUTOMATION\CODING\Python\habapp_test_env\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\perno\AppData\Local\Temp\pip-build-env-i24qbl52\overlay\Lib\site-packages\poetry\core\masonry\api.py", line 58, in build_wheel
return WheelBuilder.make_in(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\perno\AppData\Local\Temp\pip-build-env-i24qbl52\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 88, in make_in
wb.build(target_dir=directory)
File "C:\Users\perno\AppData\Local\Temp\pip-build-env-i24qbl52\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 123, in build
self._build(zip_file)
File "C:\Users\perno\AppData\Local\Temp\pip-build-env-i24qbl52\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 172, in _build
self._run_build_script(self._package.build_script)
File "C:\Users\perno\AppData\Local\Temp\pip-build-env-i24qbl52\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 262, in _run_build_script
subprocess.check_call([self.executable.as_posix(), build_script])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2032.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:/_HG/PN_AUTOMATION/CODING/Python/habapp_test_env/venv/Scripts/python.exe', 'build.py']' returned non-zero exit status 1.
self._run_build_script(self._package.build_script)
File "C:\Users\perno\AppData\Local\Temp\pip-build-env-i24qbl52\overlay\Lib\site-packages\poetry\core\masonry\builders\wheel.py", line 262, in _run_build_script
subprocess.check_call([self.executable.as_posix(), build_script])
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2032.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:/_HG/PN_AUTOMATION/CODING/Python/habapp_test_env/venv/Scripts/python.exe', 'build.py']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pendulum
Failed to build pendulum
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pendulum)
(venv) PS T:\habapp>