unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
Cc: help guix <help-guix@gnu.org>
Subject: Re: Using julia in guix
Date: Wed, 3 Nov 2021 11:06:25 +0100	[thread overview]
Message-ID: <CAJ3okZ3_L-b=W4P734C_22b_9WjZGmtXp8Wdy0SbBV_vNRtX6g@mail.gmail.com> (raw)
In-Reply-To: <878ry66ssq.fsf@gmail.com>

Hi,

On Wed, 3 Nov 2021 at 00:30, Théo Maxime Tyburn <theo.tyburn@gmail.com> 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: <http://issues.guix.gnu.org/51319>


> 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/302047ed63e49eace1abd20f300ac6e22768690b
--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: <http://issues.guix.gnu.org/issue/48238>



> The GR bug:
> > julia> using GR
> > julia> histogram(randn(10000))
> > env: ‘/home/teddd/.julia/artifacts/b5fea2b0d5c84336f26b139587a84ee7e8ca2e12/bin/gksqt’: 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


  reply	other threads:[~2021-11-03 10:06 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 [this message]
2021-11-03 13:06   ` Efraim Flashner
2021-11-03 21:56   ` Théo Maxime Tyburn
2021-11-04 13:11     ` Efraim Flashner
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

  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='CAJ3okZ3_L-b=W4P734C_22b_9WjZGmtXp8Wdy0SbBV_vNRtX6g@mail.gmail.com' \
    --to=zimon.toutoune@gmail.com \
    --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.
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).