tango-controls/pytango

Problem with HLAPI v 9.3.1 pytango

Closed this issue · 4 comments

Val7 commented

Hello! I tried examples (powersupply and clock) for High level server API, and have such type of mistake (on picture). I have 9.3.1 version of pytango, python 3.7.1, I also tried for python 3.4. Also, device servers with low level API work good.
2019-12-24_14-42-28
2019-12-24_14-50-04

Hi @Val7.

I'm not sure what the problem is - maybe it is related to your environment. Here are a few commands that might help us.

  1. What is the output of this command:
python -c "import tango; print(tango.utils.info())"
  1. Does this work (running without using a TANGO database)? Execute it in the folder that contains PowerSupply.py:
python -m tango.test_context PowerSupply.PowerSupply

Your screen shots don't show all the code, but I assume you are using the code from here: https://pytango.readthedocs.io/en/v9.3.1/howto.html#write-a-server.

I tried it with a docker image, and it works fine.

$ docker run -it --rm -v ~/tango-src/tmp/PowerSupply:/app/PowerSupply tangocs/tango-pytango /bin/bash
tango@aecce8cf7971:/app$ python -c "import tango; print(tango.utils.info())"
PyTango 9.3.1 (9, 3, 1)
PyTango compiled with:
    Python : 3.7.3
    Numpy  : 1.17.2
    Tango  : 9.3.3
    Boost  : 1.67.0

PyTango runtime is:
    Python : 3.7.3
    Numpy  : 1.17.2
    Tango  : 9.3.3
    Boost  : 0.0.0

PyTango running on:
uname_result(system='Linux', node='aecce8cf7971', release='4.9.125-linuxkit', version='#1 SMP Fri Sep 7 08:20:28 UTC 2018', machine='x86_64', processor='')

tango@aecce8cf7971:/app$ cd PowerSupply/
tango@aecce8cf7971:/app/PowerSupply$ ls -l
total 4
-rw-r--r-- 1 tango tango 1646 Jan  4 19:28 PowerSupply.py
tango@aecce8cf7971:/app/PowerSupply$ python -m tango.test_context PowerSupply.PowerSupply
Can't create notifd event supplier. Notifd event not available
port property NOT found in database
Ready to accept request
PowerSupply started on port 8888 with properties {}
Device access: tango://172.17.0.2:8888/test/nodb/powersupply#dbase=no
Server access: tango://172.17.0.2:8888/dserver/PowerSupply/powersupply#dbase=no
^C
tango@aecce8cf7971:/app/PowerSupply$ exit
Val7 commented

First command:
2020-01-13_18-53-50
Second command:
image

@Val7

For the first command, I see there is a numpy warning and the compiled version is 0.0.0. Did you compile PyTango from source yourself or install the Windows wheel from PyPI?

The second command should also be run in the conda environment, where you have PyTango installed. So the same place as the first command.

No activity on this issue, so closing it.