NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.07k stars 14.13k forks source link

Build failure: opentelemetry-proto #349361

Open yshui opened 3 weeks ago

yshui commented 3 weeks ago

opentelemetry-proto needs protobuf<5.0

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a :+1: reaction to issues you find important.

Ate329 commented 3 weeks ago

Same issue when building open-webui.

error: builder for '/nix/store/7v11hlp2qcmj8180xhxf26k92nmaqc9b-python3.12-opentelemetry-proto-1.26.0.drv' failed with exit code 1;
       last 25 log lines:
       > Using pythonImportsCheckPhase
       > Sourcing python-namespaces-hook
       > Sourcing python-catch-conflicts-hook.sh
       > Sourcing pytest-check-hook
       > Using pytestCheckPhase
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/sf1lvr2jk9l42l9z5v1hc2l05gsh8z32-source
       > source root is source/opentelemetry-proto
       > setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/opentelemetry-proto/tests/test_proto.py
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > Executing pypaBuildPhase
       > Creating a wheel...
       > * Getting build dependencies for wheel...
       > * Building wheel...
       > Successfully built opentelemetry_proto-1.26.0-py3-none-any.whl
       > Finished creating a wheel...
       > Finished executing pypaBuildPhase
       > Running phase: pythonRuntimeDepsCheckHook
       > Executing pythonRuntimeDepsCheck
       > Checking runtime dependencies for opentelemetry_proto-1.26.0-py3-none-any.whl
       >   - protobuf<5.0,>=3.19 not satisfied by version 5.28.2
       For full logs, run 'nix log /nix/store/7v11hlp2qcmj8180xhxf26k92nmaqc9b-python3.12-opentelemetry-proto-1.26.0.drv'.
error: 1 dependencies of derivation '/nix/store/lp90yd20zs72xq7yvb5gxx66rdgv5z1z-python3.12-opentelemetry-exporter-otlp-proto-grpc-1.26.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4vk7r0crdagckhrp3d2z6gj0nsf632m8-python3.12-chromadb-0.5.11.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xwmqdi4ykpc4d3j0svsgi3c4206qrmwh-open-webui-0.3.32.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mpg24ab5z9iv9w2b0p4l2qrn9gv4mx3d-unit-open-webui.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9r0vsiqxxyqick0vryz1341ca2n17i9r-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fwqypclbv63bdbgrl66ddzhlzb86pdvv-etc.drv' failed to build
nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.4, NixOS, 24.11 (Vicuna), 24.11.20241017.2a3888a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - channels(root): `"nixos, nixpkgs, unstable"`
 - nixpkgs: `/home/ate329/.nix-defexpr/channels/nixpkgs`
jackwilsdon commented 3 weeks ago

It looks like this has already been fixed on staging: https://github.com/NixOS/nixpkgs/pull/348738#issuecomment-2414496207

yshui commented 3 weeks ago

fixed on staging

ok, thanks. how do i stop myself from opening issues that are already fixed in staging? what's the best practice? maybe there can be a reminder in the issue template so people like me don't forget?

devzero commented 1 week ago

So, it’s been more than two weeks - what is blocking this moving forward?

womfoo commented 1 week ago

@devzero, if you need to something running sooner, you could copy the affected packages from staging and use them as overlays. Here are changes on my local machine to get open-webui running on unstable.