From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aHsLB0JfgmFJegEAgWs5BA (envelope-from ) for ; Wed, 03 Nov 2021 11:06:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2A3RAkJfgmGkDAAAB5/wlQ (envelope-from ) for ; Wed, 03 Nov 2021 10:06:58 +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 7183212F77 for ; Wed, 3 Nov 2021 11:06:57 +0100 (CET) Received: from localhost ([::1]:46974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1miDAV-0007VJ-Nj for larch@yhetil.org; Wed, 03 Nov 2021 06:06:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1miDAG-0007Ux-Go for help-guix@gnu.org; Wed, 03 Nov 2021 06:06:40 -0400 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]:39781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1miDAE-0007LE-0Z for help-guix@gnu.org; Wed, 03 Nov 2021 06:06:40 -0400 Received: by mail-qk1-x732.google.com with SMTP id bk22so1714256qkb.6 for ; Wed, 03 Nov 2021 03:06:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CmsVSlaOfv5mH5oYNQqIo4N5MFeu3d5+cXtgzfjXvmE=; b=NQDGzO0UBR01LGWBIi3c5nq8S9886ZxIkwf+2kpZmyjiekqz2Z81BT2Hq7plKYiLRt K5vaTOAUGeloKVA8VOHvYls83hCLn1FlmIl1UioLXboBFZkWqQaLxK2dwNC1WH1b/WpU F2bs2mIwmyt6TsHmEAarCXcjNgSQwZjzvMXPDjETkM3Dpg8/1gSr3lmrzjt6w5jNyS4B BSPNyOFBYl5dRadgJiH+pRpbeJuirNlKCtOwpmU4OuaPOHsG1xidkOl/aJOAz6zNJaJD wdS0qihjGWp6yWvr35kzSRunoGRmFb9zU9ftDD8qpl9uLQyUVXLcwckBpSYEoxIXW5Ck 7Kjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=CmsVSlaOfv5mH5oYNQqIo4N5MFeu3d5+cXtgzfjXvmE=; b=GxHq1Kho9qMKIXS6m0PQpHbROEnAGE2lKy0QRPHsog3QbXY0tQUKbSfXJCD1eURBr+ MsaDbbLS2+vsWVhbgx18dqceOrEYLEoMCwlGyAYzWgdO02lX5YDvb0imdg7p8Xj7w13z 7M+H+Oi3rKwZ1YLeLDWKKFzuGyRTnLmph5TSTLZ14cXTKUAPTxaAJyhshtzouq0azpw0 fL17N4CDjKSim/Ei0HMyX0H6/aPjnLEgjZe//zMoy+1GGUWeLEKmt0wouRnpA3gRUdpn 2KBvR4a70p+Vv+X43kjZ1/TDCbDxaXuB3sL04AX+e0Yq3TzQaSsnMIglwTbL4IzkXzPg Eulg== X-Gm-Message-State: AOAM5310mRcBNKj5L4IKfOn1QrPRm19hM2x/g21eKHZxoqnKIjIBuIEm +kf33Wy0CBuqQyp+47jKKFmVxGfPvE7Tv7aTr7H9UXL/ARU= X-Google-Smtp-Source: ABdhPJz/Nd6reLzAedRD6ZEXABUCWc5FSjtML05LLoonD/duGcc1p01LU2hSpWsKEtp8QDB9VxRghh4QfS0HC7FPyQ0= X-Received: by 2002:a05:620a:4008:: with SMTP id h8mr27701716qko.253.1635933996796; Wed, 03 Nov 2021 03:06:36 -0700 (PDT) MIME-Version: 1.0 References: <878ry66ssq.fsf@gmail.com> In-Reply-To: <878ry66ssq.fsf@gmail.com> From: zimoun Date: Wed, 3 Nov 2021 11:06:25 +0100 Message-ID: Subject: Re: Using julia in guix To: =?UTF-8?Q?Th=C3=A9o_Maxime_Tyburn?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=zimon.toutoune@gmail.com; helo=mail-qk1-x732.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635934017; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CmsVSlaOfv5mH5oYNQqIo4N5MFeu3d5+cXtgzfjXvmE=; b=BK24mlaypxFRmPy4Y6Dh83sYY1v1vPJ+jC1JDWz/RFronGTj9L/Ndc31b/iQta8kwyioqU 389e8cSxg8Hrg0ToRpVbx4ppfYQJCTu5ZoTao1NBktUTamd7kQ9defpRatPSWDiYpq0FZt Xzpv9x2oatzipFJTyxCoL3SXcipiQtec4beNZYyM85e0plPnLYNEIRHCosMHKLfGGls1vu p79j5FIS2OdNcrzzVgKLVoF1P7dQ9mDK/hU7VjIcIMpauN1eySeyq75K/bjaGG9CWC3nLY orY3AT8ywLUTQL4Ifbb54TKbljWjuMi+LAoZTLB9mcQdlCXHvwZFsHpflPg0oQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635934017; a=rsa-sha256; cv=none; b=n8Fr7inA9sEQCzCxG/1wxd0HbowresSmWFYRBVL2fpa9sLzjwLs9aEj3Sjg57Go2O6PaLA 0UgAVU24V9g4HmuaxWCfg9NRtYJ7YapPquRFwoqGNLjgAhbtHeQ19qh1IXGwuIwgS1YEEj 9MnFMEvxlJ7XuBp24fi2Q/FpO/CHLSXMiYsMUsyrB6k2eX4fRWCkfxaB2ZLqnxJ9Xm8HyD ELjaU3G7hy2322/AdfQ8OGz4nex9yOc8WTeAw7wYXph2sgJkh3S6NHIocORqbzZUpX1mE/ z7rCzZR0mWyIlDB/DY4h1A1ymjVKnj0QqYvoGRMMNXFHuoYVhU2u8uRLKc8Z1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NQDGzO0U; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=NQDGzO0U; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 7183212F77 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1O2UV5II+guG Hi, On Wed, 3 Nov 2021 at 00:30, Th=C3=A9o Maxime Tyburn wrote: > I started using julia in one of my university projects and I am not sure > how this should be done the guix way. Has someone experience with this ? Cool! > For know I just used the julia package manager and the packages are in > ~/.julia. I was not able to use the guix packages for julia > however. Should something be done manually to tell julia where to find > its packages ? For now, it is either packages from Pkg.jl or either packages julia-* from Guix. A patch [1] is still pending for being able to mix both. Aside that packages from Pkg.jl do not always work out-of-the-box, sadly. 1: > I encountered two problems. The first with the package "GR" the > second with the package "GLFW". I encountered these bugs while trying > the packages "Plots" and the "GLMakie" backend of "Makie" IIUC, you installed all the packages using Pkg.jl, right? Because then, I get: --8<---------------cut here---------------start------------->8--- ERROR: could not download https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/302= 047ed63e49eace1abd20f300ac6e22768690b --8<---------------cut here---------------end--------------->8--- and I do not know if Pkg.jl works correctly with the current julia from Guix. For instance, "guix shell julia -CN -- julia" then 'using Pkg; Pkg.add("Plots")' reports failures. One is reference to build directory "/tmp/guix-build-julia-1.6.2.drv-0", see [2]. 2: > The GR bug: > > julia> using GR > > julia> histogram(randn(10000)) > > env: =E2=80=98/home/teddd/.julia/artifacts/b5fea2b0d5c84336f26b139587a8= 4ee7e8ca2e12/bin/gksqt=E2=80=99: No such file or directory > > connect: Connection refused > > GKS: can't connect to GKS socket application[ > it then exits because of a segmentation fault. Well, I do not know where does the issue come from. I suspect something related to [2] above. For now, I do not have a solution and I do not have time to work on it. Sorry. I would be happy if someone fixes the issue; probably patch#51319 helps here. :-) Cheers, simon