salparadi / cream-bots

Bots for EVM chains, using CREAM.
MIT License
0 stars 1 forks source link

ModuleNotFoundError: No module named 'degenbot.exchanges' #1

Closed elier closed 3 months ago

elier commented 3 months ago

Got the error when running:

cream_bots sniper ethereum
...
File "cream-bots/src/cream_bots/app/core/exchange_service.py", line 5, in <module>
    from degenbot.exchanges.uniswap.dataclasses import ( ...
ModuleNotFoundError: No module named 'degenbot.exchanges'
from degenbot.exchanges.uniswap.dataclasses import (
    UniswapFactoryDeployment,
    UniswapRouterDeployment,
    UniswapTickLensDeployment,
    UniswapV2ExchangeDeployment,
    UniswapV3ExchangeDeployment,
)
from degenbot.exchanges.uniswap.deployments import (
    FACTORY_DEPLOYMENTS,
    ROUTER_DEPLOYMENTS,
    TICKLENS_DEPLOYMENTS,
)
from degenbot.exchanges.uniswap.register import (
    register_exchange,
    register_router,
)

I have tried previous versions of degenbot with no luck. Could you share more info about which degentbot package/version you were using or point to what I may be doing wrong? Thanks!

salparadi commented 3 months ago

Good question. degenbot must have changed file locations. I've been distracted from this for a bit so I'll try to get back in there, update degenbot and then fix the paths. I'll update when things are fixed!

salparadi commented 3 months ago

Actually try using the dex_refactoring branch... pretty sure that's the difference. Eventually that will be merged in I'm sure. Sorry for the terrible docs :)

elier commented 3 months ago

yeah, dex_refactoring branch is the right one. Thanks!