-
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
Error in py_call_impl(callable, call_args$unnamed, call_args$named) : OverflowError: Python int too large to convert to C long #1496
Comments
Hi, thanks for reporting. What version of TF and keras? How were the python packages installed? Does the error happen if you install the development version of keras3 and reticulate, and set |
I just reinstalled as instructed here keras 2.15.0 Installed by:
And got (the same with
When I run
Hope you can help! |
Those error messages suggest that multiple python installations are loaded in the same R session, which is invalid. Try this:
remotes::install_github(c("rstudio/reticulate", "rstudio/keras3", "rstudio/tensorflow"), force = TRUE) If there were errors, try to fix or ask for help. If there were no errors Sys.setenv("RETICULATE_PYTHON"="managed")
library(keras3)
op_convert_to_tensor("Hello World!") If the above succeeds, then try to run the mnist script. |
All the above succeeded until I ran the mnist script and got the same error:
|
That's coming from the RStudio IDE. What version of RStudio? Is it the latest RStudio? |
Hi,
I was running the code for training the MNIST dataset and got an error. Below is my code and the error:
I got:
How to fix this problem? Thanks.
The text was updated successfully, but these errors were encountered: