botor icon indicating copy to clipboard operation
botor copied to clipboard

AttributeError: module 'botocore' has no attribute 'config'

Open jburos opened this issue 7 months ago • 2 comments
trafficstars

Seeing a new error in botor upon switching my virtual env.

Error in `py_get_attr()` at reticulate/R/python.R:523:3:
! AttributeError: module 'botocore' has no attribute 'config'

Noting here for future reference.

Relevant debug lines:

 13.     └─botor::s3() at botor/R/s3.R:276:5
 14.       ├─botor::botor_client("s3", type = "resource", config = botocore$config$Config(signature_version = if (isTRUE(disable_signing)) botocore$UNSIGNED else "s3v4")) at botor/R/s3.R:9:5
 15.       ├─botocore$config at botor/R/s3.R:9:5
 16.       └─reticulate:::`$.python.builtin.module`(botocore, "config") at botor/R/s3.R:9:5
 17.         └─reticulate::py_get_attr(x, name, FALSE) at reticulate/R/python.R:523:3

With the following versions:

botocore==1.37.30
Python 3.10.16

Switching back to python 3.11.11 and botocore==1.37.24 fixed the issue.

jburos avatar Apr 09 '25 18:04 jburos

Thanks for this report -- seems to be an issue with lazy loading the config submodule in recent versions .. I'm looking into it.

daroczig avatar Apr 09 '25 21:04 daroczig

Actually, I was not able to reproduce locally :(

Could you please post your R sessionInfo()? Also, could you please run the below minimal repro?

library(reticulate)
botocore <- import("botocore")
botocore$config$Config

daroczig avatar Apr 09 '25 22:04 daroczig

Thanks for getting back on this, and sorry I missed your reply and this environment is no longer accessible. I will post back with my session info if it resurfaces.

jburos avatar Jul 19 '25 21:07 jburos