idealista / prom2teams

prom2teams is an HTTP server built with Python that receives alert notifications from a previously configured Prometheus Alertmanager instance and forwards it to Microsoft Teams using defined connectors
Apache License 2.0
268 stars 84 forks source link

[BUG] Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-n1c__b5_/tenacity/ #315

Closed JanardhanTS closed 1 year ago

JanardhanTS commented 1 year ago

Description

When you run "sudo pip install --no-binary :all: prom2teams"

Throws an error "Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-n1c_b5/tenacity/"

[Description of the issue]

sudo pip3 install --no-binary :all: prom2teams WARNING: Running pip install with root privileges is generally not a good idea. Try pip3 install --user instead. Collecting prom2teams Using cached https://files.pythonhosted.org/packages/cb/1a/3aa84689f75019fca82f84618c3781bb487213a03f0afa6afab5227f3453/prom2teams-4.2.0.tar.gz Requirement already satisfied: requests==2.20.1 in /usr/local/lib/python3.6/site-packages (from prom2teams) Requirement already satisfied: flask-restplus==0.12.1 in /usr/local/lib/python3.6/site-packages (from prom2teams) Requirement already satisfied: marshmallow==3.0.0rc6 in /usr/local/lib/python3.6/site-packages (from prom2teams) Requirement already satisfied: jinja2==2.11.3 in /usr/local/lib64/python3.6/site-packages (from prom2teams) Requirement already satisfied: Flask==1.0.2 in /usr/local/lib/python3.6/site-packages (from prom2teams) Requirement already satisfied: pyyaml==5.4 in /usr/local/lib64/python3.6/site-packages (from prom2teams) Collecting uwsgi==2.0.20 (from prom2teams) Using cached https://files.pythonhosted.org/packages/24/fd/93851e4a076719199868d4c918cc93a52742e68370188c1c570a6e42a54f/uwsgi-2.0.20.tar.gz Collecting prometheus_flask_exporter==0.9.0 (from prom2teams) Using cached https://files.pythonhosted.org/packages/08/d6/a45737736d7e7ee68965c867ff666527002128a380afedef95258e8981b1/prometheus_flask_exporter-0.9.0.tar.gz Requirement already satisfied: werkzeug==0.16.1 in /usr/local/lib64/python3.6/site-packages (from prom2teams) Collecting DeepDiff==4.3.0 (from prom2teams) Using cached https://files.pythonhosted.org/packages/53/27/87cb657361d38ad1494aee2aff64c1591b5f9ebb3d37558361bbdbfb0d75/deepdiff-4.3.0.tar.gz Requirement already satisfied: zipp==3.1.0 in /usr/local/lib/python3.6/site-packages (from prom2teams) Requirement already satisfied: MarkupSafe==1.1.1 in /usr/local/lib64/python3.6/site-packages (from prom2teams) Requirement already satisfied: pyrsistent==0.16.0 in /usr/local/lib64/python3.6/site-packages (from prom2teams) Collecting tenacity==6.2.0 (from prom2teams) Using cached https://files.pythonhosted.org/packages/a9/26/dfe61bbfbe7d723fe76ff41960c96161fd32ff303be88bbbdfb428250cd4/tenacity-6.2.0.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-n1cb5_/tenacity/setup.py", line 20, in use_scm_version=True, File "/usr/lib/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 "/usr/lib/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 "/usr/lib/python3.6/site-packages/setuptools/dist.py", line 529, in finalize_options ep.load()(self, ep.name, value) File "/usr/lib/python3.6/site-packages/pkg_resources/init.py", line 2318, in load return self.resolve() File "/usr/lib/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-n1cb5_/tenacity/.eggs/setuptools_scm-7.0.5-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-n1c_b5/tenacity/

Tried

linked python to python3.6 linked python to python2.7

But the error still persisit

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.