Bug #7724
closed
Mentat-controller raises Exception when name is specified
Added by Jakub Judiny 8 months ago.
Updated 3 months ago.
Category:
Development - Tools
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
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
- Description updated (diff)
- Description updated (diff)
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`
- Status changed from New to In Progress
- To be discussed changed from No to Yes
- Status changed from In Progress to Resolved
- Target version changed from Backlog to 2.13.2
- Status changed from Resolved to In Review
- Status changed from In Review to Closed
Also available in: Atom
PDF