Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.79: ModuleNotFoundError: No module named 'gui.models.mod_ssl' #24

Open
Skouat opened this issue Jan 24, 2022 · 3 comments
Open

1.79: ModuleNotFoundError: No module named 'gui.models.mod_ssl' #24

Skouat opened this issue Jan 24, 2022 · 3 comments

Comments

@Skouat
Copy link

Skouat commented Jan 24, 2022

Hi,

The following line returns an error

from gui.models.mod_ssl import ModSSL

Traceback (most recent call last):
File "/home/vlt-gui/vulture/crontab/vlt-gui/acme-renew.py", line 38, in
from gui.models.mod_ssl import ModSSL
ModuleNotFoundError: No module named 'gui.models.mod_ssl'

Any ideas how to fix it?

@NRGLine4Sec
Copy link

Hi @Skouat, I had the same issue as you.
This is because the class map ModSSL is not defined in /usr/home/vlt-gui/vulture/gui/forms/mod_ssl.py but in /usr/home/vlt-gui/vulture/gui/forms/modssl_settings.py.
To workaround this I have done these commands :

chmod +w /home/vlt-gui/vulture/crontab/vlt-gui/acme-renew.py && sed -i '' 's/from gui.models.mod_ssl import ModSSL/from gui.models.modssl_settings import ModSSL/g' /home/vlt-gui/vulture/crontab/vlt-gui/acme-renew.py
/home/vlt-gui/env/bin/python /home/vlt-gui/vulture/crontab/vlt-gui/acme-renew.py

@Skouat
Copy link
Author

Skouat commented Jan 31, 2022

Hi @NRGLine4Sec,

Thanks for your feedback.

I already try this workaround, but even if the SSL certs are renewed, the script returns another error

Reloading ssl profile 'accepted_ca' certificates
Traceback (most recent call last):
File "/home/vlt-gui/vulture/crontab/vlt-gui/acme-renew.py", line 132, in
modssl.writeConf()
AttributeError: 'str' object has no attribute 'writeConf'

@NRGLine4Sec
Copy link

Yes, I had exactly the same error, but it seems like the certificate was renewed properly in Vulture nevertheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants