We have the mwgrep script that allows those with mwmaint access to search across all gadgets and user scripts at all wikis (including private ones). This is useful when deciding whether a certain feature can be removed or altered, or how many (or which) gadgets that would affect. Today, I discovered this command is installed at the deployment host, but it does not work:
[urbanecm@deploy2002 ~]$ mwgrep /usr/bin/env: ‘python’: No such file or directory [urbanecm@deploy2002 ~]$
I tried running the script with python3 manually, but then I ran into unavailable Python modules:
[urbanecm@deploy2002 ~]$ which mwgrep
/usr/local/bin/mwgrep
[urbanecm@deploy2002 ~]$ python3 /usr/local/bin/mwgrep
Traceback (most recent call last):
File "/usr/local/bin/mwgrep", line 30, in <module>
reload(sys)
NameError: name 'reload' is not defined
[urbanecm@deploy2002 ~]$I'm not 100% sure if we plan to keep or remove the maintenance host (where the script works as intended). However, we should either remove the script from the deployment host, or make it work there as well.