Problem updating mailman
I am getting this error after I did a git pull and build.
(venv) [mailman3@gw ~/git]$ /opt/mailman/mm/bin/mailman-post-update
- '[' False == False ']'
- mkdir -p /opt/mailman/mm/static
- /opt/mailman/mm/bin/django-admin collectstatic --clear --noinput
--verbosity 0
+* /opt/mailman/mm/bin/django-admin compress*
CommandError: An error occurred during rendering
/opt/mailman/mm/venv/lib/python3.7/site-packages/HyperKitty-1.3.4rc2-py3.7.egg/hyperkitty/templates/hyperkitty/404.html:
/usr/local/lib/ruby/site_ruby/2.7/rubygems/dependency.rb:311:in
to_specs': Could not find 'sass-listen' (~> 4.0.0) among 4 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/opt/mailman/.gem/ruby/2.7:/usr/local/lib/ruby/gems/2.7', execute
gem envfor more information from /usr/local/lib/ruby/site_ruby/2.7/rubygems/specification.rb:1446:in
block in activate_dependencies' from /usr/local/lib/ruby/site_ruby/2.7/rubygems/specification.rb:1435:ineach' from /usr/local/lib/ruby/site_ruby/2.7/rubygems/specification.rb:1435:in
activate_dependencies' from /usr/local/lib/ruby/site_ruby/2.7/rubygems/specification.rb:1417:inactivate' from /usr/local/lib/ruby/site_ruby/2.7/rubygems.rb:305:in
block in activate_bin_path' from /usr/local/lib/ruby/site_ruby/2.7/rubygems.rb:304:insynchronize' from /usr/local/lib/ruby/site_ruby/2.7/rubygems.rb:304:in
activate_bin_path' from /usr/local/bin/sass:23:in `<main>'
The other output from this process is so long so I pasted it here: https://pastebin.ubuntu.com/p/tsB2CCNrQG/
Thanks
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)
On 1/23/21 2:56 AM, Odhiambo Washington wrote:
I am getting this error after I did a git pull and build.
(venv) [mailman3@gw ~/git]$ /opt/mailman/mm/bin/mailman-post-update
- '[' False == False ']'
- mkdir -p /opt/mailman/mm/static
- /opt/mailman/mm/bin/django-admin collectstatic --clear --noinput --verbosity 0 +* /opt/mailman/mm/bin/django-admin compress* CommandError: An error occurred during rendering /opt/mailman/mm/venv/lib/python3.7/site-packages/HyperKitty-1.3.4rc2-py3.7.egg/hyperkitty/templates/hyperkitty/404.html: /usr/local/lib/ruby/site_ruby/2.7/rubygems/dependency.rb:311:in `to_specs': Could not find 'sass-listen' (~> 4.0.0) among 4 total gem(s) ...
Ruby-sass is no longer supported. Please see the Sass compiler section at <https://docs.mailman3.org/en/latest/install/virtualenv.html#dependencies>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Sun, 24 Jan 2021 at 00:46, Mark Sapiro <mark@msapiro.net> wrote:
On 1/23/21 2:56 AM, Odhiambo Washington wrote:
I am getting this error after I did a git pull and build.
(venv) [mailman3@gw ~/git]$ /opt/mailman/mm/bin/mailman-post-update
- '[' False == False ']'
- mkdir -p /opt/mailman/mm/static
- /opt/mailman/mm/bin/django-admin collectstatic --clear --noinput --verbosity 0 +* /opt/mailman/mm/bin/django-admin compress* CommandError: An error occurred during rendering
/opt/mailman/mm/venv/lib/python3.7/site-packages/HyperKitty-1.3.4rc2-py3.7.egg/hyperkitty/templates/hyperkitty/404.html:
/usr/local/lib/ruby/site_ruby/2.7/rubygems/dependency.rb:311:in `to_specs': Could not find 'sass-listen' (~> 4.0.0) among 4 total gem(s) ...
Ruby-sass is no longer supported. Please see the Sass compiler section at <https://docs.mailman3.org/en/latest/install/virtualenv.html#dependencies
.
I uninstalled rubygem-sass from the OS. I don't remember consciously installing that because it was never in the guide I followed (which is your own writeup). But I still have a problem:
(venv) [mailman3@gw ~/mm]$ /opt/mailman/mm/bin/mailman-post-update pip3 install sass fails:
- '[' False == False ']'
- mkdir -p /opt/mailman/mm/static
- /opt/mailman/mm/bin/django-admin collectstatic --clear --noinput --verbosity 0
- /opt/mailman/mm/bin/django-admin compress CommandError: An error occurred during rendering /opt/mailman/mm/venv/lib/python3.7/site-packages/django_mailman3-1.3.5-py3.7.egg/django_mailman3/templates/socialaccount/signup.html: */bin/sh: sass: not found*
..... ERROR: Command errored out with exit status 1: /opt/mailman/mm/venv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vnlujru1/sass_15812b8baa1b405c8130edb21a4f4316/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vnlujru1/sass_15812b8baa1b405c8130edb21a4f4316/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_f8rgww1/install-record.txt --single-version-externally-managed --compile --install-headers /opt/mailman/mm/venv/include/site/python3.7/sass Check the logs for full command output.
The complete failure text is at https://pastebin.ubuntu.com/p/tsB2CCNrQG/
Maybe it's time to blow up everything in the virtualenv and start over because I am not sure what caused this.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)
On 1/24/21 1:03 AM, Odhiambo Washington wrote:
I uninstalled rubygem-sass from the OS. I don't remember consciously installing that because it was never in the guide I followed (which is your own writeup). But I still have a problem:
(venv) [mailman3@gw ~/mm]$ /opt/mailman/mm/bin/mailman-post-update
- '[' False == False ']'
- mkdir -p /opt/mailman/mm/static
- /opt/mailman/mm/bin/django-admin collectstatic --clear --noinput --verbosity 0
- /opt/mailman/mm/bin/django-admin compress CommandError: An error occurred during rendering /opt/mailman/mm/venv/lib/python3.7/site-packages/django_mailman3-1.3.5-py3.7.egg/django_mailman3/templates/socialaccount/signup.html: */bin/sh: sass: not found*
You can't just uninstall rubygem-sass. You have to replace it. Here's one recipe for Ubuntu
cd /usr/local/lib # See https://github.com/sass/dart-sass/releases/tag/1.32.5 for the # appropriate version. wget https://github.com/sass/dart-sass/releases/download/1.32.5/dart-sass-1.32.5-... sudo tar -xf dart-sass-1.32.5-linux-x64.tar.gz sudo chmod -R o-w dart-sass sudo ln -s dart-sass/sass /usr/local/bin/sass rm dart-sass-1.32.5-linux-x64.tar.gz
Then you should see the command
sass --version
prints
1.32.5
Then, because dart-sass doesn't recognize the short form -t option for --style, you have to edit your settings(_local).py and change
COMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sass -t compressed {infile} {outfile}'), ('text/x-sass', 'sass -t compressed {infile} {outfile}'), )
to
COMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sass --style compressed {infile} {outfile}'), ('text/x-sass', 'sass --style compressed {infile} {outfile}'), )
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro wrote:
I uninstalled rubygem-sass from the OS. I don't remember consciously installing that because it was never in the guide I followed (which is your own writeup). But I still have a problem: (venv) [mailman3@gw ~/mm]$ /opt/mailman/mm/bin/mailman-post-update
'[' False == False ']' mkdir -p /opt/mailman/mm/static /opt/mailman/mm/bin/django-admin collectstatic --clear --noinput --verbosity 0 /opt/mailman/mm/bin/django-admin compress CommandError: An error occurred during rendering /opt/mailman/mm/venv/lib/python3.7/site-packages/django_mailman3-1.3.5-py3.7.egg/django_mailman3/templates/socialaccount/signup.html: /bin/sh: sass: not found
You can't just uninstall rubygem-sass. You have to replace it. Here's one recipe for Ubuntu cd /usr/local/lib # See https://github.com/sass/dart-sass/releases/tag/1.32.5 for the # appropriate version. wget https://github.com/sass/dart-sass/releases/download/1.32.5/dart-sass-1.32.5-... sudo tar -xf dart-sass-1.32.5-linux-x64.tar.gz sudo chmod -R o-w dart-sass sudo ln -s dart-sass/sass /usr/local/bin/sass rm dart-sass-1.32.5-linux-x64.tar.gz Then you should see the command sass --version
On 1/24/21 1:03 AM, Odhiambo Washington wrote: prints 1.32.5 Then, because dart-sass doesn't recognize the short form -t option for --style, you have to edit your settings(_local).py and change COMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sass -t compressed {infile} {outfile}'), ('text/x-sass', 'sass -t compressed {infile} {outfile}'), ) to COMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sass --style compressed {infile} {outfile}'), ('text/x-sass', 'sass --style compressed {infile} {outfile}'), )
I had to do a new installation of Mailman 3 with Postorius/Hyperkitty today and these directions were very helpful. Thank you, Mark.
participants (3)
-
Brian Carpenter
-
Mark Sapiro
-
Odhiambo Washington