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

streamlit fails to build #196582

Closed
dit7ya opened this issue Oct 18, 2022 · 5 comments
Closed

streamlit fails to build #196582

dit7ya opened this issue Oct 18, 2022 · 5 comments
Labels
0.kind: build failure A package fails to build

Comments

@dit7ya
Copy link
Member

dit7ya commented Oct 18, 2022

Steps To Reproduce

Steps to reproduce the behavior:

  1. build streamlit from current nixpkgs master
nix-build -A streamlit

Build log

ERROR: Could not find a version that satisfies the requirement protobuf!=3.20.2,<4,>=3.12 (from streamlit) (from versions: none)
ERROR: No matching distribution found for protobuf!=3.20.2,<4,>=3.12

error: builder for '/nix/store/pkrv27yzlfpla706bybscc1dy1i7ll6j-streamlit-1.13.0.drv' failed with exit code 1;
       last 10 log lines:
       > Requirement already satisfied: importlib-metadata>=1.4 in /nix/store/wvzj2c2n1ak2p7hag0yyhqpkc29l5ss6-python3.10-importlib-metadata-4.12.0/lib/python3.10/site-packages (from streamlit==1.13.0) (4.12.0)
       > Requirement already satisfied: pydeck>=0.1.dev5 in /nix/store/wnwhys4a7phmrfam2pdai6l8a3a7rcfq-python3.10-pydeck-0.7.1/lib/python3.10/site-packages (from streamlit==1.13.0) (0.7.1)
       > Requirement already satisfied: tzlocal>=1.1 in /nix/store/lcg2pv0ilf8w89z3m261j787c5js6k63-python3.10-tzlocal-4.2/lib/python3.10/site-packages (from streamlit==1.13.0) (4.2)
       > Requirement already satisfied: altair>=3.2.0 in /nix/store/wy8kbzj1fq9igl4wghr2m6f2qayivizx-python3.10-altair-4.2.0/lib/python3.10/site-packages (from streamlit==1.13.0) (4.2.0)
       > Requirement already satisfied: requests>=2.4 in /nix/store/y7vzg6m0xf4arqixbhf3rkn8yh4j0gzy-python3.10-requests-2.28.1/lib/python3.10/site-packages (from streamlit==1.13.0) (2.28.1)
       > Requirement already satisfied: pympler>=0.9 in /nix/store/px1d11xv20rv9801dkxzmf0kn9c8pxxc-python3.10-Pympler-1.0.1/lib/python3.10/site-packages (from streamlit==1.13.0) (1.0.1)
       > Requirement already satisfied: semver in /nix/store/x32dmyc7aq76f6m0w23q5hbvsd5fpf84-python3.10-semver-2.13.0/lib/python3.10/site-packages (from streamlit==1.13.0) (2.13.0)
       > ERROR: Could not find a version that satisfies the requirement protobuf!=3.20.2,<4,>=3.12 (from streamlit) (from versions: none)
       > ERROR: No matching distribution found for protobuf!=3.20.2,<4,>=3.12
       >

Additional context

The previous version of streamlit builds fine

Notify maintainers

@yrashk

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"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.0, NixOS, 22.11 (Raccoon)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@dit7ya dit7ya added the 0.kind: build failure A package fails to build label Oct 18, 2022
@tobim
Copy link
Contributor

tobim commented Oct 19, 2022

I think this should get solved by #194111.

@vcunat
Copy link
Member

vcunat commented Nov 8, 2022

It is not, at least in the later/merged version of the PR. The real version is at least 4.21, and the streamlit upstream has <4 restriction.

@tobim
Copy link
Contributor

tobim commented Nov 8, 2022

You're right. So this might require to add a protobuf3 derivation temporarily? Sorry if that doesn't make sense, I'm not at all familiar with python in nixpkgs.

@vcunat
Copy link
Member

vcunat commented Nov 8, 2022

streamlit/streamlit#5626

@tobim
Copy link
Contributor

tobim commented Jan 9, 2023

fixed in #203249.

@tobim tobim closed this as completed Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

3 participants