0

Attempting to run the following line of code:

data <- dataset_cifar100("fine")

results in:

Error: Exception: URL fetch failure on https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1131)

I've tried:

set_config( config( ssl.verifypeer = 0L ) )

and various other similar commands to no avail.

I've also tried manually downloading and loading the dataset from the binaries, but I'm running into trouble there as well, and I'd much prefer to do it the easier way.

L Tyrone
  • 1,268
  • 3
  • 15
  • 24
  • When I use `curl -vI https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz` on the CLI or `curlGetHeaders("https://www.cs.toronto.edu/~kriz/cifar-100-python.tar.gz",verify = TRUE)` in R I do see a valid certificate. – Ralf Stubner Apr 24 '23 at 08:59
  • Regardless, I'm still encountering this error. Did you try loading the dataset? – Daniel Watson Apr 24 '23 at 09:09
  • Yes, and executing `keras::dataset_cifar100("fine")` results in a successful download of that file. Which does not really surprise me given the TLS cert I am seeing. – Ralf Stubner Apr 24 '23 at 12:25
  • This might be an issue w/ conda. Are you keras through conda? If so, what version of reticulate are you on? Does installing the development version of reticulate fix the error? – t-kalinowski Apr 24 '23 at 13:29

0 Answers0