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

Octoprint fails to build due to recent change in black #165323

Closed
gador opened this issue Mar 22, 2022 · 5 comments · Fixed by #165328
Closed

Octoprint fails to build due to recent change in black #165323

gador opened this issue Mar 22, 2022 · 5 comments · Fixed by #165328

Comments

@gador
Copy link
Contributor

gador commented Mar 22, 2022

Describe the bug

Due to the update in #157800 which includes psf/black#2791 octoprint fails to build in current unstable release. Octoprint needs a click version <8, whereas black now demands a version of >= 8.

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-build -A octoprint https://github.com/nixos/nixpkgs/tarball/nixos-unstable

Expected behavior

octoprint should build.

Error message

ERROR: Could not find a version that satisfies the requirement click>=8.0.0 (from black) (from versions: none)
ERROR: No matching distribution found for click>=8.0.0

Notify maintainers

@abbradar @gebner @WhittlesJr

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 5.15.26, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0`
 - channels(florian): `"agenix"`
 - channels(root): `"agenix, nixos, nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

One could add an additional overwrite for black at this point.
On the other hand, octoprint just released its rc2 which drops python2 support and makes a lot of the overwrites unnecessary.

@SuperSandro2000
Copy link
Member

Please just remove black from the test pipeline. There is no reason to run it.

@gador
Copy link
Contributor Author

gador commented Mar 23, 2022

AFAIK black isn't used in the test pipeline. At least neither click, nor octoprint have black as a build input.
Still, some package version of derivation seems to require black. I submitted a PR, which pins the version of black to the last working version.

@SuperSandro2000
Copy link
Member

Still, some package version of derivation seems to require black.

Black is almost never a runtime dependency. Most of the time it can be safely removed from any requires which safes us the hassle of pinning it or fixing issues.

@gador
Copy link
Contributor Author

gador commented Apr 24, 2022

Hi @SuperSandro2000

as I said here it is a runtime dependency. In this case ipython.
In any case, I would rather see #165328 move forward, which would remove most of the overrides.

@SuperSandro2000
Copy link
Member

We should probably wait for a stable release of octoprint first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants