From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ECdAH3/miWO7VwAAbAwnHQ (envelope-from ) for ; Fri, 02 Dec 2022 12:50:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wMB0Hn/miWNcAQAAG6o9tA (envelope-from ) for ; Fri, 02 Dec 2022 12:50:23 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1DF07920C for ; Fri, 2 Dec 2022 12:50:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p14YO-00009s-GM; Fri, 02 Dec 2022 06:50:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p14YM-00009j-V7 for bug-guix@gnu.org; Fri, 02 Dec 2022 06:50:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p14YM-00038J-Gc for bug-guix@gnu.org; Fri, 02 Dec 2022 06:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p14YM-0008Hi-9x for bug-guix@gnu.org; Fri, 02 Dec 2022 06:50:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59772: conda 22.9.0 breaks "conda init bash" Resent-From: Hugo Buddelmeijer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Dec 2022 11:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59772 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 59772@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166998175331829 (code B ref -1); Fri, 02 Dec 2022 11:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 11:49:13 +0000 Received: from localhost ([127.0.0.1]:46223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p14XY-0008HJ-Tf for submit@debbugs.gnu.org; Fri, 02 Dec 2022 06:49:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:44686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p14XW-0008HD-5h for submit@debbugs.gnu.org; Fri, 02 Dec 2022 06:49:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p14XV-00005Q-QA for bug-guix@gnu.org; Fri, 02 Dec 2022 06:49:09 -0500 Received: from mail-ed1-f46.google.com ([209.85.208.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p14XT-00030Z-JR for bug-guix@gnu.org; Fri, 02 Dec 2022 06:49:09 -0500 Received: by mail-ed1-f46.google.com with SMTP id s5so6094187edc.12 for ; Fri, 02 Dec 2022 03:49:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wwirl8aaB6WghRZlOGxPEQNIWZPcy3boH8cKU/GBoxc=; b=n8vssejfJRXQ++8JoEF7c4EtfSR9fGxuyCecI2nX6JNAkt35m907wbQB+DLTWpTp6S t+u0YoHZQIul/GjmftczclUUVswqrkz1UvhRpc1BN4DebYW8xAEtQFe3DDcwUMAvbgL1 P8OuekTnz6iCr+ZgFcnNI0pmJD9jP3yIfw63qMyOG7feiCHS1K/SzlWXNO+pmtjBXUSh v2uR8AlNQy4eZK/eTaD8/6f/6nVGXUNchA8sZeCbYXRaM3m2w7f+NmFBSM76c5YHbXH6 1Ekp2gXGUFoWjZBTbaw2+3RvAExfdTERtQI+Kw9CYnrEtnNKhF9DFUoFp/wx0jrM6liX /spA== X-Gm-Message-State: ANoB5pkw5LQb++QtqDN/lb+uUAM1qa7B5GWWx/jNb+1aq0VpxVMevjuC 0L/6JvJINjWYO6XY/l2LCAbr9cuKCt9t6OS2lI6e/zr3Uk/TAw== X-Google-Smtp-Source: AA0mqf6ewkm+Ju8C5izuLzZcrDmHnXNJ3pBbutOBSvzkju3lPvhh9jHpTuj48oyaMhToHN6usTbIHB+yPhgzicceswA= X-Received: by 2002:a05:6402:3644:b0:45f:c7f2:297d with SMTP id em4-20020a056402364400b0045fc7f2297dmr64961074edb.266.1669981744981; Fri, 02 Dec 2022 03:49:04 -0800 (PST) MIME-Version: 1.0 From: Hugo Buddelmeijer Date: Fri, 2 Dec 2022 12:48:53 +0100 Message-ID: Content-Type: multipart/alternative; boundary="000000000000b0f59405eed6ec1b" Received-SPF: pass client-ip=209.85.208.46; envelope-from=blackshift@gmail.com; helo=mail-ed1-f46.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669981823; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=wwirl8aaB6WghRZlOGxPEQNIWZPcy3boH8cKU/GBoxc=; b=hgh28PGDSrRjknYCUDgChoS8Pjx7UrLj0iWBnR/bpyH/M5worRbnlH/QQH6TL4RQv60OqH vA9BbIzwU5JnFRgMZDGt+5k1cEWG3Anh05pzsrxjEYy4InCI854is3753/ERFwQIzlJ6bb uvoPbhin6YFdLeiYca1A5ivNLnfjhwmbC5lUpMp97Fqjw/5Tgni9HRprFz+QqpanIXRn6T 5KED2MsWxmaAWlrNx82M6teOelwgtNftinZ3eP69lGkgNtkRKmkcHDHlUA7Nlj0QOCTefM o4SlHSynz7cG/dwAogg4lTWk1euL/PauT7z48vMajFC5MjSWpKjbv+HW1qWsFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669981823; a=rsa-sha256; cv=none; b=sBhJB3qE0nEQLECdfjqorebsABPa6hUb6BUO+yO5W6QC1z4ypV+8MDN5WqwMdsAYb29W4k 39nGOHig/M4nzAiH7h57BC5Lw84ubd1gaMMl1an4UfSXPtKm0SsIrteH4jTNTWA6cSHhaM Ne5+v1rhB2/UTRLZokoHoWvxkKR5Sk4ovw3TDx9j//IpLdn86cdpbaqF2GaAjeeFgITWzV 8Tz8YEifmFqUdpQl2twORk0LcLikX3s5xqurK2c74Re0MuXXDfKWZOxJHLM9ZeXR74BukO +D7zgoxTXfZqnkbuBT23ieAHfuu/tjtcMoWdRYCiblinUxtMZKFnBxmtYjrBww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.67 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1DF07920C X-Spam-Score: -1.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: tdXxXCZKG7up --000000000000b0f59405eed6ec1b Content-Type: text/plain; charset="UTF-8" Hi all, Conda 22.9.0 breaks "conda init bash". Conda requires some functions to be present in ~/.bashrc (or equivalent dot file for other shells) in order to function as intended [*]. These functions are added there through "conda init bash", which each conda user should run once. $ guix shell -C conda sudo [env]$ conda --version conda 22.9.0 [env]$ conda init bash [..] File "/gnu/store/lvip6h5pamjwmvnkwg60sjb63ph8698k-python-3.9.9/lib/python3.9/subprocess.py", line 19 59, in _communicate input_view = memoryview(self._input) TypeError: memoryview: a bytes-like object is required, not 'str' [...] However, it seems that this is a conda problem (not sure), and not a guix problem. E.g. see https://github.com/conda/conda/issues/11885 "conda 22.9.0 breaks bash command prompt" The suggested solution there is to do "sudo $(which conda) init bash", which is not really acceptable for us. Also, "conda init bash" does seem to actually do what it is supposed to do: add conda functions to ~/.bashrc; the error occurs after that. So maybe we can just wait this out, or try to see whether it works with conda 22.11.0. Greetings, Hugo [*] There are also some problems in the interplay between guix and the conda functions in .bashrc. I'll report those later. --000000000000b0f59405eed6ec1b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

Conda 22.9.0 breaks = "conda init bash". Conda requires some functions to be present in= ~/.bashrc (or equivalent dot file for other shells) in order to function a= s intended [*]. These functions are added there through "conda init ba= sh", which each conda user should run once.

$ guix shell -C conda sudo

[env]$ conda --= version
conda 22.9.0

[env]$ conda init bash
= [..]
=C2=A0 =C2=A0 =C2=A0 File "/gnu/store/lvip6h5pamjwmvnkw= g60sjb63ph8698k-python-3.9.9/lib/python3.9/subprocess.py", line 19
= 59, in _communicate
=C2=A0 =C2=A0 =C2=A0 =C2=A0 input_view =3D memoryvie= w(self._input)
=C2=A0 =C2=A0 TypeError: memoryview: a bytes-like object = is required, not 'str'
[...]

However, it seems that this is a conda problem (not sure), and not a guix = problem. E.g. see=
=C2=A0=C2=A0 "conda 22.9.0 breaks bash command prompt"
The suggested solution there is to do "sudo $(which conda) in= it bash", which is not really acceptable for us.

<= div>Also, "conda init bash" does seem to actually do what it is s= upposed to do: add conda functions to ~/.bashrc; the error occurs after tha= t. So maybe we can just wait this out, or try to see whether it works with = conda 22.11.0.

Greetings,
Hugo
=

[*] There are also some problems in the interplay betwe= en guix and the conda functions in .bashrc. I'll report those later.

--000000000000b0f59405eed6ec1b--