From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WHePMrhYGGA9RgAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 19:38:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eJsxLrhYGGAzcQAA1q6Kng (envelope-from ) for ; Mon, 01 Feb 2021 19:38:32 +0000 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 459C89403E6 for ; Mon, 1 Feb 2021 19:38:32 +0000 (UTC) Received: from localhost ([::1]:53064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6f1q-00032c-Uj for larch@yhetil.org; Mon, 01 Feb 2021 14:38:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6f1R-0002yU-4H for bug-guix@gnu.org; Mon, 01 Feb 2021 14:38:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6f1O-0005an-4E for bug-guix@gnu.org; Mon, 01 Feb 2021 14:38:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6f1O-0000vn-2d for bug-guix@gnu.org; Mon, 01 Feb 2021 14:38:02 -0500 Subject: bug#27858: Conda (on guix) does not activate environments Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Mon, 01 Feb 2021 19:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 27858 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Frederick Muriithi Mail-Followup-To: 27858@debbugs.gnu.org, maxim.cournoyer@gmail.com, fredmanglis@gmail.com Received: via spool by 27858-done@debbugs.gnu.org id=D27858.16122082443532 (code D ref 27858); Mon, 01 Feb 2021 19:38:01 +0000 Received: (at 27858-done) by debbugs.gnu.org; 1 Feb 2021 19:37:24 +0000 Received: from localhost ([127.0.0.1]:33275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6f0l-0000ut-7W for submit@debbugs.gnu.org; Mon, 01 Feb 2021 14:37:24 -0500 Received: from mail-qk1-f178.google.com ([209.85.222.178]:38368) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6f0j-0000uh-IX for 27858-done@debbugs.gnu.org; Mon, 01 Feb 2021 14:37:22 -0500 Received: by mail-qk1-f178.google.com with SMTP id d85so17487826qkg.5 for <27858-done@debbugs.gnu.org>; Mon, 01 Feb 2021 11:37:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pmL5UuOmEGoYNZ+aKAmjiD9hSlL+Ak2JA5NPDg/I5U0=; b=iL4R6alg6AmxrxpX1eibZi4AU+NNL2UZu/iCQ0W3cjYSNqdZiTXZ/cO/nHsBj7ALLV vTVF2zZqmNGqEfHk0Mlhy78DVuex/TNzKfvCuJ8B9QKYoXUyNd3IUUwtajRy3aaW+zDY DKUP5WgVgpJrwoc8ODIrdWx9xrTuiBbrFuzGI2avUXd5js8owVov0hn03/4SG6Oxs1o3 4mn+BuoapD2ZGCD9sVSNyQJB1YnrZ4JHm/fSYYDel3t/lKLCByhHkuu1Vo5F6sbBULJP bPF5jjJHXhOC5t5C++4rcxbeDSPkemZC+INwB7/VwrVE4hiWIMeoMPQlkt6TdOB4Y4qd +O2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pmL5UuOmEGoYNZ+aKAmjiD9hSlL+Ak2JA5NPDg/I5U0=; b=F9RKcr7HQYUd2k+qx6F8wgol+CWbI9DTO6GQTl6EB0cPCtMw7yZp/IvVCM02OScWMb eZ8hnVYqWwjbFY9VEyzUBinR3ULezgLE2i7cAO1dRSS10Qf3GUG6v3o319N0pRAfIx7N uTVjWktlc/H09SBDR6bBGirmHJ3hd2GbJwHuvDvFEn1sz9wVM42AzNHlnIs9OJ95VGR3 Q+SUG5FB0r0EpGeh2ij5VDTUICP+g1oKhTHzs7YS/g8/YV7HFke/GRdainEes1r/ZWYo 3DR/0v8VdBXW3779obuvf2vg00xHOGqAQ0Fak2I62amkvp0d3ufoqf4EHVtVIjwGUBc/ dORg== X-Gm-Message-State: AOAM531d8XgII3Y5jmcesK12wlFMzit88RuwO8Stgx9a6NMaowfhjh2q GxAenY4nXgss71lfcV/qJBvaZF3ztjtHfQ== X-Google-Smtp-Source: ABdhPJxwogmA0rSczhOU9H7AmLmX2lkqdfOKlx1dtaww8mIqofzco2CO2BkDxZNnW9KH2h7HS1MXrg== X-Received: by 2002:ae9:ebd5:: with SMTP id b204mr17587378qkg.33.1612208235838; Mon, 01 Feb 2021 11:37:15 -0800 (PST) Received: from hurd (dsl-205-236-230-168.b2b2c.ca. [205.236.230.168]) by smtp.gmail.com with ESMTPSA id n24sm14356237qtv.26.2021.02.01.11.37.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 11:37:15 -0800 (PST) From: Maxim Cournoyer References: <20170728093642.GA10189@thebird.nl> Date: Mon, 01 Feb 2021 14:37:13 -0500 In-Reply-To: (Frederick Muriithi's message of "Fri, 28 Jul 2017 12:42:58 +0300") Message-ID: <87r1lzr34m.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Cc: 27858-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=iL4R6alg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 459C89403E6 X-Spam-Score: -1.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y1AUbwMHV4XA Hello, Frederick Muriithi writes: > 1) Install conda into a profile: > > guix package --install=conda --profile=$HOME/guix_profiles/conda > > 2) Activate the profile: > > source $HOME/guix_profiles/conda/etc/profile > > 3) Create an environment with conda and install biopython > > conda create --name test-env biopython > > 4) Try to activate the environment (here's where it fails) > > source activate test-env I had never used conda before, so I was a bit surprised that it sneeked that into my ~/.bashrc: diff --git a/bash/.bashrc b/bash/.bashrc index d0635bc..169b2c8 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -119,3 +119,19 @@ function up() cd "$dir" echo "info: now in $PWD [Git repo]" } + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/gnu/store/pjkxdaryj97yffhjxql2q4wpzs70hpa3-conda-4.8.3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/gnu/store/pjkxdaryj97yffhjxql2q4wpzs70hpa3-conda-4.8.3/etc/profile.d/conda.sh" ]; then + . "/gnu/store/pjkxdaryj97yffhjxql2q4wpzs70hpa3-conda-4.8.3/etc/profile.d/conda.sh" + else + export PATH="/gnu/store/pjkxdaryj97yffhjxql2q4wpzs70hpa3-conda-4.8.3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + and required the presence of the 'sudo' command to be happy. With that said, $ guix environment --pure --ad-hoc conda bash coreutils sudo (base) $ conda create --name test-env biopython Then the suggested: (base) $ conda activate test-env (test-env) $ So, it seems to work. Closing. Maxim