cloudpathlib icon indicating copy to clipboard operation
cloudpathlib copied to clipboard

Missing dependency message does not appear when it should

Open d33bs opened this issue 1 year ago • 2 comments

Thanks for the great work on cloudpathlib! I noticed a bug in the documentation for using no_sign_request=True found here. When I attempt to use the example code, an error shows: NameError: name 'Session' is not defined. Here's an example reproducing the error: https://gist.github.com/d33bs/eb19f864baae89757e0e0969611cf1af

d33bs avatar Jun 13 '24 16:06 d33bs

Do you have boto3 and botocore installed as well and can you provide the version? They should get installed when you do pip install "cloudpathlib[s3]".

You should get a more helpful error if you are missing the SDK for a particular cloud provider, but based on your example, I think that is what may be happening.

pjbull avatar Jun 13 '24 16:06 pjbull

Thanks @pjbull ! This ended up being the issue - after reinstalling with "cloudpathlib[s3]" things worked! Thanks for the prompt reply to this.

d33bs avatar Jun 13 '24 16:06 d33bs