unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: "Théo Maxime Tyburn" <theo.tyburn@gmail.com>
To: help guix <help-guix@gnu.org>
Subject: Using julia in guix
Date: Tue, 02 Nov 2021 23:55:00 +0100	[thread overview]
Message-ID: <878ry66ssq.fsf@gmail.com> (raw)

Hello guix people and julia users!

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 ?

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 ?

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"


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.

I tried running the above inside this shell
> guix shell gr-framework
but the result is the same.


The GLFW bug:
> julia> using GLFW
> julia> GLFW.CreateWindow(300,300, "Test")
> ERROR: GLFWError (API_UNAVAILABLE): GLX: No GLXFBConfigs returned

I also tried running this into
> guix shell mesa glfw mesa-utils libglvnd
with exact same result.

Also I was able to compile and run a minimal GLFW C code so I think my
glfw and mesa installs are fine.


I am not sure these two errors are related but I have the
impression they both come from the fact that guix doesn’t allow the
access to some libraries or binaries the julia packages expect to
find. Please correct me if I am wrong.

Has someone an idea how I could investigate what is going wrong ?


Kind Regards,

Théo


             reply	other threads:[~2021-11-02 23:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-02 22:55 Théo Maxime Tyburn [this message]
2021-11-03 10:06 ` Using julia in guix zimoun
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=878ry66ssq.fsf@gmail.com \
    --to=theo.tyburn@gmail.com \
    --cc=help-guix@gnu.org \
    /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).