On 9/11/20 8:19 PM, brylon@oit.rutgers.edu wrote:
I already have ruby-sass installed and the compress command used to work as expected prior to my upgrading to the latest core, postorius, hyperkitty versions using pip in my venv.
Does It matter at all when performing the Django-admin commands whether I've activated the venv or not? I think I've tried running them both activated and deactivated to no avail, but any other suggestions?
I don't think that's the issue here, but the venv should be active when you run the Django-admin commands.
Looking more closely at the error, I see it says
File
"/opt/mailman/mm/venv/lib/python3.6/site-packages/compressor/base.py",
line 282, in precompile
mod = import_module(mod_name)
...
ModuleNotFoundError: No module named 'sass -t compressed {infile} {outfile}'
Thus it appears that compressor is trying to import 'sass -t compressed {infile} {outfile}' as a module instead of executing it as a command.
What version of compressor is this?
It is working for me on 4 sites with django_compressor-2.4, django_compressor-2.3 and django_compressor-2.2.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan