From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vilata i Balaguer Subject: About conflicting entries in a profile Date: Thu, 9 May 2019 19:53:59 -0400 Message-ID: <20190509235359.GK19928@sax.terramar.selidor.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOsrV-0002va-O0 for help-guix@gnu.org; Thu, 09 May 2019 19:54:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOsrU-0003qB-9j for help-guix@gnu.org; Thu, 09 May 2019 19:54:05 -0400 Received: from lev.selidor.net ([66.246.138.156]:36475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOsrU-0003nh-5o for help-guix@gnu.org; Thu, 09 May 2019 19:54:04 -0400 Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Hi! I've been using Guix on top of Debian for more than 2 years and I saw something that spurred a doubt about how Guix manages conflicts. So the other day I got the following output from ``guix package -u`` after a ``guix pull``: $ guix package --dry-run -u python-jsonschema The following package would be upgraded: python-jsonschema 2.6.0 -> 3.0.1 /gnu/store/va4hgdfx8zbqzyah7vgqkm25g60p8lf3-python-jsonschema-3.0.1 guix package: error: profile contains conflicting entries for python-attrs guix package: error: first entry: python-attrs@18.2.0 /gnu/store/awb7awycpf1crpd1kllvk6qzchd4g7lw-python-attrs-18.2.0 guix package: error: ... propagated from python-jsonschema@3.0.1 guix package: error: second entry: python-attrs@18.2.0 /gnu/store/s77kxps7sybxxdny68xkbcp51ffmiwfl-python-attrs-18.2.0 guix package: error: ... propagated from python-automat@0.6.0 guix package: error: ... propagated from python-twisted@17.5.0 guix package: error: ... propagated from python-txtorcon@19.0.0 guix package: error: ... propagated from magic-wormhole@0.11.2 hint: Try upgrading both `python-jsonschema' and `magic-wormhole', or remove one of them from the profile. I understand the error message, and upgrading both packages fixed the issue indeed. What I don't get is *why* having two different versions of ``python-attrs`` in the profile is considered an error. My understanding was that two different packages in the profile should be able to depend on different versions of the same library without problems, since they are referred by its absolute path in the store so they don't conflict. I understand that I may not directly ``guix install`` two versions of the same package (because the may e.g. put the same entry under ``$GUIX_PROFILE/bin``), but in my case ``python-attrs`` is just a dependency package which doesn't show up in ``guix package -I``. Can anybody shed some light on the issue? Thanks! PS: Yes, I started to write about this in the IRC channel but I pasted too many command output lines and got banned. Oops! -- Ivan Vilata i Balaguer -- https://elvil.net/