Open reszelaz opened 5 years ago
The problem is caused by:
from pint import UnitRegistry
UR = UnitRegistry()
in taurus.core.units module
The problem can be simplified importing just pint
I don't know why, but in my machine debain9 I cannot reproduce the problem with python3 and PyTango version 9.2.5. The print 'delete_device' appears correctly.
However in python2 and PyTango version 9.2.0 the print is not there; the delete_device method is not called in python2 in my case.
Now, I reproduce the problem in my stretch machine with both Py2 and Py3.
I can not reproduce the error with the taurus Py3 conda env. (using tango 9.3.1
)
Pint is 0.9
version in all case.
Not sure if this is a problem in Taurus or PyTango. But if I import taurus in PyTango DS this causes that the
delete_device
method is not called at the DS shutdown. This does not happen with python 2 but happens with python 3.To reproduce:
PyDsExp.py
file:Define PyDsExp DS instance with one device:
On Debian
tango_admin
is installed in/usr/lib/tango
.Run DS:
After the DS is ready press Ctrl + C.
Then, you won't observe "delete_device" print. When you run it with python 2 you can see it.