unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Dominic Martinez <dom@dominicm.dev>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 42920@debbugs.gnu.org
Subject: bug#42920: conda 4.8.3 on guix cannot activate environments
Date: Tue, 05 Apr 2022 10:50:46 -0400	[thread overview]
Message-ID: <87tub7zibj.fsf@dominicm.dev> (raw)
In-Reply-To: <87fsmr3bl7.fsf@elephly.net>

[-- Attachment #1: Type: text/plain, Size: 1825 bytes --]


>> On Wed, 18 Aug 2021 at 12:07, Ricardo Wurmus 
>> <rekado@elephly.net> wrote:
>>> We have since upgraded to 4.10.3, but the problems still 
>>> persist. Conda still
>>> asks users to run “conda init”, which attempts to run “sudo” 
>>> to modify
>>> root-owned files.  It’s a big mess.

I don't think conda init will ever work on Guix, and it seems out 
of scope to try and prevent Conda from prompting users to do 
that. I was able to get conda working with the following steps:

1. Expose the glibc interpreter so that conda python can function
#+begin_src scheme
(extra-special-file "/lib64/ld-linux-x86-64.so.2"
                       (file-append glibc 
                       "/lib/ld-linux-x86-64.so.2"))
#+end_src
2. Source the conda environment variables. I do this both in my 
profile (through home-shell-profile-service-type) and through my 
rc file for interactive shells, as I think I remember having 
problems not sourcing it in both.
#+begin_src scheme
(define-public (home-profile-service script)
  "Creates a service that sources a home profile.d script provided 
  by a package."
  (simple-service 'profile.d-service
                  home-shell-profile-service-type
                  `(,(plain-file
                      (string-append script "-profile")
                      (string-append "source 
                      ~/.guix-home/profile/etc/profile.d/" script 
                      ".sh")))))

(home-profile-service "conda")
#+end_src

#+begin_src shell
source ~/.guix-home/profile/etc/profile.d/conda.sh
#+end_src

I agree that this setup is not ideal, but I think that guix home 
has the promise of fixing a lot of these issues with home 
services! Hopefully in the near future we'll be able to turn these 
fixed into services for users.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2022-04-07 21:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-18 19:08 bug#42920: conda 4.8.3 on guix cannot activate environments Hugo Buddelmeijer
2020-08-19 10:06 ` Ricardo Wurmus
2020-08-20 16:39   ` Hugo Buddelmeijer
2020-08-21  3:51     ` Ricardo Wurmus
2020-08-23 19:26       ` Hugo Buddelmeijer
2020-08-25 12:34         ` Ricardo Wurmus
2020-08-25 15:03           ` Hugo Buddelmeijer
2021-03-01 18:50             ` Hugo Buddelmeijer
2021-08-18 10:07 ` Ricardo Wurmus
2022-04-05 10:40   ` zimoun
2022-04-05 13:26     ` Ricardo Wurmus
2022-04-05 14:50       ` Dominic Martinez [this message]
2022-04-05 15:19         ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tub7zibj.fsf@dominicm.dev \
    --to=dom@dominicm.dev \
    --cc=42920@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).