Actions
Bug #7724
closedMentat-controller raises Exception when name is specified
Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - Tools
Target version:
Start date:
04/09/2024
Due date:
% Done:
0%
Estimated time:
To be discussed:
Yes
Description
mentat-controller.py --command status --name mentat-inspector.py
Traceback (most recent call last):
File "/usr/local/bin/mentat-controller.py", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/mentat-ng/bin/mentat-controller.py", line 50, in <module>
MentatControllerScript().run()
File "/usr/local/lib/python3.10/dist-packages/pyzenkit/baseapp.py", line 1554, in run
self._stage_setup()
File "/usr/local/lib/python3.10/dist-packages/pyzenkit/baseapp.py", line 1410, in _stage_setup
self._sub_stage_setup()
File "/mentat-ng/lib/mentat/module/controller.py", line 285, in _sub_stage_setup
self.modules = mentat.system.make_module_list(
File "/mentat-ng/lib/mentat/system.py", line 150, in make_module_list
for mod in modules:
TypeError: 'NoneType' object is not iterable
Updated by Jakub Judiny 8 months ago
sudo mentat-controller.py --command status --name mentat-inspector.py
Traceback (most recent call last):
File "/usr/local/bin/mentat-controller.py", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/mentat-ng/bin/mentat-controller.py", line 50, in <module>
MentatControllerScript().run()
File "/usr/local/lib/python3.10/dist-packages/pyzenkit/baseapp.py", line 1554, in run
self._stage_setup()
File "/usr/local/lib/python3.10/dist-packages/pyzenkit/baseapp.py", line 1410, in _stage_setup
self._sub_stage_setup()
File "/mentat-ng/lib/mentat/module/controller.py", line 285, in _sub_stage_setup
self.modules = mentat.system.make_module_list(
File "/mentat-ng/lib/mentat/system.py", line 150, in make_module_list
for mod in modules:
TypeError: 'NoneType' object is not iterable
Updated by Jakub Maloštik 8 months ago
Jakub Judiny wrote in #note-1:
sudo mentat-controller.py --command status --name mentat-inspector.py
[...]
This is the case because `--name` changes the name of the running module, which causes the wrong configuration file to be loaded. In this case `mentat-inspector.py.conf` does not contain the `modules` configuration. The use of `--name` causes similar issues in all modules, and would require non-trivial effort to fix.
However, the flag you seem to be looking for is `--target`. Which, however, also seems buggy when called in combination with status. So instead I fixed the usage of `--target`
Updated by Jakub Maloštik 8 months ago
- Status changed from New to In Progress
- To be discussed changed from No to Yes
Updated by Jakub Maloštik 4 months ago
- Status changed from In Progress to Resolved
Updated by Jakub Judiny 4 months ago
- Target version changed from Backlog to 2.13.2
Updated by Rajmund Hruška 4 months ago
- Status changed from Resolved to In Review
Actions