-
Notifications
You must be signed in to change notification settings - Fork 666
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
otel-0.40b release breaks 0.39b installation #3382
Comments
I got a similar pip InconsistentCandidate error when I set up my own test container that installs |
Investigating... |
First find: a solution could be to add |
Second find: Interesting, installing like this works:
Notice that after running
It seems like |
I think this is being caused by this
|
Will try with specifying the requirement for |
I think this should work, I ran an experiment. First I checked out
That produced I created a private pypi server in my laptop, and after moving
In another virtual environment, I tried the failing command reported in this issue:
Got this error:
I "created" a new tigre@hilleman:~/github/ocelotl/opentelemetry-python/opentelemetry-api$ git diff
diff --git a/opentelemetry-api/pyproject.toml b/opentelemetry-api/pyproject.toml
index f659d7775..d03e870df 100644
--- a/opentelemetry-api/pyproject.toml
+++ b/opentelemetry-api/pyproject.toml
@@ -28,7 +28,7 @@ dependencies = [
"Deprecated >= 1.2.6",
# FIXME This should be able to be removed after 3.12 is released if there is a reliable API
# in importlib.metadata.
- "importlib-metadata ~= 6.0",
+ "importlib-metadata >= 6.0",
]
dynamic = [
"version",
diff --git a/opentelemetry-api/src/opentelemetry/version.py b/opentelemetry-api/src/opentelemetry/version.py
index 270451efb..9592f5e83 100644
--- a/opentelemetry-api/src/opentelemetry/version.py
+++ b/opentelemetry-api/src/opentelemetry/version.py
@@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-__version__ = "1.20.0.dev"
+__version__ = "1.20.0"
Swapped the
No error this time, pip was able to do the downgrade of
|
This is functionally equivalent to the previous state but it works around a bug in pypi. Fixes open-telemetry#3382
We (the https://github.com/pulp/pulpcore project) have project-releases that specify otel-release-requirements like so:
With the release of 0.40b today, those became uninstallable due to unrecoverable pip-version-conflicts.
Investigation shows that (for example)
"opentelemetry-distro[otlp]<=0.39b0,>=0.38b0"
can't be installed into a clean environment:It looks to me like the collision happens because the dependency
Collecting opentelemetry-api~=1.12
finds 0.19, which wants importlib-metadata==6.8.0, while the rest of 0.39b wants importlib-metadata~=6.0.0 which disallows 6.8.0.(I absolutely could be wrong about exactly where in the otel deps "something" is demanding 6.8.0 - but that's the general shape of the problem.)
Describe your environment
I am on Fedora38, python/3.11, pip-3.22, FWIW. This has been reproduced in several different environments now (not unexpected, it's not environmental, it's an inherently-unrecoverable version-conflict)
Steps to reproduce
mkvirtualenv otel-version-problem
pip3 install --no-cache-dir --dry-run "opentelemetry-distro[otlp]==0.39b0"
What is the expected behavior?
0.39b should remain installable, even when newer versions are available.
The text was updated successfully, but these errors were encountered: