From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EIDzF5Lhg2FoSAAAgWs5BA (envelope-from ) for ; Thu, 04 Nov 2021 14:35:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OK+ME5Lhg2FmAQAAbx9fmQ (envelope-from ) for ; Thu, 04 Nov 2021 13:35:14 +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 96B171B0C2 for ; Thu, 4 Nov 2021 14:35:13 +0100 (CET) Received: from localhost ([::1]:59538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1micta-00059M-VS for larch@yhetil.org; Thu, 04 Nov 2021 09:35:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46794) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1micXa-0007i6-QL for help-guix@gnu.org; Thu, 04 Nov 2021 09:12:26 -0400 Received: from flashner.co.il ([178.62.234.194]:53010) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1micXX-000216-1E for help-guix@gnu.org; Thu, 04 Nov 2021 09:12:25 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id 1885D4071B; Thu, 4 Nov 2021 13:11:50 +0000 (UTC) Date: Thu, 4 Nov 2021 15:11:18 +0200 From: Efraim Flashner To: =?utf-8?B?VGjDqW8=?= Maxime Tyburn Subject: Re: Using julia in guix Message-ID: Mail-Followup-To: =?utf-8?B?VGjDqW8=?= Maxime Tyburn , zimoun , help guix References: <878ry66ssq.fsf@gmail.com> <87tugsq3em.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WUsDZ3LciHPZX2S/" Content-Disposition: inline In-Reply-To: <87tugsq3em.fsf@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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=1636032913; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=+iMoDFoRcZJ1mmEfB21uENC2zTOPjldhcgyZx144e50=; b=kTNwy4VbRVenqA/XV2jYXEH7mCMphI9e2kvB+fdspw/1wx4SoPcSYp18ySNXBUTj94GDeu kzbekihQ2M8JLe9oUrwBq+HU96n4JNSWKjoX+mzzKduIFvjATWwC5k4JJ4NxKtAejPR+Oe 814Ki+g+uEaA9PV5zWfAmjwZ4+L79X1n9USoFgzI43xnOSf6GE4/VRAc5iSR55WFksQzrz 2oN3fKQ61T0GbyYHz4IIngkQFeIvlEjDImddsygqMxQsdSX5MsY2ymo5nlbdOO0ZjoyifQ 8Lzz4rFKdHS7iRckMK8zxP7IqiuxiEJ1Bbu7OmTOFl1pPMI6L4gyYukE/5PZEw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636032913; a=rsa-sha256; cv=none; b=lwvSDuWbHwiR7WMT8BurLUQgU34F4TI0q04Fu0QIIp53/rk7F12Yx3FNvAIsaaSD1dyW1g OQafcQ183rUzZjGnPNMCal9M0/Lu9vkWURWp7dzuNHlEbnKZ5hodKJk9HVdxeCi6TOCUM8 lakVRPA0TIqzNsZMUpnnGAZdp9gnNLsYvGFPisQjpA7El6qGI6idae2PHeIWMXlc/OAzAR 9PVxNv9nopj4kI9VTMbqrGXNvM0vs3g93hLttw3u3G0pPQE8L3yPlbD4u7ECI+HNOGwqnH PAqwCW8wCHvZuEn90ukqUVNrXMbZkU+ANLHArEmtD/IFZw+yDUzF6Nc0Ye/0YA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.52 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 96B171B0C2 X-Spam-Score: -2.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: FbV0r6tN8fwN --WUsDZ3LciHPZX2S/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 03, 2021 at 10:56:51PM +0100, Th=C3=A9o Maxime Tyburn wrote: > Hi, >=20 > Thanks for the quick reply! >=20 > > 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: >=20 > Ok I see so either I use guix julia-* packages and then I need julia to > ignore packages in ~/.julia and avoid using Pkg, or I use Pkg to > install packages but it will break in some cases and also ignore already > install julia packages from guix. >=20 > What about using JLLs ? I have no precise understanding of how a jll work > and how to use it but it seems they contain binaries and there are > guix packages for them. For example julia-glfw-jll. Could I use GLFW in > julia with this guix package installed ? >=20 > >> 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? >=20 > Yes until my first message I only installed stuff with Pkg. Now I tried > the guix packages and they work fine. Especially the GR package works so > I can at least plot things now, thanks ! (Makie with Cairo backend is > also working from Pkg install though) >=20 > > 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: >=20 > This seems nasty. For me however everything I tried to install and > precompile with Pkg worked. So "pkg>add Plots" and "using Plots" works > fine. Problems arise when I call a function, say "plot(1:3,1:3)". >=20 > > 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. :-) >=20 > I=E2=80=99ll try that out, it seems promising. Combining packages from Pk= g and > guix while prioritizing guix packages and avoid reinstalling them seems > like the right way to get the problematic packages under control for now > (by that I mean creating a guix package for them). >=20 > I never tested a patch though. How do I do this ? Is it on a branch of > the git repo ? The way I do it is I read my emails with mutt and I pipe the patch file (either the e-mail or a part of it, depending on how it came through) to 'cd workspace/guix; git am' and then test it out from there. There is also CBaines's patch tracker. If you add https://git.guix-patches.cbaines.net/git/guix-patches as another remote (git remote add guix-patches https://git.guix-patches.cbaines.net/git/guix-= patches) then you can cherry-pick c6e882a52b5e736d0ac11872bc2dc6e26100115a and test out the patch that way. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --WUsDZ3LciHPZX2S/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmGD2/UACgkQQarn3Mo9 g1G2oRAAwus/8QLSk0j2fsGoRGu3XTZ2NxooBqcRMERYMSztNjxfKaJRsZUb2AmG gOzgzfXnH9HiFa0xMzzV35ICY1pQdVJQHD3VWEyNsE4R5YTv5OdrYXG4hQpn+1dk w/EB342EeEf17u9vLgLwlSpnc08uhyWmz9BpkrYCPn8jEGUdJ5L/zhD8zY5D8GSh eoZ4Yh2y5sJZC57lo8k6exngIuKMZtYq4rIwruzxaaPx+y8dw3G3UILCOXnBIBha aPnN7fl7SMpVrZvyBTrizC2IJ3sIeCK87rTd4CAT0SZwEE77Y3X+H+RyK/3CumB4 dfuXr/a1i7cC/iutwbNSqn8UHszj9U7YA6iKRIG5ZYzBxkTR8/EUPTHCm8Tm8Ljk 29kSuoEFUxkefOf5KofiTTPmDStcb6THipeLyUjD6FM9IHir/fPdksEe84SO4+J3 of4ZZg1a5SOzjKpX2QCLMMGdYQ1ZB9bq7OFS4b4q8uh1+H7cIPrE1MHcbkwPbfuT m6I0H42owIop1BnDdns9thjUJgA8TpfrlKpMea6d9Q3u6asKIE0C+zE6/WKH1kO0 5wwjw1SCnCw8HUt1B5nqgnC/w0LvpdOsXBPbyMHyxHbVbnv8WgmmZnUsXRAddznU UicSqQEGZg++Utq5hZqZg4HSYNl/qnUirhNtfgHcVckrvDsP/S0= =4fjV -----END PGP SIGNATURE----- --WUsDZ3LciHPZX2S/--