ERROR: Could not build wheels for teimpy which use PEP 517 and cannot be installed directly
paw-lu opened this issue · comments
Paulo S. Costa commented
Thanks for sharing the cool package.
Having some trouble installing directly.
% virtualenv --version
virtualenv 20.4.7 from /Users/pawlu/.local/pipx/venvs/virtualenv/lib/python3.9/site-packages/virtualenv/__init__.py
% virtualenv --python=/Users/pawlu/.pyenv/versions/3.9.5/bin/python --prompt="teimpy" ".venv"
% source .venv/bin/activate
% (teimpy) python -m pip install --upgrade pip setuptools wheel
Requirement already satisfied: pip in ./.venv/lib/python3.9/site-packages (21.1.2)
Requirement already satisfied: setuptools in ./.venv/lib/python3.9/site-packages (57.0.0)
Requirement already satisfied: wheel in ./.venv/lib/python3.9/site-packages (0.36.2)
% (teimpy) python -m pip install teimpy
Collecting teimpy
Using cached teimpy-0.1.1.tar.gz (15 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting numpy<2.0.0,>=1.16.0
Using cached numpy-1.20.3-cp39-cp39-macosx_10_9_x86_64.whl (16.1 MB)
Collecting pillow<7.0.0,>=6.0.0
Using cached Pillow-6.2.2-cp39-cp39-macosx_11_0_x86_64.whl
Building wheels for collected packages: teimpy
Building wheel for teimpy (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /Users/pawlu/Documents/scratch/temi/.venv/bin/python /Users/pawlu/Documents/scratch/temi/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/tmplxs2tsda
cwd: /private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-install-bf1jvy3m/teimpy_190d56c36d1f4d8a9e8b777cadbc0211
Complete output (25 lines):
A setup.py file already exists. Using it.
Traceback (most recent call last):
File "/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-install-bf1jvy3m/teimpy_190d56c36d1f4d8a9e8b777cadbc0211/setup.py", line 2, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
Traceback (most recent call last):
File "/Users/pawlu/Documents/scratch/temi/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
main()
File "/Users/pawlu/Documents/scratch/temi/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/pawlu/Documents/scratch/temi/.venv/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 204, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-build-env-32n21vvm/overlay/lib/python3.9/site-packages/poetry/core/masonry/api.py", line 68, in build_wheel
return unicode(WheelBuilder.make_in(poetry, Path(wheel_directory)))
File "/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-build-env-32n21vvm/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 72, in make_in
wb.build()
File "/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-build-env-32n21vvm/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 103, in build
self._build(zip_file)
File "/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-build-env-32n21vvm/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 135, in _build
self._run_build_command(setup)
File "/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-build-env-32n21vvm/overlay/lib/python3.9/site-packages/poetry/core/masonry/builders/wheel.py", line 163, in _run_build_command
subprocess.check_call(
File "/Users/pawlu/.pyenv/versions/3.9.5/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/pawlu/Documents/scratch/temi/.venv/bin/python', '/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-install-bf1jvy3m/teimpy_190d56c36d1f4d8a9e8b777cadbc0211/setup.py', 'build', '-b', '/private/var/folders/83/rh6w710n4c7flyxf9pg0k9400000gn/T/pip-install-bf1jvy3m/teimpy_190d56c36d1f4d8a9e8b777cadbc0211/build']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for teimpy
Failed to build teimpy
ERROR: Could not build wheels for teimpy which use PEP 517 and cannot be installed directly