-
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
plot()
not finding graphviz on Windows if graphviz is installed system wide.
#1337
Comments
Is this problem resolved? |
I can only reproduce this in the RStudio IDE R console, I can't reproduce this in a terminal (in or out of the IDE). I don't think this is a reticulate or keras issue (at least, not directly). To reproduce locally:
Gives output in the IDE:
but both these succeed in terminal:
expected output:
|
@kevinushey do you have any guesses about why the code in the IDE might return that error? |
Making sure the graphviz is on the PATH in the IDE doesn't fix the issue. i.e., downloading from https://www.graphviz.org/download/ and then running: PATH <- Sys.getenv("PATH")
PATH <- paste0(c(
r"(C:\Users\kalin\Documents\windows_10_msbuild_Release_graphviz-7.1.0-win32\Graphviz\bin)",
PATH),
collapse = .Platform$path.sep)
Sys.setenv(PATH = PATH)
library(reticulate)
py_run_string("import pydot; d = pydot.Dot(); d.create()") |
This might be related: |
Yes, you are most likely right. In my case the issue occurs in RStudio IDE. I ran this code in another IDE (VSC) and it works OK. So this is certainly a bug in RStudio. |
Fixed on main now. |
For some reason utils.py hasn`t included in keras 2.11.1 Windows binaries on CRAN. So after library updating this issue... occurs again. |
Hi @ggeeoorrgg, this fix for this isn't on CRAN yet. It should go out in the next 2 weeks or so. For now you can install the development version of keras: remotes::install_github("rstudio/keras") |
First reported in Manning book discussion forum by George Fox.
The text was updated successfully, but these errors were encountered: