question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot import name 'SSOProvider' from 'botocore.credentials' in 0.50

See original GitHub issue

What 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
martindurantcommented, Aug 24, 2020

I am tempted to wait a little while to see if there is a quick fix to the aiobotocore issue.

1reaction
martindurantcommented, Aug 24, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found