non_members script install issue

I'm trying to use the non_members script by Mark Sapiro, which can be downloaded here:
https://www.msapiro.net/scripts/non_members
on a Debian buster/sid amd64 system.
# non_members Traceback (most recent call last): File "/usr/local/sbin/non_members", line 63, in <module> import paths
What should I do?

On 11/15/18 4:54 AM, Lucio wrote:
As it says in the script, "This script must run from Mailman's bin/ directory."
I *think* on Debian this is /var/lib/mailman/bin/. Whatever directory it is, it is the one containing the actual Mailman bin/ scripts, not just symlinks, and also the paths.py file.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 15/11/18 18:24, Mark Sapiro wrote:
As it says in the script, "This script must run from Mailman's bin/ directory."
Sure, but it doesn't say "This script must be INSTALLED in the Mailman's bin/ directory."
# cd /var/lib/mailman/bin # which non_members /usr/local/sbin/non_members # ls | grep paths.py paths.py paths.pyc # non_members Traceback (most recent call last): File "/usr/local/sbin/non_members", line 63, in <module> import paths ImportError: No module named paths
# mv /usr/local/sbin/non_members . # ./non_members Add or remove addresses to/from *_these_nonmembers [...]
Thanks anyway, it now works.

On 11/15/18 4:54 AM, Lucio wrote:
As it says in the script, "This script must run from Mailman's bin/ directory."
I *think* on Debian this is /var/lib/mailman/bin/. Whatever directory it is, it is the one containing the actual Mailman bin/ scripts, not just symlinks, and also the paths.py file.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

On 15/11/18 18:24, Mark Sapiro wrote:
As it says in the script, "This script must run from Mailman's bin/ directory."
Sure, but it doesn't say "This script must be INSTALLED in the Mailman's bin/ directory."
# cd /var/lib/mailman/bin # which non_members /usr/local/sbin/non_members # ls | grep paths.py paths.py paths.pyc # non_members Traceback (most recent call last): File "/usr/local/sbin/non_members", line 63, in <module> import paths ImportError: No module named paths
# mv /usr/local/sbin/non_members . # ./non_members Add or remove addresses to/from *_these_nonmembers [...]
Thanks anyway, it now works.
participants (3)
-
Lucio
-
Lucio Crusca
-
Mark Sapiro