Skip to content

matplotlib stopped compiling because of package conflicts #133470

@fogti

Description

@fogti

Describe the bug

compiling matplotlib fails at the pythonCatchConflictsPhase, because something pulls in python3.9 in two slightly different versions.

python3.9-matplotlib> Found duplicated packages in closure for dependency 'pytz':
python3.9-matplotlib>   pytz 2021.1 (/nix/store/zg9my8rr1qg1lsv1f3c1hdsslfjsb7pm-python3.9-pytz-2021.1/lib/python3.9/site-packages)
python3.9-matplotlib>   pytz 2021.1 (/nix/store/hpjwc5pdsyb7b2m2a8w8yfqf0xl4p4k9-python3.9-pytz-2021.1/lib/python3.9/site-packages)
python3.9-matplotlib> Found duplicated packages in closure for dependency 'pyparsing':
python3.9-matplotlib>   pyparsing 2.4.7 (/nix/store/ab6w2bpbrk56kiqlhk3k3wy8j5m3zvj0-python3.9-pyparsing-2.4.7/lib/python3.9/site-packages)
python3.9-matplotlib>   pyparsing 2.4.7 (/nix/store/9nxsap1vpl9vpxa0jyx3cd1g6fnzzgmq-python3.9-pyparsing-2.4.7/lib/python3.9/site-packages)
python3.9-matplotlib> Found duplicated packages in closure for dependency 'six':
python3.9-matplotlib>   six 1.16.0 (/nix/store/lwwy39yw6604myd50bgpz4qny9ahnk3x-python3.9-six-1.16.0/lib/python3.9/site-packages)
python3.9-matplotlib>   six 1.16.0 (/nix/store/dli8gf4ckg1hrp6knb2qb3nm1fhjs8dv-python3.9-six-1.16.0/lib/python3.9/site-packages)
python3.9-matplotlib> Found duplicated packages in closure for dependency 'certifi':
python3.9-matplotlib>   certifi 2021.5.30 (/nix/store/rdlwj650pvv75wjbhn6lz5iwiw61mwag-python3.9-certifi-2021.05.30/lib/python3.9/site-packages)
python3.9-matplotlib>   certifi 2021.5.30 (/nix/store/mjlfpbkibyrkh1kmn4c8slx0yh4dpjff-python3.9-certifi-2021.05.30/lib/python3.9/site-packages)
python3.9-matplotlib> Package duplicates found in closure, see above. Usually this happens if two packages depend on different version of the same dependency.

Steps To Reproduce

Checkout nixpkgs commit 850e3da, then try to build:

{ nixpkgs ? <nixpkgs>, system ? builtins.currentSystem }:
(import nixpkgs { inherit system; config.contentAddressedByDefault = true; }).pkgs.python3.withPackages (ps: with ps; [ matplotlib ])

Expected behavior

matplotlib should compile+install+check successfully.

Additional context

nix.conf for reference:

# WARNING: this file is generated from the nix.* options in
# your NixOS configuration, typically
# /etc/nixos/configuration.nix.  Do not edit it!
build-users-group = nixbld
max-jobs = 3
cores = 4
sandbox = true
extra-sandbox-paths = 
substituters = https://cache.ngi0.nixos.org/
trusted-substituters = 
trusted-public-keys = cache.ngi0.nixos.org-1:KqH5CBLNSyX184S9BKZJo1LxrxJ9ltnY2uAs5c/f1MA= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
auto-optimise-store = true
require-sigs = true
trusted-users = zseri
allowed-users = *
builders =

system-features = nixos-test benchmark big-parallel kvm
sandbox-fallback = false

experimental-features = nix-command ca-derivations ca-references flakes
keep-outputs = true
keep-derivations = true
flake-registry = /nix/store/8smmncch59idkjk3f9vmxhzzmsjiavrb-flake-empty.json
builders-use-substitutes = true

Notify maintainers

@lovek323 @veprbl

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.10.52, NixOS, 21.11.20210728.ab93cc0 (Porcupine)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.4pre20210728_7816ef6
  • nixpkgs: /etc/nix-flake-channels/nixpkgs

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
  - python39Packages.matplotlib
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: pythonPython is a high-level, general-purpose programming language.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions