Closed prjemian closed 2 years ago
Looks like a byte string problem.
Also, the Moving
indicator is not changing and the All Stop
button is not responding. On the plus side, the pop-up menu works.
Not a byte string problem.
Tested for this by first converting all necessary MEDM files to PyDM and starting with only PyDM's .ui
files (ignoring any extra graphics files needed by some screens).
export PYDM_DISPLAYS_PATH=/tmp/screens/
mkdir ${PYDM_DISPLAYS_PATH}
adl2pydm -d ${PYDM_DISPLAYS_PATH} /tmp/docker_ioc/custom-synapps-6.2/screens/adl/*.adl
adl2pydm -d ${PYDM_DISPLAYS_PATH} /tmp/docker_ioc/iocgp/xxx-R6-2/xxxApp/op/adl/*.adl
pydm --hide-{nav,menu,status}-bar xxx.ui &
This is a problem in the PyDM application directly, in display.py
, line 57:
if target == ScreenTarget.NEW_PROCESS:
# Invoke PyDM to open a new process here.
app = QApplication.instance()
app.new_pydm_process(file, macros=macros, command_line_args=args)
return None
A new process is requested for the new screen. The code above bypasses the checks for .adl
file extension and the call to app.new_pydm_process(file,...
does not handle .adl
files. This is a bug in PyDM. PyDM is not fully prepared to handle only .adl
files with automatic internal conversion to .ui
.
Can close this issue as wontfix
here once an issue is filed with PyDM's issue tracker.
Propose some resolution in a PR to PyDM.
PR filed upstream, this issue can be closed now
Describe the bug
Receiving this exception when starting PyDM 1.11.1 today:
To Reproduce
Start docker xxx IOC on linux:
Copy
start_MEDM_gp
bash script tostart_PyDM_gp
and modify to read:Run
start_PyDM_gp
and see main screen:Click on any of the pop-up menu items and error (above) appears.
Expected behavior New screen should appear.