-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: update() takes from 2 to 3 positional arguments but 4 were given #285
Comments
I have the same error. Just adding my session info in case it help with identifying the problem > implementation()
Module(keras)
> backend()$backend()
[1] "tensorflow"
> keras:::keras_version()
[1] ‘2.1.4’
> tensorflow::tf_config()
TensorFlow v1.5.0 (~/.virtualenvs/r-tensorflow/lib/python2.7/site-packages/keras)
Python v2.7 (~/.virtualenvs/r-tensorflow/bin/python)
> devtools::session_info()
Session info ----------------------------------------------------------------------------------------
setting value
version R version 3.4.3 (2017-11-30)
system x86_64, darwin15.6.0
ui RStudio (1.1.383)
language (EN)
collate en_US.UTF-8
tz Europe/Copenhagen
date 2018-02-14
Packages --------------------------------------------------------------------------------------------
package * version date source
base * 3.4.3 2017-12-07 local
base64enc 0.1-3 2015-07-28 CRAN (R 3.4.0)
compiler 3.4.3 2017-12-07 local
datasets * 3.4.3 2017-12-07 local
devtools 1.13.4 2017-11-09 CRAN (R 3.4.2)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
graphics * 3.4.3 2017-12-07 local
grDevices * 3.4.3 2017-12-07 local
jsonlite 1.5 2017-06-01 CRAN (R 3.4.0)
keras * 2.1.3 2018-01-17 CRAN (R 3.4.3)
magrittr 1.5 2014-11-22 CRAN (R 3.4.0)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.0)
methods * 3.4.3 2017-12-07 local
R6 2.2.2 2017-06-17 CRAN (R 3.4.0)
Rcpp 0.12.15 2018-01-20 CRAN (R 3.4.3)
reticulate 1.4.0.9001 2018-02-14 Github (rstudio/reticulate@e49861a)
stats * 3.4.3 2017-12-07 local
tensorflow 1.5 2018-01-17 CRAN (R 3.4.3)
tfruns 1.2 2018-01-18 CRAN (R 3.4.3)
tools 3.4.3 2017-12-07 local
utils * 3.4.3 2017-12-07 local
whisker 0.3-2 2013-04-28 CRAN (R 3.4.0)
withr 2.1.1.9000 2018-01-04 Github (jimhester/withr@df18523)
yaml 2.1.16 2017-12-12 CRAN (R 3.4.3)
zeallot 0.1.0 2018-01-28 CRAN (R 3.4.3) |
@thomasp85
|
Yes, I think this is a Keras 2.1.4 (which was just released 12 hours ago!) issue. I will resolve it ASAP. |
Fixed via #285 |
Just bought the new book "Deep Learning with R". Getting this same error when working through the first imdb example:
Mac OS 10.13.3 |
This is an error introduced in Keras 2.1.4. You can install the latest version of Keras for R from GitHub to overcome the error: devtools::install_github("rstudio/keras") |
Thanks. I'm using 2.1.3 though?
The book is nice so far though! Uninstalling |
2.1.4 of the core Keras library installed via install_keras
Restart your R session then try installing from GitHub again
…On Thu, Feb 22, 2018 at 4:36 PM Ryan Johnson ***@***.***> wrote:
Thanks. I'm using 2.1.3 though?
Installing via devtools yields:
Error: package or namespace load failed for ‘keras’ in get(Info[i, 1], envir = env):
lazy-load database '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/tfruns/R/tfruns.rdb' is corrupt
Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
The books is nice so far though!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#285 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAGXx-8HXl3GnkSJzRzeD6qPBl_OVvAFks5tXd3sgaJpZM4SFER7>
.
|
text.delete(0,0,tkinter.END) TypeError: delete() takes from 2 to 3 positional arguments but 4 were given |
When I run the
conv_lstm.R
example, I get the following error:When I try to run my own code, I also bump into this error. Is there something wrong with my Keras installation, or is it a bug?
The text was updated successfully, but these errors were encountered: