Open brettviren opened 3 years ago
My grep had a typo.
(dbt-pyvenv) (sing)bv@haiku:top> grep -r trg_gen build/
Binary file build/minidaqapp/python/minidaqapp/nanorc/__pycache__/mdapp_gen.cpython-38.pyc matches
build/minidaqapp/python/minidaqapp/nanorc/mdapp_gen.py: from . import trg_gen
build/minidaqapp/python/minidaqapp/nanorc/mdapp_gen.py: cmd_data_trg = trg_gen.generate(
But, I still need guidance as to what provides trg_gen
.
This may be an issue with the build system. Very mysteriously:
(dbt-pyvenv) (sing)bv@haiku:top> grep -r trg_gen sourcecode/minidaqapp/
(dbt-pyvenv) (sing)bv@haiku:top> grep -r trg_gen install/minidaqapp/
install/minidaqapp/lib64/python/minidaqapp/nanorc/mdapp_gen.py: from . import trg_gen
install/minidaqapp/lib64/python/minidaqapp/nanorc/mdapp_gen.py: cmd_data_trg = trg_gen.generate(
(dbt-pyvenv) (sing)bv@haiku:top> dbt-build.sh --install
...
-- Up-to-date: /home/bv/work/dune-daq/try2/top/install/minidaqapp/lib64/python/minidaqapp/nanorc/mdapp_gen.py
(dbt-pyvenv) (sing)bv@haiku:top> grep trg_gen /home/bv/work/dune-daq/try2/top/install/minidaqapp/lib64/python/minidaqapp/nanorc/mdapp_gen.py
from . import trg_gen
cmd_data_trg = trg_gen.generate(
(dbt-pyvenv) (sing)bv@haiku:top> rm /home/bv/work/dune-daq/try2/top/install/minidaqapp/lib64/python/minidaqapp/nanorc/mdapp_gen.py
(dbt-pyvenv) (sing)bv@haiku:top> dbt-build.sh --install
...
-- Installing: /home/bv/work/dune-daq/try2/top/install/minidaqapp/lib64/python/minidaqapp/nanorc/mdapp_gen.py
(dbt-pyvenv) (sing)bv@haiku:top> grep trg_gen /home/bv/work/dune-daq/try2/top/install/minidaqapp/lib64/python/minidaqapp/nanorc/mdapp_gen.py
from . import trg_gen
cmd_data_trg = trg_gen.generate(
(dbt-pyvenv) (sing)bv@haiku:top> grep -r trg_gen sourcecode/minidaqapp/
The principle of least surprise is maximally violated.
Hi @brettviren,
The generator module is part of minidaqapp
. Let me transfer the issue there.
What minidaqapp
version are you using?
Looks like trg_gen
was renamed trigger_gen
but mdapp_gen
was not updated.
@bieryAtFnal Any insight?
My bad. Updating mdapp_gen.py got onto my to-do list, but I haven't made it back to that yet. Part of the reason for my lack of urgency is that I think that folks are tending to use mdapp_multiru_gen.py. Also, I wondered whether we wanted to update the list of supported mdapp system configurations... I'll dust off my notes to remind myself what is needed in mdapp_gen.py...
I followed the official documentation and took the command from the nanorc docs. dunedaq-v2.5.0
I'm going to nuke my area and restart following Kurt's wiki instructions for 2.6.0 as suggested by Phil on slack. I think a link to the latest-greatest setup guide should be the very first line in dune-daq/docs/README.
I personally don't care about mdapp_gen.py
per se so no need to revisit this on my account. I'm just trying to get something/anything to work so I can start to understand the implications for the config web UI.
I'll need to confer with others to see whether trg_gen should be replaced by trigger_gen and hsi_gen, so changes to mdapp_gen.py will take a little while.
Brett, sorry for the trouble. mdapp_multiru_gen.py is fairly well tested, so I'm hopeful that it works for you with no issues.
I'm trying to follow
https://dune-daq-sw.readthedocs.io/en/latest/packages/nanorc/
Using daq-buildtools dunedaq-v2.5.0 and
nanorc master HEAD
e2b94dd9bb3dfab857057075cbcb0c6e990141bc I get this error.A brute force shot in the dark:
Comes up empty.
To get this far I had to go through a long sequence of trial and error with either the nanorc command above or
dbt-build.sh --install
in order to discover what DUNE-DAQ packages were missing. Here is what that resulted in:With that in place, this following runs with no errors.
So, what provides
trg_gen
?