From unknown Thu Jun 19 14:16:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59772 <59772@debbugs.gnu.org> To: bug#59772 <59772@debbugs.gnu.org> Subject: Status: conda 22.9.0 breaks "conda init bash" Reply-To: bug#59772 <59772@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:16:05 +0000 retitle 59772 conda 22.9.0 breaks "conda init bash" reassign 59772 guix submitter 59772 Hugo Buddelmeijer severity 59772 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 02 06:49:13 2022 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: Subject: conda 22.9.0 breaks "conda init bash" To: bug-guix@gnu.org 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-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --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--