BitMEX/sample-market-maker

Error msg: Scripts\marketmaker....No such file or directory

grantbelford opened this issue · 5 comments

Hi all
Anybody come across this before?
I confirmed \Scripts\contains the marketmaker.exe file.

2019-08-30 16:32:45,596 - INFO - market_maker - Restarting the market maker...
(base) C:\Users\user>c:\users\user\anaconda3\python.exe: can't open file 'C:\Users\user\Anaconda3\Scripts\marketmaker': [Errno 2] No such file or directory

aa602 commented

Exactly same issue. After making changes to the setting.py file bot exit and try to restart with following error message

C:\Users\OP\AppData\Local\Programs\Python\Python37-32\python.exe: can't open file 'C:\Users\OP\BM\env\Scripts\marketmaker': [Errno 2] No such file or directory

Confirmed scripts contains the marketmaker file.

I have the same issue, the bot can't update/reload changes.

I had the same problem and finally solved it.
The problem is that 'exe' is missing.
Follow these steps

  1. Open C:\Users\xxxxx\Anaconda3\envs\tensorflow\Lib\site-packages\market_maker\market_maker.py

  2. Go to line #519

  3. Add a line like this
    exe=['C:/Users/xxxxx/Anaconda3/envs/tensorflow/Scripts/marketmaker.exe']

  4. Modify os.execv like below
    os.execv(sys.executable, [sys.executable] + exe)

Whole script of restart() is like this

def restart(self):
logger.info("Restarting the market maker...")
exe=['C:/Users/xxx/Anaconda3/envs/tensorflow/Scripts/marketmaker.exe']
os.execv(sys.executable, [sys.executable] + exe)

Ok thanks, since4satang, will try that.

Hello guys I hope this could help. I tried with since4satang recommendation but I kept having the same problem. I found it was because I had created my market_maker project in my Google Drive, Drive File Stream some times give back that kind of problems due to synchronizations. I like cloud syncs, so I copy market_maker project in my local MEGAsync and it is working well now. It makes all the reconnections when it is needed without any problems. Now I can test my own strategies