-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error with setuptools 0.68.0 #723
Build error with setuptools 0.68.0 #723
Comments
Looks like the error happens at Lines 203 to 206 in 957ae4d
|
With the release of Cython 3.0.0 it seems like cython/cython#4568 is impacting this project now. |
@mcdonnnj so since this is a CPython issue, does that mean won't be fixed til 3.11.4? |
@phillipuniverse Cython != CPython |
@phillipuniverse I also get this error, but as a result of running Are you also using pip-tools when getting this error? |
I'm just using poetry and hitting this error along with a bunch of other's. #601 is getting a lot of traffic related to this too. Does anyone know of a workaround that'd work with poetry? |
@wesleykendall no, Poetry 1.5.1. |
I was trying to install awscli in version 1.22.11 and it needs PyYAML too, the version 5.3.1 was working fine, so maybe this is a help for someone with a similar problem |
@dennistruemper thanks, this is what ultimately fixed it for me. Seems like pyyaml==5.4.* causes this. Hopefully awscli will support 6.* soon |
I can confirm using 5.3.1 works for me |
yes I think using 5.3.1 is the only way |
the title of this issue is wrong, its not 0.68.0 we were able to solve this by moving to pyyaml 6.0.1 and setup tools 65 |
@tommyjcarpenter, I think this problem occurs in other setuptools versions as well. I got this error from updating setuptools from 59.6.0 to 67.8.0. But after I fixed the PyYAML version at 5.3.1. Problem solved. Update: update PyYAML to 6.0.1 also can solve the problem. |
This was causing install issues with newer versions of Python / setuptools; see yaml/pyyaml#723. Thanks to Rui Chen <rui@chenrui.dev> for reporting this issue in #340.
This was causing install issues with newer versions of Python / setuptools; see yaml/pyyaml#723. Thanks to Rui Chen <rui@chenrui.dev> for reporting this issue in #340.
See the following GitHub issues for more info: - yaml/pyyaml#724 - yaml/pyyaml#601 - yaml/pyyaml#723 ``` => ERROR [stage-1 4/4] RUN pip install --no-deps -r /tmp/requirements.txt && pip install /tmp/marge-*.tar.gz 4.8s ------ > [stage-1 4/4] RUN pip install --no-deps -r /tmp/requirements.txt && pip install /tmp/marge-*.tar.gz: 0.995 Ignoring backports-zoneinfo: markers 'python_version >= "3.7" and python_version < "3.9"' don't match your environment 0.995 Ignoring importlib-metadata: markers 'python_version >= "3.7" and python_version < "3.8"' don't match your environment 0.996 Ignoring typing-extensions: markers 'python_version >= "3.7" and python_version < "3.8"' don't match your environment 0.996 Ignoring zipp: markers 'python_version >= "3.7" and python_version < "3.8"' don't match your environment 1.049 Collecting certifi==2022.12.7 1.084 Downloading certifi-2022.12.7-py3-none-any.whl (155 kB) 1.107 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 6.7 MB/s eta 0:00:00 1.178 Collecting charset-normalizer==3.1.0 1.189 Downloading charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB) 1.197 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.3/199.3 kB 26.0 MB/s eta 0:00:00 1.214 Collecting configargparse==1.5.3 1.225 Downloading ConfigArgParse-1.5.3-py3-none-any.whl (20 kB) 1.245 Collecting dateparser==1.1.8 1.260 Downloading dateparser-1.1.8-py2.py3-none-any.whl (293 kB) 1.271 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 293.8/293.8 kB 28.9 MB/s eta 0:00:00 1.290 Collecting decorator==5.1.1 1.300 Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB) 1.324 Collecting humanize==4.6.0 1.337 Downloading humanize-4.6.0-py3-none-any.whl (109 kB) 1.341 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.0/110.0 kB 31.5 MB/s eta 0:00:00 1.363 Collecting idna==3.4 1.374 Downloading idna-3.4-py3-none-any.whl (61 kB) 1.377 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 26.5 MB/s eta 0:00:00 1.493 Collecting maya==0.6.1 1.515 Downloading maya-0.6.1-py2.py3-none-any.whl (12 kB) 1.562 Collecting pendulum==2.1.2 1.573 Downloading pendulum-2.1.2.tar.gz (81 kB) 1.577 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.2/81.2 kB 27.5 MB/s eta 0:00:00 1.596 Installing build dependencies: started 2.239 Installing build dependencies: finished with status 'done' 2.240 Getting requirements to build wheel: started 2.287 Getting requirements to build wheel: finished with status 'done' 2.287 Preparing metadata (pyproject.toml): started 2.420 Preparing metadata (pyproject.toml): finished with status 'done' 2.445 Collecting python-dateutil==2.8.2 2.456 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) 2.466 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 27.7 MB/s eta 0:00:00 2.480 Collecting pytz-deprecation-shim==0.1.0.post0 2.491 Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB) 2.534 Collecting pytz==2023.3 2.546 Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB) 2.564 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 kB 29.6 MB/s eta 0:00:00 2.585 Collecting pytzdata==2020.1 2.598 Downloading pytzdata-2020.1-py2.py3-none-any.whl (489 kB) 2.620 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 490.0/490.0 kB 23.4 MB/s eta 0:00:00 2.663 Collecting pyyaml==5.4.1 2.675 Downloading PyYAML-5.4.1.tar.gz (175 kB) 2.682 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 29.7 MB/s eta 0:00:00 2.778 Installing build dependencies: started 4.419 Installing build dependencies: finished with status 'done' 4.420 Getting requirements to build wheel: started 4.562 Getting requirements to build wheel: finished with status 'error' 4.568 error: subprocess-exited-with-error 4.568 4.568 × Getting requirements to build wheel did not run successfully. 4.568 │ exit code: 1 4.568 ╰─> [62 lines of output] 4.568 /tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` 4.568 !! 4.568 4.568 ******************************************************************************** 4.568 The license_file parameter is deprecated, use license_files instead. 4.568 4.568 By 2023-Oct-30, you need to update your project and remove deprecated calls 4.568 or your builds will no longer be supported. 4.568 4.568 See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. 4.568 ******************************************************************************** 4.568 4.568 !! 4.568 parsed = self.parsers.get(option_name, lambda x: x)(value) 4.568 running egg_info 4.568 writing lib3/PyYAML.egg-info/PKG-INFO 4.568 writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt 4.568 writing top-level names to lib3/PyYAML.egg-info/top_level.txt 4.568 Traceback (most recent call last): 4.568 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module> 4.568 main() 4.568 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main 4.568 json_out['return_val'] = hook(**hook_input['kwargs']) 4.568 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel 4.568 return hook(config_settings) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel 4.568 return self._get_build_requires(config_settings, requirements=['wheel']) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires 4.568 self.run_setup() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup 4.568 exec(code, locals()) 4.568 File "<string>", line 271, in <module> 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup 4.568 return distutils.core.setup(**attrs) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup 4.568 return run_commands(dist) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands 4.568 dist.run_commands() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands 4.568 self.run_command(cmd) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command 4.568 super().run_command(command) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command 4.568 cmd_obj.run() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 318, in run 4.568 self.find_sources() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 326, in find_sources 4.568 mm.run() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 548, in run 4.568 self.add_defaults() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 586, in add_defaults 4.568 sdist.add_defaults(self) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/sdist.py", line 113, in add_defaults 4.568 super().add_defaults() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults 4.568 self._add_defaults_ext() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext 4.568 self.filelist.extend(build_ext.get_source_files()) 4.568 File "<string>", line 201, in get_source_files 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__ 4.568 raise AttributeError(attr) 4.568 AttributeError: cython_sources 4.568 [end of output] 4.568 4.568 note: This error originates from a subprocess, and is likely not a problem with pip. 4.569 error: subprocess-exited-with-error 4.569 4.569 × Getting requirements to build wheel did not run successfully. 4.569 │ exit code: 1 4.569 ╰─> See above for output. 4.569 4.569 note: This error originates from a subprocess, and is likely not a problem with pip. 4.571 4.571 [notice] A new release of pip available: 22.3.1 -> 23.2.1 4.571 [notice] To update, run: pip install --upgrade pip ```
See the following GitHub issues for more info: - yaml/pyyaml#724 - yaml/pyyaml#601 - yaml/pyyaml#723 ``` => ERROR [stage-1 4/4] RUN pip install --no-deps -r /tmp/requirements.txt && pip install /tmp/marge-*.tar.gz 4.8s ------ > [stage-1 4/4] RUN pip install --no-deps -r /tmp/requirements.txt && pip install /tmp/marge-*.tar.gz: 0.995 Ignoring backports-zoneinfo: markers 'python_version >= "3.7" and python_version < "3.9"' don't match your environment 0.995 Ignoring importlib-metadata: markers 'python_version >= "3.7" and python_version < "3.8"' don't match your environment 0.996 Ignoring typing-extensions: markers 'python_version >= "3.7" and python_version < "3.8"' don't match your environment 0.996 Ignoring zipp: markers 'python_version >= "3.7" and python_version < "3.8"' don't match your environment 1.049 Collecting certifi==2022.12.7 1.084 Downloading certifi-2022.12.7-py3-none-any.whl (155 kB) 1.107 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 6.7 MB/s eta 0:00:00 1.178 Collecting charset-normalizer==3.1.0 1.189 Downloading charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB) 1.197 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.3/199.3 kB 26.0 MB/s eta 0:00:00 1.214 Collecting configargparse==1.5.3 1.225 Downloading ConfigArgParse-1.5.3-py3-none-any.whl (20 kB) 1.245 Collecting dateparser==1.1.8 1.260 Downloading dateparser-1.1.8-py2.py3-none-any.whl (293 kB) 1.271 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 293.8/293.8 kB 28.9 MB/s eta 0:00:00 1.290 Collecting decorator==5.1.1 1.300 Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB) 1.324 Collecting humanize==4.6.0 1.337 Downloading humanize-4.6.0-py3-none-any.whl (109 kB) 1.341 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.0/110.0 kB 31.5 MB/s eta 0:00:00 1.363 Collecting idna==3.4 1.374 Downloading idna-3.4-py3-none-any.whl (61 kB) 1.377 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 26.5 MB/s eta 0:00:00 1.493 Collecting maya==0.6.1 1.515 Downloading maya-0.6.1-py2.py3-none-any.whl (12 kB) 1.562 Collecting pendulum==2.1.2 1.573 Downloading pendulum-2.1.2.tar.gz (81 kB) 1.577 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.2/81.2 kB 27.5 MB/s eta 0:00:00 1.596 Installing build dependencies: started 2.239 Installing build dependencies: finished with status 'done' 2.240 Getting requirements to build wheel: started 2.287 Getting requirements to build wheel: finished with status 'done' 2.287 Preparing metadata (pyproject.toml): started 2.420 Preparing metadata (pyproject.toml): finished with status 'done' 2.445 Collecting python-dateutil==2.8.2 2.456 Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB) 2.466 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 27.7 MB/s eta 0:00:00 2.480 Collecting pytz-deprecation-shim==0.1.0.post0 2.491 Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB) 2.534 Collecting pytz==2023.3 2.546 Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB) 2.564 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 kB 29.6 MB/s eta 0:00:00 2.585 Collecting pytzdata==2020.1 2.598 Downloading pytzdata-2020.1-py2.py3-none-any.whl (489 kB) 2.620 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 490.0/490.0 kB 23.4 MB/s eta 0:00:00 2.663 Collecting pyyaml==5.4.1 2.675 Downloading PyYAML-5.4.1.tar.gz (175 kB) 2.682 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 29.7 MB/s eta 0:00:00 2.778 Installing build dependencies: started 4.419 Installing build dependencies: finished with status 'done' 4.420 Getting requirements to build wheel: started 4.562 Getting requirements to build wheel: finished with status 'error' 4.568 error: subprocess-exited-with-error 4.568 4.568 × Getting requirements to build wheel did not run successfully. 4.568 │ exit code: 1 4.568 ╰─> [62 lines of output] 4.568 /tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg` 4.568 !! 4.568 4.568 ******************************************************************************** 4.568 The license_file parameter is deprecated, use license_files instead. 4.568 4.568 By 2023-Oct-30, you need to update your project and remove deprecated calls 4.568 or your builds will no longer be supported. 4.568 4.568 See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. 4.568 ******************************************************************************** 4.568 4.568 !! 4.568 parsed = self.parsers.get(option_name, lambda x: x)(value) 4.568 running egg_info 4.568 writing lib3/PyYAML.egg-info/PKG-INFO 4.568 writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt 4.568 writing top-level names to lib3/PyYAML.egg-info/top_level.txt 4.568 Traceback (most recent call last): 4.568 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module> 4.568 main() 4.568 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main 4.568 json_out['return_val'] = hook(**hook_input['kwargs']) 4.568 File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel 4.568 return hook(config_settings) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel 4.568 return self._get_build_requires(config_settings, requirements=['wheel']) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires 4.568 self.run_setup() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup 4.568 exec(code, locals()) 4.568 File "<string>", line 271, in <module> 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup 4.568 return distutils.core.setup(**attrs) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup 4.568 return run_commands(dist) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands 4.568 dist.run_commands() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands 4.568 self.run_command(cmd) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command 4.568 super().run_command(command) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command 4.568 cmd_obj.run() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 318, in run 4.568 self.find_sources() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 326, in find_sources 4.568 mm.run() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 548, in run 4.568 self.add_defaults() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 586, in add_defaults 4.568 sdist.add_defaults(self) 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/command/sdist.py", line 113, in add_defaults 4.568 super().add_defaults() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults 4.568 self._add_defaults_ext() 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 336, in _add_defaults_ext 4.568 self.filelist.extend(build_ext.get_source_files()) 4.568 File "<string>", line 201, in get_source_files 4.568 File "/tmp/pip-build-env-xmsfsb8h/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 107, in __getattr__ 4.568 raise AttributeError(attr) 4.568 AttributeError: cython_sources 4.568 [end of output] 4.568 4.568 note: This error originates from a subprocess, and is likely not a problem with pip. 4.569 error: subprocess-exited-with-error 4.569 4.569 × Getting requirements to build wheel did not run successfully. 4.569 │ exit code: 1 4.569 ╰─> See above for output. 4.569 4.569 note: This error originates from a subprocess, and is likely not a problem with pip. 4.571 4.571 [notice] A new release of pip available: 22.3.1 -> 23.2.1 4.571 [notice] To update, run: pip install --upgrade pip ```
I think this might be caused from an inadvertent upgrade in my system of virtualenv from 20.23.1 to 20.24.0, which included an upgrade of setuptools from 67.8 to 68.
This was with Alpine (and Python 3.11.4) but the problem seems to be setuptools 68:
The text was updated successfully, but these errors were encountered: