MaxIV-KitsControls / tango-facadedevice

Provide a descriptive interface for reactive high-level Tango devices -
http://tango-facadedevice.rtfd.io
GNU General Public License v3.0
4 stars 2 forks source link

Installed Facade timeout after Init command #7

Closed stanislaw55 closed 7 years ago

stanislaw55 commented 7 years ago

Hello, recently I've been working with facadedevice library. I've created sample Facade DS and installed it. I've used python setup.py install. After that, I've tried to use command Init but I received error message saying that my test device timed out. Then device stopped responding at all.

When device was started via Astor, whole DS couldn't be killed by Astor. I've had to do it manually with kill -9.

To investigate this issue, I've launched DS directly from my .py file and it was working fine, even Init.

MikeFalowski commented 7 years ago

It occurred, that there was an error in device code:

run = BooleanopFacade.run_server()

if __name__ == '__main__':
    run()

In this example server is being started during import, which causes later problems.

Changing to:

run = BooleanopFacade.run_server

if __name__ == '__main__':
    run()

solved the problem.

I think that issue can be closed.

vxgmichel commented 7 years ago

Ok thanks!