From: Simon Tournier <zimon.toutoune@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: help-guix@gnu.org, QUENTIN Samuel <samuel.quentin@aphp.fr>
Subject: Re: how to use r-keras?
Date: Mon, 06 May 2024 19:11:21 +0200 [thread overview]
Message-ID: <87edaeq30m.fsf@gmail.com> (raw)
In-Reply-To: <87jzlkaa7p.fsf@elephly.net>
Hi Ricardo,
On sam., 30 mars 2024 at 00:27, Ricardo Wurmus <rekado@elephly.net> wrote:
>> $ guix shell r r-keras -C python-minimal r-reticulate tensorflow
>
> Is this with tensorflow from guix-science? The old Tensorflow 1.9 in
> Guix does not provide Keras. Only the more recent one in Guix Science
> does.
Using Guix 929ddec, it fails as reported previously; using
tensorflow@1.9.0. Let try with tensorflow@2.13.1.
Well, although I have guix.bordeaux.inria.fr as substitutes, I had to
rebuild tensorflow. Ouch!
Then I get this:
--8<---------------cut here---------------start------------->8---
$ guix time-machine -C channels.scm -- shell -C r r-keras -C python-minimal r-reticulate tensorflow@2.13.1
simon@lili /tmp [env]$ R
R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(keras)
> model <- keras_model_sequential()
Would you like to create a default python environment for the reticulate package? (Yes/no/cancel) no
Error: Valid installation of TensorFlow not found.
Python environments searched for 'tensorflow' package:
/gnu/store/66ncidnhpj2djnik3g6iljzr30k056cy-python-minimal-3.10.7/bin/python3.10
Python exception encountered:
Traceback (most recent call last):
File "/gnu/store/sd979h0ckv6fnmwqvlypq91w49q9521k-r-reticulate-1.35.0/site-library/reticulate/python/rpytools/loader.py", line 119, in _find_and_load_hook
return _run_hook(name, _hook)
File "/gnu/store/sd979h0ckv6fnmwqvlypq91w49q9521k-r-reticulate-1.35.0/site-library/reticulate/python/rpytools/loader.py", line 93, in _run_hook
module = hook()
File "/gnu/store/sd979h0ckv6fnmwqvlypq91w49q9521k-r-reticulate-1.35.0/site-library/reticulate/python/rpytools/loader.py", line 117, in _hook
return _find_and_load(name, import_)
ModuleNotFoundError: No module named 'tensorflow'
You can install TensorFlow using the install_tensorflow() function.
--8<---------------cut here---------------end--------------->8---
And I guess that’s not better. :-)
Hum, working with Keras needs more love…
Cheers,
simon
next prev parent reply other threads:[~2024-05-07 18:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 14:28 how to use r-keras? Simon Tournier
2024-03-29 23:27 ` Ricardo Wurmus
2024-05-06 17:11 ` Simon Tournier [this message]
2024-05-08 10:11 ` Ricardo Wurmus
2024-05-08 12:34 ` Simon Tournier
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=87edaeq30m.fsf@gmail.com \
--to=zimon.toutoune@gmail.com \
--cc=help-guix@gnu.org \
--cc=rekado@elephly.net \
--cc=samuel.quentin@aphp.fr \
/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).