drivendataorg / cloudpathlib

Python pathlib-style classes for cloud storage services such as Amazon S3, Azure Blob Storage, and Google Cloud Storage.
https://cloudpathlib.drivendata.org
MIT License
478 stars 62 forks source link

Missing dependency message does not appear when it should #441

Open d33bs opened 5 months ago

d33bs commented 5 months ago

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

pjbull commented 5 months ago

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.

d33bs commented 5 months ago

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