YunoHost-Apps / mailman3_ynh

Mailman - The GNU Mailing List Management System packaged for YunoHost.
GNU Affero General Public License v3.0
7 stars 4 forks source link

Installlation doesn't work #34

Open e-jim opened 2 years ago

e-jim commented 2 years ago

Hey there,

When I try to install the package on a YunoHost 4.4.2.14 server, I get this error:

WARNING - ./install: ligne 152: email : variable sans liaison (translation: variable unbound)

This is the same error as mentioned in the logs of @CodeFreezr in issue #24 but as it doesn't seem to be unrelated to #24 I took the liberty to open a new issue.

One of the errors raised is that the variable e-mail is never set in the install script. I "fixed" it by adding an e-mail requirement in the manifest and using it in the install script. See my quick and dirty fix

Yet, this didn't solve the second error:

WARNING - Traceback (most recent call last):
File "manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management

So it also modified line 152 to use python3 explicitly (because default is still 2 in buster in thus in Yunohost 4.x).

Note: everytime I tried again to install, I had to run those commands to allow installation to run again.:

 apt purge mailman3*
rm -rf /var/lib/mailman3

Now, it installed but I haven't tested the app yet.

Hope this helps...

TomRicci commented 1 year ago

Hi Jérémie, I successfully installed your version of the app, could you please make a merge request to the testing branch here, so the bug with the missing email variable (and python3 for YNH buster) could be fixed for everyone. Take care, Tom.

e-jim commented 1 year ago

@TomRicci PR done. I hope it's not too dirty... 😬