Does anyone know how to activate verbose logging with reticulate package in R? I am trying to load my Python package into R with the following code:
version <- "3.7.9"
reticulate::install_python(version = version)
reticulate::virtualenv_create("newssentiment-environment", version = version, packages = "NewsSentiment")
reticulate::use_virtualenv("newssentiment-environment")
NewsSentiment_p <<- reticulate::import("NewsSentiment", delay_load = TRUE)
tsc <<- NewsSentiment_p$TargetSentimentClassifier()
I have loaded the python environment into pycharm, and here the package installation has worked. Therefore, I am trying to see where the error in Rstudio lies. The installation of the package seems to work, I can see that all the package data is downloaded.
Running the code with debugg, shows the error message:
Error in py_module_import(module, convert = convert) : SystemExit: 1
I get the error message on my Windows computer, but the same code has worked on Ubuntu computers.
source https://stackoverflow.com/questions/71117227/activate-verbose-logging-with-reticulate-package
Comments
Post a Comment