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

Compatibility issue - python version and aiohttp #589

Closed
GeoFelpave opened this issue Nov 14, 2023 · 1 comment
Closed

Compatibility issue - python version and aiohttp #589

GeoFelpave opened this issue Nov 14, 2023 · 1 comment

Comments

@GeoFelpave
Copy link

GeoFelpave commented Nov 14, 2023

Expected behaviour

When adding odc-apps-dc-tools-0.2.14 there is an issue with aiohttp if the version of python is greater than 3.10. The main reason for this is that aiohttp for python >3.10 is currently in beta as per info here: aio-libs/aiohttp#7675 which means that odc-apps-dc-tools-0.2.14 does not install as expected

Actual behaviour

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aiohttp
Failed to build aiohttp
ERROR: Could not build wheels for aiohttp, which is required to install pyproject.toml-based projects

Steps to reproduce the behaviour

mamba env create -f conda-environment.yml
pip install odc-apps-dc-tools

Environment information

As per the .yml file here: https://github.com/opendatacube/datacube-core/blob/develop/conda-environment.yml

@SpacemanPaul
Copy link
Contributor

SpacemanPaul commented Nov 15, 2023

We would be very reluctant to pin a maximum Python version because of an upstream library issue (especially if a fix to said issue is expected imminently).

Suggested workarounds:

  1. The conda-environment.yml file in core is intended as an example, to be edited according to your needs. You could make a copy of this environment file and edit to read e.g. - python ==3.10

  2. OR as @omad pointed out in your core issue, the following runs without error and results a Python3.11 environment with the latest releases of datacube, odc-apps-dc-tools and aiohttp:

mamba create -n newenv python=3.11 odc-apps-dc-tools 
mamba activate newenv
pip install --upgrade odc-apps-dc-tools

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

No branches or pull requests

2 participants