Bug #59535
openinstall-deps.sh failed with "SyntaxError: future feature annotations is not defined" on centos8
0%
Description
Downloading https://files.pythonhosted.org/packages/37/9f/342d4562eac99178d0d515c780285e107c6828cefad37d02f05b7b7d8751/xmlsec-1.3.13.tar.gz (64kB)
100% |################################| 71kB 8.3MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-th9lnb3d/xmlsec/setup.py", line 542, in <module>
package_data={'xmlsec': ['py.typed', '*.pyi']},
File "/ceph/install-deps-python3/lib64/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib64/python3.6/distutils/core.py", line 108, in setup
setup_distribution = dist = klass(attrs)
File "/ceph/install-deps-python3/lib64/python3.6/site-packages/setuptools/dist.py", line 370, in init
k: v for k, v in attrs.items()
File "/usr/lib64/python3.6/distutils/dist.py", line 281, in init
self.finalize_options()
File "/ceph/install-deps-python3/lib64/python3.6/site-packages/setuptools/dist.py", line 529, in finalize_options
ep.load()(self, ep.name, value)
File "/ceph/install-deps-python3/lib64/python3.6/site-packages/pkg_resources/_init__.py", line 2318, in load
return self.resolve()
File "/ceph/install-deps-python3/lib64/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
module = import(self.module_name, fromlist=['__name__'], level=0)
File "/tmp/pip-build-th9lnb3d/xmlsec/.eggs/setuptools_scm-7.1.0-py3.6.egg/setuptools_scm/__init__.py", line 5
from future import annotations
^
SyntaxError: future feature annotations is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-th9lnb3d/xmlsec/
You are using pip version 9.0.3, however version 23.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command
Updated by can zhu about 1 year ago
(ceph branch is v16.2.12)because of the version of the pip is lower under the ./install-deps.sh, if we replace the "pip >= 7.0" with "pip >= 21.0", all is ok.