From: Efraim Flashner <efraim@flashner.co.il>
To: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
Cc: help guix <help-guix@gnu.org>
Subject: Re: Using julia in guix
Date: Thu, 4 Nov 2021 15:11:18 +0200 [thread overview]
Message-ID: <YYPb9lKu8+ysv0E8@3900XT> (raw)
In-Reply-To: <87tugsq3em.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3333 bytes --]
On Wed, Nov 03, 2021 at 10:56:51PM +0100, Théo Maxime Tyburn wrote:
> Hi,
>
> Thanks for the quick reply!
>
> > 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: <http://issues.guix.gnu.org/51319>
>
> 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.
>
> 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 ?
>
> >> 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?
>
> 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)
>
> > 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: <http://issues.guix.gnu.org/issue/48238>
>
> 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)".
>
> > 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. :-)
>
> I’ll try that out, it seems promising. Combining packages from Pkg 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).
>
> 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.
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2021-11-04 13:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-02 22:55 Using julia in guix Théo Maxime Tyburn
2021-11-03 10:06 ` zimoun
2021-11-03 13:06 ` Efraim Flashner
2021-11-03 21:56 ` Théo Maxime Tyburn
2021-11-04 13:11 ` Efraim Flashner [this message]
2021-11-05 21:52 ` Théo Maxime Tyburn
2021-11-07 7:49 ` Efraim Flashner
2021-11-07 16:58 ` Théo Maxime Tyburn
2021-11-08 9:21 ` Efraim Flashner
2021-11-08 10:58 ` zimoun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YYPb9lKu8+ysv0E8@3900XT \
--to=efraim@flashner.co.il \
--cc=help-guix@gnu.org \
--cc=theo.tyburn@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.