Cannot import name 'SSOProvider' from 'botocore.credentials' in 0.50
See original GitHub issueWhat you expected to happen:
$ python
>>> import s3fs
>>>
What happened:
$ python
>>> import s3fs
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/site-packages/s3fs/__init__.py", line 1, in <module>
from .core import S3FileSystem, S3File
File "/usr/local/lib/python3.7/site-packages/s3fs/core.py", line 14, in <module>
import aiobotocore
File "/usr/local/lib/python3.7/site-packages/aiobotocore/__init__.py", line 1, in <module>
from .session import get_session, AioSession
File "/usr/local/lib/python3.7/site-packages/aiobotocore/session.py", line 11, in <module>
from .credentials import create_credential_resolver, AioCredentials
File "/usr/local/lib/python3.7/site-packages/aiobotocore/credentials.py", line 15, in <module>
from botocore.credentials import EnvProvider, Credentials, RefreshableCredentials, \
ImportError: cannot import name 'SSOProvider' from 'botocore.credentials' (/home/airflow/.local/lib/python3.7/site-packages/botocore/credentials.py)
Environment:
aiobotocore==1.1.0
boto3==1.12.26
botocore==1.15.26
s3fs==0.5.0
- Dask version: 0.5.0
- Python version: 3.7.7
- Operating System: Debian Buster
- Install method (conda, pip, source): pip
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Python import boto3 error: cannot import name ClientError
When it tries to import boto3 for the first time, Python gives error ImportError: cannot import name ClientError . If I try to...
Read more >ImportError: cannot import name 'BotocoreHTTPSession ...
I upgraded to 1.11.5 from 1.10.5, then i've got that error, it seems that Module was removed and i see nothing in the...
Read more >botocore.session — Runway v2.6.3
This module contains the main interface to the botocore package, the Session object. """ import copy import logging import os import platform import...
Read more >Source code for boto3.session - Amazon AWS
See the License for the specific # language governing permissions and limitations under the License. import copy import os import botocore.session from ...
Read more >botocore - PyPI
Other credentials configuration method can be found here. Then, from a Python interpreter: >>> import botocore.session >>> session ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am tempted to wait a little while to see if there is a quick fix to the aiobotocore issue.
It sounds like you can solve this by downgrading. I tested with aiobotocore 1.0.7 locally. v1.1.0 is less than a week old.