You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, trying the following configuration p4p crashes:
config.json:
{
"version": 2,
"clients":[
{
"name":"cam1",
"addrlist": "cam01.eli.svc",
"autoaddrlist":false
}
],
"servers": [
{
"name": "$name",
"clients": [], <--- I thought that could be more permissive. But it makes the p4p crash.
"addrlist": "",
"autoaddrlist": false,
"statusprefix": "GW:STS:"
}
]
}
Output:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.10/dist-packages/p4p/gw.py", line 815, in <module>
main()
File "/usr/local/lib/python3.10/dist-packages/p4p/gw.py", line 804, in main
app = App(args)
File "/usr/local/lib/python3.10/dist-packages/p4p/gw.py", line 672, in __init__
handler.asTestPV = SharedPV(nt=NTScalar('s'), initial="Only RPC supported.")
UnboundLocalError: local variable 'handler' referenced before assignment
The text was updated successfully, but these errors were encountered:
"clients": [], <--- I thought that could be more permissive. But it makes the p4p crash.
This has the opposite effect. When combined with "statusprefix", this should create a server which only provides gateway status PVs. I suppose a valid use case, although not one I have tested. Which, python being so dynamic, probably explains why it doesn't work.
Hello, trying the following configuration p4p crashes:
config.json:
Output:
The text was updated successfully, but these errors were encountered: