fetchai / agents-aea

A framework for autonomous economic agent (AEA) development
https://docs.fetch.ai/aea/
Apache License 2.0
203 stars 62 forks source link

Fixed web3 dependency for aea-ledger-ethereum. #2828

Closed mariacarmina closed 1 year ago

mariacarmina commented 1 year ago

Proposed changes

Updated version range for web3 in aea-ledger-ethereum plugin.

Issues

Links to any issues resolved.

Types of changes

What types of changes does your code introduce to agents-aea? Put an x in the boxes that apply

Checklist

Put an x in the boxes that apply.

If applicable

Further comments

Output of dependency conflict:

[pipenv.exceptions.InstallError]: The conflict is caused by:
[pipenv.exceptions.InstallError]:     aea-ledger-ethereum 1.1.1 depends on web3<6.0.0 and >=5.31.0
[pipenv.exceptions.InstallError]:     eth-brownie 1.19.1 depends on web3==5.30.0
mariacarmina commented 1 year ago

I think this fix should be included in pyproject.toml as well in order to avaoid further dependency conflict (https://github.com/fetchai/agents-aea/blob/main/pyproject.toml#L101). What do you think @5A11?

5A11 commented 1 year ago

I think this fix should be included in pyproject.toml as well in order to avaoid further dependency conflict (https://github.com/fetchai/agents-aea/blob/main/pyproject.toml#L101). What do you think @5A11?

Yep. Running CI.

5A11 commented 1 year ago

@mariacarmina The new deps range fails on tests and is not backwards compatible. Need to either fix the tests (test_session_cache()) in the PR (add backwards compatibility to the aea-ledger-ethereum plugin for web3 5.30.0) or maybe look into upgrading what you are using that needs this older version of web3py.

mariacarmina commented 1 year ago

@mariacarmina The new deps range fails on tests and is not backwards compatible. Need to either fix the tests (test_session_cache()) in the PR (add backwards compatibility to the aea-ledger-ethereum plugin for web3 5.30.0) or maybe look into upgrading what you are using that needs this older version of web3py.

I think I needed to update the web3 only the setup.py from aea-ledger-ethereum

mariacarmina commented 1 year ago

Resolved the dependency issue updating ocean-lib. Thanks, will close this.