Received: (at submit) by debbugs.gnu.org; 2 Dec 2022 11:49:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 02 06:49:13 2022
Received: from localhost ([127.0.0.1]:46223 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1p14XY-0008HJ-Tf
for submit <at> 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 <blackshift@HIDDEN>) id 1p14XW-0008HD-5h
for submit <at> 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 <blackshift@HIDDEN>)
id 1p14XV-00005Q-QA
for bug-guix@HIDDEN; 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 <blackshift@HIDDEN>)
id 1p14XT-00030Z-JR
for bug-guix@HIDDEN; Fri, 02 Dec 2022 06:49:09 -0500
Received: by mail-ed1-f46.google.com with SMTP id s5so6094187edc.12
for <bug-guix@HIDDEN>; 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 <hugo@HIDDEN>
Date: Fri, 2 Dec 2022 12:48:53 +0100
Message-ID: <CA+Jv8O0siPiEMzzgLYNDJ=P-O7Y3MXJ+LoxURC9tXFx4juLn9A@HIDDEN>
Subject: conda 22.9.0 breaks "conda init bash"
To: bug-guix@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000b0f59405eed6ec1b"
Received-SPF: pass client-ip=209.85.208.46; envelope-from=blackshift@HIDDEN;
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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
<div dir=3D"ltr"><div>Hi all,</div><div><br></div><div>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.<br></div><div><br></div><d=
iv>$ guix shell -C conda sudo<br></div><div><br></div><div>[env]$ conda --=
version<br>conda 22.9.0</div><div><br></div><div>[env]$ conda init bash<br>=
[..]</div><div>=C2=A0 =C2=A0 =C2=A0 File "/gnu/store/lvip6h5pamjwmvnkw=
g60sjb63ph8698k-python-3.9.9/lib/python3.9/subprocess.py", line 19<br>=
59, in _communicate<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 input_view =3D memoryvie=
w(self._input)<br>=C2=A0 =C2=A0 TypeError: memoryview: a bytes-like object =
is required, not 'str'<br></div><div>[...]</div><div><br></div><div=
>However, it seems that this is a conda problem (not sure), and not a guix =
problem. E.g. see</div><div>=C2=A0=C2=A0 <a href=3D"https://github.com/cond=
a/conda/issues/11885">https://github.com/conda/conda/issues/11885</a></div>=
<div>=C2=A0=C2=A0 "conda 22.9.0 breaks bash command prompt"<br></=
div><div>The suggested solution there is to do "sudo $(which conda) in=
it bash", which is not really acceptable for us.</div><div><br></div><=
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.</div><div><br></div><div>Greetings,</div><div>Hugo<br></div>=
<div><br></div><div>[*] There are also some problems in the interplay betwe=
en guix and the conda functions in .bashrc. I'll report those later.<br=
></div><br></div>
--000000000000b0f59405eed6ec1b--
Hugo Buddelmeijer <hugo@HIDDEN>:bug-guix@HIDDEN.
Full text available.bug-guix@HIDDEN:bug#59772; Package guix.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.