-
Notifications
You must be signed in to change notification settings - Fork 283
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
Evaluation error: ModuleNotFoundError: No module named 'rpytools' #561
Comments
Hi, what OS do you have? This is something that seems to occur on (some) Windows machines (sometimes) ... |
Hi, Thanks for the feedback. I am using Windows 10 machine. Will give it a try on Python 3.6 and see if it makes a difference. Thanks again. |
Hi, I have just tried Python 3.6.5 (Anaconda3 5.2.0 64-bit) but still observing the same rpytools error as shown below.
I notice that while running install_keras(), there are two SafetyError messages generated as printed below. Could these SafetyErrors be the source of the issue? SafetyError: The package for setuptools located at C:\Users\userid\AppData\Local\conda\conda\pkgs\setuptools-40.4.3-py36_0 SafetyError: The package for wheel located at C:\Users\userid\AppData\Local\conda\conda\pkgs\wheel-0.32.0-py36_0 Anyway, I have printed out all the messages generated while running the install_keras() for ease of debug if it is helpful as below. Appreciate your help in this and let me know if there are any other things that you may need.
==> WARNING: A newer version of conda exists. <== Please update conda by running
Package Planenvironment location: C:\Users\userid\AppData\Local\CONTIN added / updated specs: The following NEW packages will be INSTALLED:
Preparing transaction: ...working... done SafetyError: The package for wheel located at C:\Users\userid\AppData\Local\conda\conda\pkgs\wheel-0.32.0-py36_0 done To activate this environment, use:> activate r-tensorflowTo deactivate an active environment, use:> deactivate* for power-users using bash, you must sourceSolving environment: ...working... done ==> WARNING: A newer version of conda exists. <== Please update conda by running
Package Planenvironment location: C:\Users\userid\AppData\Local\CONTIN added / updated specs: The following packages will be downloaded:
The following NEW packages will be INSTALLED:
The following packages will be UPDATED:
The following packages will be DOWNGRADED:
Downloading and Extracting Packages Installation complete. Restarting R session... |
does E.g.,
|
ya, reticulate seems to work. I tried running the 3 lines above and no error shows up. |
@davidkeras , can you please wrap the script output in blocks separated with three backticks, so it's easier to read the output? like this:
and
This will then render properly, e.g: sessionInfo() This will make it substantially easier to read your error report. |
Also reported at:
On this last issue (#127), a user reports a fix:
There is also an open StackOverflow question at ModuleNotFoundError: No module named 'rpytools' while using reticulate library |
Hi,
I encountered an "ModuleNotFoundError: No module named 'rpytools'" evaluation error when trying to run Keras in R. I have Python 3.7.0 (Anaconda3 5.3.0 64-bit), R version 3.5.1 and RStudio Desktop installed.
To install Keras in R, I have executed the following three lines of R codes.
install.packages("keras")
library(keras)
install_keras()
And after trying to access keras_model_sequential(), I am seeing the "No module named 'rpytools'" error as printed below:
Interestingly however, if I rerun the keras_model_sequential() again and assign it to model2, it does not display any error, however calling the summary(model2) function then invokes the following same rpytools error again as printed below:
Appreciate if someone could shed some light on this issue. Thanks in advance for any help you can offer.
The text was updated successfully, but these errors were encountered: