Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boto3 1.21.32 requires botocore<1.25.0,>=1.24.32, but you have botocore 1.31.64 which is incompatible. #356

Closed
yitai000 opened this issue Nov 20, 2023 · 2 comments
Labels
needs: feedback requested We requested feedback from the reporter; if we don't hear back in X days the issue may be closed

Comments

@yitai000
Copy link

install result:
Installing collected packages: botocore, earthaccess
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
boto3 1.21.32 requires botocore<1.25.0,>=1.24.32, but you have botocore 1.31.64 which is incompatible.
Successfully installed botocore-1.31.64 earthaccess-0.7.0

there is an error when import earthaccess:

ModuleNotFoundError Traceback (most recent call last)
Input In [7], in <cell line: 1>()
----> 1 import earthaccess

File ~\AppData\Roaming\Python\Python39\site-packages\earthaccess_init_.py:6, in
3 from importlib.metadata import version
4 from typing import Any
----> 6 from .api import (
7 auth_environ,
8 collection_query,
9 download,
10 get_fsspec_https_session,
11 get_requests_https_session,
12 get_s3_credentials,
13 get_s3fs_session,
14 granule_query,
15 login,
16 open,
17 search_data,
18 search_datasets,
19 )
20 from .auth import Auth
21 from .search import DataCollections, DataGranules

File ~\AppData\Roaming\Python\Python39\site-packages\earthaccess\api.py:5, in
3 import earthaccess
4 import requests
----> 5 import s3fs
6 from fsspec import AbstractFileSystem
8 from .auth import Auth

File ~\AppData\Roaming\Python\Python39\site-packages\s3fs_init_.py:1, in
----> 1 from .core import S3FileSystem, S3File
2 from .mapping import S3Map
4 from ._version import get_versions

File ~\AppData\Roaming\Python\Python39\site-packages\s3fs\core.py:29, in
27 import aiobotocore
28 import botocore
---> 29 import aiobotocore.session
30 from aiobotocore.config import AioConfig
31 from botocore.exceptions import ClientError, HTTPClientError, ParamValidationError

File ~\AppData\Roaming\Python\Python39\site-packages\aiobotocore\session.py:12, in
3 from botocore.session import (
4 EVENT_ALIASES,
5 ServiceModel,
(...)
8 copy,
9 )
11 from . import retryhandler
---> 12 from .client import AioBaseClient, AioClientCreator
13 from .configprovider import AioSmartDefaultsConfigStoreFactory
14 from .credentials import AioCredentials, create_credential_resolver

File ~\AppData\Roaming\Python\Python39\site-packages\aiobotocore\client.py:10, in
1 from botocore.awsrequest import prepare_request_dict
2 from botocore.client import (
3 BaseClient,
4 ClientCreator,
(...)
8 resolve_checksum_context,
9 )
---> 10 from botocore.compress import maybe_compress_request
11 from botocore.discovery import block_endpoint_discovery_required_operations
12 from botocore.exceptions import OperationNotPageableError, UnknownServiceError

ModuleNotFoundError: No module named 'botocore.compress'

@MattF-NSIDC
Copy link

I'm not sure I understand the report. We don't directly depend on botocore, that comes in through the s3fs dependency, which we have pinned fairly loosely (s3fs = ">=2021.11, <2024").

boto3's newest release is 1.29.x, have you tried that?

@mfisher87 mfisher87 added the needs: feedback requested We requested feedback from the reporter; if we don't hear back in X days the issue may be closed label Nov 23, 2023
Copy link

github-actions bot commented Dec 1, 2023

Closing after 10 days of waiting for feedback. If you feel this was in error, please re-open, @ a maintainer, or create new issues.

@github-actions github-actions bot closed this as completed Dec 1, 2023
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in earthaccess project Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: feedback requested We requested feedback from the reporter; if we don't hear back in X days the issue may be closed
Projects
Status: Done
Development

No branches or pull requests

3 participants