ranaroussi / qtpylib

QTPyLib, Pythonic Algorithmic Trading
http://qtpylib.io
Apache License 2.0
2.13k stars 508 forks source link

[BUG]qtpylib.blotter: Blotter is already running #156

Open ch01ca opened 4 years ago

ch01ca commented 4 years ago

after stop blotter by using sudo service qtpylib-blotter stop

it still shows qtpylib.blotter: Blotter is already running

htpeter commented 3 years ago

Faced with similar issue, I was unable to find a way to discover and terminate the offending background process causing this block. I ultimately had to restart my machine to clear up whatever was blocking the blotter process. After restarting the machine, blotter was then able to start up and I no longer experienced the hanging process.

If someone with more experience on how to find and terminate hanging Linux processes reads this, a better process would be appreciated since I am still actively running into this (I tried ps -au but did not find anything relevant)

bpostman commented 3 years ago

I am trying to go through the quckstart guide and am getting this error when trying to run python blotter.py. I am running with Debian in WSL2, and have restarted my WSL and my computer as a whole, neither have worked.

bpostman commented 3 years ago

This will probably have all kinds of unintended consequences, but I added this: sys.argv[0] = 'abcd' and it prevents the blotter from detecting another instance running