no module named '_bz2'
eogh303 opened this issue · comments
Hi, I was trying to running this bot, and then error appear... no module named '_bz2'
Can you print these two commands to ensure they are the proper versions?
ubuntu@ip-172-26-4-99:~$ python3.11 -V
Python 3.11.0
ubuntu@ip-172-26-4-99:~$ pip3.11 -V
pip 23.1.2 from /home/ubuntu/.local/lib/python3.11/site-packages/pip (python 3.11)
Also, are you using the main branch or are you testing the bot-multiexchange branch? If you have not already, check out the branch "bot-multiexchange" and follow the python3.11 installation instructions there and proceed using that branch if possible; it is recommended.
(https://github.com/donewiththedollar/directionalscalper/tree/bot-multiexchange)
thanks for all, I am trying to use the bot-multiexchange branch, but now i have the next error,
Strategy.init() missing 1 required positional argument: 'manager'
Looking into this, saw it yesterday but got distracted. Which exchange & strategy are you trying to load? By the error you have pasted, it does seem as if I could have missed something in one of the many strategies.
Try running it like this if it was Bybit for example
python3.11 bot.py --exchange bybit --symbol ARBUSDT --strategy bybit_hedge_dynamic_full --config config_bybit_sub1.json
and for bitget
python3.11 bot.py --exchange bitget --symbol ARBUSDT_UMCBL --strategy bitget_hedge_dynamic --config config.json
and for huobi
python3.11 bot.py --exchange huobi --strategy huobi_hedge --amount 1 --symbol SUIUSDT --config config_huobi_main.json
Where config_bybit_sub1.json
or however I have named mine, would just be your config file name in your configs folder which is located in the projects main directory.
Issue likely resolved, if there are still issues with imports please open another issue. This issue was from the now deleted bot-multiexchange branch and is likely resolved in the main branch.