Skip to content
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

ERROR: No matching distribution found for opentelemetry-instrumentation-aiohttp-server==0.42b0 #2053

Closed
sidrahate opened this issue Nov 9, 2023 · 48 comments · Fixed by #2101
Assignees
Labels
bug Something isn't working

Comments

@sidrahate
Copy link

Python Version - 3.8

Steps to reproduce
Using 'opentelemetry-bootstrap -a install' Command to Install the Dependencies for Auto Instrumentation.

What is the expected behavior?
package : opentelemetry-instrumentation-aiohttp-server==0.42b0 should be downloaded from pypi

What is the actual behavior?
ERROR: No matching distribution found for opentelemetry-instrumentation-aiohttp-server==0.42b0

@sidrahate sidrahate added the bug Something isn't working label Nov 9, 2023
@lzchen
Copy link
Contributor

lzchen commented Nov 9, 2023

There was an issue releasing the new version of opentelemetry-instrumentation-aiohttp-server==0.42b0, we are working on it to get it resolved.

@phillipuniverse
Copy link
Contributor

This is also breaking for users (like me) that bring in all instrumentations transitively by depending on opentelemetry-contrib-instrumentations. For example, this is broken (poetry example):

opentelemetry-contrib-instrumentations = { version = "0.42b0" }

In poetry it fails with:

Because opentelemetry-contrib-instrumentations (0.42b0) depends on opentelemetry-instrumentation-aiohttp-server (0.42b0) which doesn't match any versions, opentelemetry-contrib-instrumentations is forbidden.

@rubendv
Copy link

rubendv commented Nov 15, 2023

We are also affected by this. We've removed opentelemetry instrumention temporarily as a workaround, but this is not an option for everybody of course.

@jkklapp
Copy link

jkklapp commented Nov 20, 2023

any updates on this issue?

@ronaldbradford
Copy link

Receiving the same behaviour with 3.10.3

$ opentelemetry-bootstrap -a install
ERROR: Could not find a version that satisfies the requirement opentelemetry-instrumentation-aiohttp-server==0.42b0 (from versions: none)
ERROR: No matching distribution found for opentelemetry-instrumentation-aiohttp-server==0.42b0

@sidrahate
Copy link
Author

There was an issue releasing the new version of opentelemetry-instrumentation-aiohttp-server==0.42b0, we are working on it to get it resolved.

Any ETA for this issue resolution.??
As we are forced to disable the instrumentation.

@tylerstar
Copy link

tylerstar commented Dec 5, 2023

This issue posted last month and still not working. At least to have a workaround before new version release

@sheetalkarande-automation

There was an issue releasing the new version of opentelemetry-instrumentation-aiohttp-server==0.42b0, we are working on it to get it resolved.

Hi Team,
Kindly help here with resolution. We need to disable instrumentation for all affected services.

@rubendv
Copy link

rubendv commented Dec 7, 2023

We fixed it by using the previous version:

pip install opentelemetry-distro==0.41b0 opentelemetry-exporter-otlp==1.20.0

After this opentelemetry-bootstrap --action install works fine.

@slernercx
Copy link

The above fix works- but would be great to have a complete fix and get back to reliable python install.

@j-bruce
Copy link

j-bruce commented Dec 20, 2023

In 0.43b0 I'm seeing this same error but with the opentelemetry-instrumentation-aws-lambda==0.43b0 package and possibly others.

@phillipuniverse
Copy link
Contributor

Confirmed still broken in 0.43b0 for opentelemetry-instrumentation-aiohttp-server

@ocelotl
Copy link
Contributor

ocelotl commented Dec 20, 2023

We have this issue because we can't release this package anymore to PyPi, we have reported it here already.

@ocelotl
Copy link
Contributor

ocelotl commented Dec 20, 2023

I'm investigating a workaround for the time being, will report back here...

@ocelotl ocelotl self-assigned this Dec 20, 2023
ocelotl added a commit to ocelotl/opentelemetry-python-contrib that referenced this issue Dec 21, 2023
This makes the bootstrap script get the package version directly from
pypi instead of from our lists of packages. This makes sure that the
packages are actually available for the end user to install.

Fixes open-telemetry#2053
ocelotl added a commit to ocelotl/opentelemetry-python-contrib that referenced this issue Dec 22, 2023
This makes the bootstrap script get the package version directly from
pypi instead of from our lists of packages. This makes sure that the
packages are actually available for the end user to install.

Fixes open-telemetry#2053
ocelotl added a commit to ocelotl/opentelemetry-python-contrib that referenced this issue Jan 2, 2024
This makes the bootstrap script get the package version directly from
pypi instead of from our lists of packages. This makes sure that the
packages are actually available for the end user to install.

Fixes open-telemetry#2053
@vteran93
Copy link

vteran93 commented Jan 6, 2024

Someone forgot to add the folder to the package 0.43b0
opentelemetry error

I was trying the workaround with the pyproject.tolm specification , but then i noticed that. Maybe the solution would be getting the commit that have the correct version

opentelemetry-instrumentation-aiohttp-server= {git = "https://github.com/open-telemetry/opentelemetry-python-contrib/",subdirectory="instrumentation/opentelemetry-instrumentation-aiohttp-server" ,tag = "v0.43b0"}

@GroomedGorilla
Copy link

I'm getting the same error for opentelemetry-instrumentation-aiohttp-server==0.43b0 when running poetry run opentelemetry-bootstrap -a install

Seems like it's a persistent issue 2 months on

@vteran93
Copy link

This was my temporary solution in the project.toml

opentelemetry-exporter-otlp = "^1.20.0"
opentelemetry-distro = "^0.41b0"
opentelemetry-exporter-jaeger = "^1.21.0"

@naisanzaa
Copy link

Error is happening on:

opentelemetry-distro>=0.43b0
opentelemetry-exporter-otlp>=1.22.0

@aabmass
Copy link
Member

aabmass commented Jan 30, 2024

Folks, please see #2053 (comment) this is an issue with PyPI. There is nothing we can do. You can install from Git as mentioned in #2053 (comment) as a workaround

@viniciusd
Copy link

I was trying the workaround with the pyproject.tolm specification , but then i noticed that. Maybe the solution would be getting the commit that have the correct version

opentelemetry-instrumentation-aiohttp-server= {git = "https://github.com/open-telemetry/opentelemetry-python-contrib/",subdirectory="instrumentation/opentelemetry-instrumentation-aiohttp-server" ,tag = "v0.43b0"}

Wondering if any of you came up with a pip requirements.txt equivalent? I have been trying, without success:

git+https://github.com/open-telemetry/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server

@ocelotl
Copy link
Contributor

ocelotl commented Feb 24, 2024

We may not need it, I think @lzchen fixed this issue

@tammy-baylis-swi
Copy link
Contributor

Ah the release script fix. 👍 I have an additional change to suggest for the bootstrap script as I've been getting RuntimeError with 0.44b0: #2299

ocelotl added a commit to ocelotl/opentelemetry-python-contrib that referenced this issue Feb 29, 2024
This makes the bootstrap script get the package version directly from
pypi instead of from our lists of packages. This makes sure that the
packages are actually available for the end user to install.

Fixes open-telemetry#2053
@naisanzaa
Copy link

We may not need it, I think @lzchen fixed this issue

I think we need to fix the tag. the tag should be 0.44b0 not v0.44b0

 % python3 -m pip install git+https://github.com/open-telemetry/opentelemetry-python-contrib.git#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server

Collecting git+https://github.com/open-telemetry/opentelemetry-python-contrib.git#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server
  Cloning https://github.com/open-telemetry/opentelemetry-python-contrib.git to /private/var/folders/sh/5g81k1ld671cw3xsn5269vv80000gn/T/pip-req-build-651y72to
  Running command git clone --filter=blob:none --quiet https://github.com/open-telemetry/opentelemetry-python-contrib.git /private/var/folders/sh/5g81k1ld671cw3xsn5269vv80000gn/T/pip-req-build-651y72to
  Resolved https://github.com/open-telemetry/opentelemetry-python-contrib.git to commit 565e78de2ca3b0304568ff01a70c614c3d4e8def
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: opentelemetry-api~=1.12 in /Users/eric/venv/automonisaur/lib/python3.11/site-packages (from opentelemetry-instrumentation-aiohttp-server==0.45b0.dev0) (1.23.0)
INFO: pip is looking at multiple versions of opentelemetry-instrumentation-aiohttp-server to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement opentelemetry-instrumentation==0.45b0.dev (from opentelemetry-instrumentation-aiohttp-server) (from versions: 0.9b0, 0.10b0, 0.11b0, 0.12b0, 0.13b0, 0.14b0, 0.15b0, 0.16b0, 0.16b1, 0.17b0, 0.18b0, 0.19b0, 0.20b0, 0.21b0, 0.22b0, 0.23b0, 0.23b1, 0.23b2, 0.24b0, 0.25b0, 0.25b1, 0.25b2, 0.26b1, 0.27b0, 0.28b0, 0.28b1, 0.29b0, 0.30b0, 0.30b1, 0.31b0, 0.32b0, 0.33b0, 0.34b0, 0.35b0, 0.36b0, 0.37b0, 0.38b0, 0.39b0, 0.40b0, 0.41b0, 0.42b0, 0.43b0, 0.44b0)
ERROR: No matching distribution found for opentelemetry-instrumentation==0.45b0.dev

@lzchen
Copy link
Contributor

lzchen commented Mar 8, 2024

@naisanzaa

Not sure what you are referring to. You would still use [0.43b0hotfix](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/0.43b0hotfix) to install those packages. They were not included in the 0.44b0 release.

@npuichigo
Copy link

@lzchen when will it be fixed in 0.44b0 or maybe 0.45b0?

@lzchen
Copy link
Contributor

lzchen commented Mar 18, 2024

@npuichigo

Above:

#2053 (comment)

Until this is addressed, there is no long term solution. Please use the workaround in the meantime.

@viniciusd
Copy link

Should we expect to have hotfix releases alike 0.43bhotfix or we shouldn't expect such tags as long as the root cause isn't fixed with pypi?

@viniciusd
Copy link

viniciusd commented Apr 10, 2024

@ocelotl From my understanding, #2101 is gonna patch this. Is that correct?

As in an opentelemetry-contrib-instrumentation installation will not even try to find the aiohttp instrumentation, so it shouldn't fail anymore. Those who don't depend on the aiohttp server instrumentation should then be able to successfully install opentelemetry-contrib-instrumentation out of the box. Is that interpretation right?

It looks like pypi/support#3353 won't be addressed any time soon due to how support requests are [not] being handled

@doctorpangloss
Copy link

I was trying the workaround with the pyproject.tolm specification , but then i noticed that. Maybe the solution would be getting the commit that have the correct version

opentelemetry-instrumentation-aiohttp-server= {git = "https://github.com/open-telemetry/opentelemetry-python-contrib/",subdirectory="instrumentation/opentelemetry-instrumentation-aiohttp-server" ,tag = "v0.43b0"}

Wondering if any of you came up with a pip requirements.txt equivalent? I have been trying, without success:

git+https://github.com/open-telemetry/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server

in requirements.txt:

opentelemetry-instrumentation-aiohttp-server @ git+https://github.com/open-telemetry/[email protected]#subdirectory=instrumentation/opentelemetry-instrumentation-aiohttp-server

ocelotl added a commit to ocelotl/opentelemetry-python-contrib that referenced this issue May 2, 2024
This makes the bootstrap script get the package version directly from
pypi instead of from our lists of packages. This makes sure that the
packages are actually available for the end user to install.

Fixes open-telemetry#2053
@ocelotl ocelotl closed this as completed in 1ee7261 May 2, 2024
@LeoQuote
Copy link

LeoQuote commented May 13, 2024

Another dirty fix for this issue, use it when you actually dont need instrument aiohttp at all.

pip uninstall aiohttp -y
pip install --no-cache-dir opentelemetry-distro opentelemetry-exporter-otlp
opentelemetry-bootstrap -a install
pip install aiohttp

@yanqianglu
Copy link

Hi, I'm still having this issue with the new release

Requirement already satisfied: deprecated>=1.2.6 in /Users/xx/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from opentelemetry-api~=1.12->opentelemetry-instrumentation-aiohttp-client==0.45b0) (1.2.14)
Requirement already satisfied: importlib-metadata<=7.0,>=6.0 in /Users/xx/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from opentelemetry-api~=1.12->opentelemetry-instrumentation-aiohttp-client==0.45b0) (7.0.0)
Requirement already satisfied: zipp>=0.5 in /Users/xx/.pyenv/versions/3.12.0/lib/python3.12/site-packages (from importlib-metadata<=7.0,>=6.0->opentelemetry-api~=1.12->opentelemetry-instrumentation-aiohttp-client==0.45b0) (3.19.0)
ERROR: Could not find a version that satisfies the requirement opentelemetry-instrumentation-aiohttp-server==0.45b0 (from versions: none)
ERROR: No matching distribution found for opentelemetry-instrumentation-aiohttp-server==0.45b0
Traceback (most recent call last):
  File "/Users/xx/.pyenv/versions/3.12.0/lib/python3.12/site-packages/opentelemetry/instrumentation/bootstrap.py", line 35, in wrapper
    return func(package)
           ^^^^^^^^^^^^^
  File "/Users/xx/.pyenv/versions/3.12.0/lib/python3.12/site-packages/opentelemetry/instrumentation/bootstrap.py", line 51, in _sys_pip_install
    subprocess.check_call(
  File "/Users/xx/.pyenv/versions/3.12.0/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/xx/.pyenv/versions/3.12.0/bin/python3.12', '-m', 'pip', 'install', '-U', '--upgrade-strategy', 'only-if-needed', 'opentelemetry-instrumentation-aiohttp-server==0.45b0']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred

@phillipuniverse
Copy link
Contributor

@ocelotl this still looks broken in 0.46b0

Because opentelemetry-contrib-instrumentations (0.46b0) depends on opentelemetry-instrumentation-aiohttp-server (0.46b0) which doesn't match any versions, opentelemetry-contrib-instrumentations is forbidden.

Happens when I have a dependency on 0.46b0

opentelemetry-contrib-instrumentations = { version = "0.46b0" }

Super easy to reproduce with:

pip install opentelemetry-contrib-instrumentations==0.46b0

Output:

~ » pip install opentelemetry-contrib-instrumentations==0.46b0                                                                                                                       [14:16:44]
Collecting opentelemetry-contrib-instrumentations==0.46b0
  Downloading opentelemetry_contrib_instrumentations-0.46b0-py3-none-any.whl (6.6 kB)
Collecting opentelemetry-instrumentation-aws-lambda==0.46b0
  Downloading opentelemetry_instrumentation_aws_lambda-0.46b0-py3-none-any.whl (12 kB)
Collecting opentelemetry-instrumentation-sqlalchemy==0.46b0
  Downloading opentelemetry_instrumentation_sqlalchemy-0.46b0-py3-none-any.whl (13 kB)
Collecting opentelemetry-instrumentation-asgi==0.46b0
  Downloading opentelemetry_instrumentation_asgi-0.46b0-py3-none-any.whl (14 kB)
Collecting opentelemetry-instrumentation-tortoiseorm==0.46b0
  Downloading opentelemetry_instrumentation_tortoiseorm-0.46b0-py3-none-any.whl (10 kB)
Collecting opentelemetry-instrumentation-django==0.46b0
  Downloading opentelemetry_instrumentation_django-0.46b0-py3-none-any.whl (18 kB)
Collecting opentelemetry-instrumentation-remoulade==0.46b0
  Downloading opentelemetry_instrumentation_remoulade-0.46b0-py3-none-any.whl (10 kB)
Collecting opentelemetry-instrumentation-aio-pika==0.46b0
  Downloading opentelemetry_instrumentation_aio_pika-0.46b0-py3-none-any.whl (13 kB)
Collecting opentelemetry-instrumentation-logging==0.46b0
  Downloading opentelemetry_instrumentation_logging-0.46b0-py3-none-any.whl (12 kB)
Collecting opentelemetry-instrumentation-redis==0.46b0
  Downloading opentelemetry_instrumentation_redis-0.46b0-py3-none-any.whl (11 kB)
Collecting opentelemetry-instrumentation-mysql==0.46b0
  Downloading opentelemetry_instrumentation_mysql-0.46b0-py3-none-any.whl (8.8 kB)
Collecting opentelemetry-instrumentation-confluent-kafka==0.46b0
  Downloading opentelemetry_instrumentation_confluent_kafka-0.46b0-py3-none-any.whl (12 kB)
Collecting opentelemetry-instrumentation-wsgi==0.46b0
  Downloading opentelemetry_instrumentation_wsgi-0.46b0-py3-none-any.whl (13 kB)
Collecting opentelemetry-instrumentation-flask==0.46b0
  Downloading opentelemetry_instrumentation_flask-0.46b0-py3-none-any.whl (14 kB)
Collecting opentelemetry-instrumentation-pymongo==0.46b0
  Downloading opentelemetry_instrumentation_pymongo-0.46b0-py3-none-any.whl (10 kB)
Collecting opentelemetry-instrumentation-asyncio==0.46b0
  Downloading opentelemetry_instrumentation_asyncio-0.46b0-py3-none-any.whl (13 kB)
Collecting opentelemetry-instrumentation-pika==0.46b0
  Downloading opentelemetry_instrumentation_pika-0.46b0-py3-none-any.whl (13 kB)
Collecting opentelemetry-instrumentation-pymysql==0.46b0
  Downloading opentelemetry_instrumentation_pymysql-0.46b0-py3-none-any.whl (8.7 kB)
ERROR: Could not find a version that satisfies the requirement opentelemetry-instrumentation-aiohttp-server==0.46b0 (from opentelemetry-contrib-instrumentations) (from versions: none)
ERROR: No matching distribution found for opentelemetry-instrumentation-aiohttp-server==0.46b0

@pmcollins
Copy link
Member

pmcollins commented Jun 4, 2024

Has changing the name of the package in pyproject.toml been discussed? e.g. from opentelemetry-instrumentation-aiohttp-server to opentelemetry-instrumentation-aiohttp-server-v2 or something

@decko
Copy link
Contributor

decko commented Jun 17, 2024

Has changing the name of the package in pyproject.toml been discussed? e.g. from opentelemetry-instrumentation-aiohttp-server to opentelemetry-instrumentation-aiohttp-server-v2 or something

Do we have any logs about this conversation? Why changing the name?

@emdneto
Copy link
Member

emdneto commented Jun 18, 2024

@decko I don't think this has been discussed yet

@viniciusd
Copy link

Do we have any logs about this conversation? Why changing the name?

This thread itself, it has been suggested in the thread as well, but it hasn't been discussed. The problem it would be trying to solve is the issue in this thread. opentelemetry-instrumentation-aiohttp-server isn't being published because of an issue with pypi (pypi/support#3353)

@Rehaan1
Copy link

Rehaan1 commented Jun 21, 2024

Use for v 0.45b0

pip install git+https://github.com/open-telemetry/[email protected]#subdirectory=instrumentation/opentelemetry-instrument
ation-aiohttp-server

@emdneto
Copy link
Member

emdneto commented Jul 18, 2024

PyPi issue is solved pypi/support#3353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.