Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

boto3 import error #288

Closed
1 task done
zzstoatzz opened this issue Jun 22, 2023 · 2 comments
Closed
1 task done

boto3 import error #288

zzstoatzz opened this issue Jun 22, 2023 · 2 comments
Assignees

Comments

@zzstoatzz
Copy link
Contributor

zzstoatzz commented Jun 22, 2023

encountering an import error when trying to define an AwsCredentials block programmatically:

from prefect_aws import AwsCredentials

Expectation / Proposal

Traceback / Example

Traceback (most recent call last):
  File "ecs_block.py", line 8, in <module>
    from prefect_aws import AwsCredentials
  File "/home/a_user/prefect_2_repo/prefect_2_venv/lib/python3.8/site-packages/prefect_aws/__init__.py", line 2, in <module>
    from .credentials import AwsCredentials, MinIOCredentials
  File "/home/a_user/prefect_2_repo/prefect_2_venv/lib/python3.8/site-packages/prefect_aws/credentials.py", line 6, in <module>
    import boto3
  File "/home/a_user/prefect_2_repo/prefect_2_venv/lib/python3.8/site-packages/boto3/__init__.py", line 17, in <module>
    from boto3.session import Session
  File "/home/a_user/prefect_2_repo/prefect_2_venv/lib/python3.8/site-packages/boto3/session.py", line 25, in <module>
    from .resources.factory import ResourceFactory
  File "/home/a_user/prefect_2_repo/prefect_2_venv/lib/python3.8/site-packages/boto3/resources/factory.py", line 17, in <module>
    from ..docs import docstring
  File "/home/a_user/prefect_2_repo/prefect_2_venv/lib/python3.8/site-packages/boto3/docs/__init__.py", line 15, in <module>
    from botocore.docs import DEPRECATED_SERVICE_NAMES
ImportError: cannot import name 'DEPRECATED_SERVICE_NAMES' from 'botocore.docs' (/home/a_user/prefect_2_repo/prefect_2_venv/lib/python3.8/site-packages/botocore/docs/__init__.py)
@zzstoatzz zzstoatzz self-assigned this Jun 22, 2023
@desertaxle
Copy link
Member

@zzstoatzz can you share the output of pip freeze for the virtual environment where you're getting this error?

@zzstoatzz
Copy link
Contributor Author

I no longer see this error when using AwsCredentials - closing issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants