-
Notifications
You must be signed in to change notification settings - Fork 333
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 by using reticulate::install_miniconda() #1312
Comments
Thanks; I'm seeing the same thing as well. Presumedly something changed in the Miniconda installer for Windows that is causing this issue; I'll take a quick look. |
It seems like something must've changed in the Miniconda installer; it seems like something is going wrong with our attempt to run a silent / non-interactive installation. Line 206 in a1d7f7f
@t-kalinowski, are you able to investigate? |
Thank you! |
This is listed as closed, but I received the exact same error just now trying URL 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe' Error: miniconda installation failed [exit code 2] RStudio |
@t-kalinowski can you check if something has changed in the latest version of the Miniconda installer? |
I can't reproduce the error, on Windows nor macOS:
|
Thanks -- @schwa021 we're going to need more information in order to understand why this isn't working on your machine. Can you please file a new issue with more details? |
I am having the same problem on Windows. I can see a window with a download progress bar advancing, and exactly after 60 sec the error is thrown. I believe that the error only occurs if the internet connection is too slow for the download to finish before the timeout. The error message includes : downloaded length 35387752 != reported length 84375104 which suggests that there is no sync between the download process and the rest of the install. And it also explains why the error cannot always be reproduced. |
Here the full error message:
Error in download.file(url, destfile = installer, mode = "wb") : |
@karstensuhre It seems your internet speed is limited, so it couldn't download the full installer before the default 60 second timeout. Try increasing the timeout properly |
Hi, I am set up with RStudio Server on Ubuntu 22.04 with WSL2. From 'rstudio/tensorflow#510' But after:
Error in download.file(url, destfile = installer, mode = "wb") : I then tried:
...And I am now out of ideas! |
Hi @sgkeith, are you able to install a venv instead of miniconda? reticulate::install_python()
reticulate::virtualenv_create(force=TRUE) |
Hello again, Thanks for getting back to me so quickly. Just now realising I hadn't done the whole hog... re-start R (F10)Then:remotes::install_github(sprintf("rstudio/%s", c("reticulate", "tensorflow", "keras"))) And try this again..reticulate::miniconda_uninstall() The above worked, so progressing with your other suggested commands, now I have: Restarting R session...library(tensorflow) Error in stop_no_virtualenv_starter(version = version, python = python) :
|
Can you follow the instructions in the error message?
|
Hi, Thank you. Yes, though the only method that worked for me was with WSL following: https://github.com/rstudio/python-builds/
I think my previous error was that I hadn't added Python to PATH. I am now having a recurring problem. Miniconda installs OK but keras / keras3::install_keras().
All the code (sorry!)
|
Thanks for reporting! I suspect this is an issue with Windows. Unfortunately, I don't have easy access to a Windows machine at the moment to reproduce. Some comments and troubleshooting steps:
This is good, but the first troubleshooting step would be to verify that Python installation at reticulate::install_python("3.10", force = TRUE) If there are issues, you can try changing which python is used by keras3::install_keras(python_version = "/usr/bin/python3") |
Hi, This is my output after re-installing python as you suggest:
|
...And now,
|
Hi, To solve the above issues with libffi, libsqlite3 and _tkinter, I then ran this code in WSL2:
(sudo apt-get install python3-tk did no solve the _tkinter issue) In rstudio-server, I then ran just:
Success! Thank you. |
when i try to install the miniconda via reticulate::install_miniconda() the following error always pops up:
more detailed information:
the same error was reproduced with using another pc.
The text was updated successfully, but these errors were encountered: