Closed jfergus73 closed 2 years ago
Hello Matt, I'm getting the same error on windows
I'll have to take a look when I have some free time.
Here is a solution from another student in the course:
Hello @Matt Dancho and @Juan Fergusson
I was having the same error but, I was able to run deepar with torch by creating a custom env like this
reticulate::py_install(
envname = "my_gluonts_torch_env",
python_version = "3.7",
packages = c(
"mxnet~=1.7",
"gluonts==0.8.0",
"pandas==1.0.5",
"numpy",
"ujson==4.0.2"
),
method = "conda",
pip = TRUE
)
torch_pkgs <- c(
"torch~=1.6",
"pytorch-lightning==1.5.0"
)
reticulate::py_install(
packages = torch_pkgs,
envname = "my_gluonts_torch_env",
method = "conda",
pip = TRUE
)
For me the problem was the default version of pytorch-lightning that install_gluonts() installs in my pc (pytorch-lightning 1.6.3) when I created the custom env with "pytorch-lightning==1.5.0" I was able to run the model.
I hope this works for you @Juan Fergusson
Hey Camilo muchas gracias, excelente!! Hey Matt, did what Camilo suggested and works just fine, thanks a lot …
Excellent!!
Hello Matt, i’ve been having this issue running “torch” in lab 60, I don't know what to do, I've uninstall gluonts, and reinstalled and still the error.