BowTiedDevil / degenbot

Python classes to aid rapid development of Uniswap V2 & V3, Curve V1, and Solidly V2 arbitrage bots on EVM-compatible blockchains
https://www.degencode.com
MIT License
442 stars 152 forks source link

Error: module 'degenbot' has no attribute 'UniswapV2Pool' #21

Open Aviksaikat opened 1 day ago

Aviksaikat commented 1 day ago

Hi, It would be nice if you could add some proper docs. I can help with this. For version 0.2.4 I'm getting AttributeError: module 'degenbot' has no attribute 'UniswapV2Pool'

Aviksaikat commented 1 day ago

Looks like the pip package is outdated.

BowTiedDevil commented 20 hours ago

The README here on GitHub is out of sync because it has edits for the upcoming 0.3.0 release, which makes some changes to class naming and organization.

If you need to see the 0.2.4 README, the version on PyPI is still aligned with the latest release.

If you want to work with the development branch, you can do a git clone to your local machine and do an editable pip install (pip -e /path/to/local/repo) which will reflect any code changes to that folder your environment.

Aviksaikat commented 8 hours ago

The README here on GitHub is out of sync because it has edits for the upcoming 0.3.0 release, which makes some changes to class naming and organization.

If you need to see the 0.2.4 README, the version on PyPI is still aligned with the latest release.

If you want to work with the development branch, you can do a git clone to your local machine and do an editable pip install (pip -e /path/to/local/repo) which will reflect any code changes to that folder your environment.

Or we can install directly from pip using tools like rye, hatch, pdm etc.