-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Hello, on a test-system i'm using https://download.grommunio.com/supported/openSUSE_Leap_16.0/ and just tried again to install via grommunio-setup, this works so far but there are still a couple issues left as the python version switched and removed a couple of libraries currently used. Also tried the community-release which only seem to differ on index, web and gromox so it won't make a difference i guess.
This is just a copy of my notes from the community from december.
admin-api is missing openapi-stuff again and uwsgi / python313-uwsgi* make problems..
zypper addrepo --priority 150 https://download.opensuse.org/repositories/devel:languages:python:backports/16.0/devel:languages:python:backports.repo
zypper refresh
zypper install python313-openapi-core
systemctl restart grommunio-admin-api.service
crypt was removed from python and recommends hashlib
An error occurred: ModuleNotFoundError("No module named 'crypt'").
and it seems like the x509 should be handled with python's ssl module
root@grom-test-3:# find /usr/share/grommunio-admin-api/ -iname '*.py' -exec grep --colour -iHn crypt '{}' +
/usr/share/grommunio-admin-api/tools/license.py:7:import cryptography
/usr/share/grommunio-admin-api/tools/license.py:10:from cryptography import x509
/usr/share/grommunio-admin-api/tools/license.py:11:from cryptography.hazmat.backends import default_backend
/usr/share/grommunio-admin-api/tools/license.py:18:cryptographyVersion = [int(part) for part in cryptography.__version__.split(".")]
/usr/share/grommunio-admin-api/tools/license.py:19:TZ = None if cryptographyVersion[0] < 42 else timezone.utc
/usr/share/grommunio-admin-api/tools/license.py:23: return cert.not_valid_before if cryptographyVersion[0] < 42 else cert.not_valid_before_utc
/usr/share/grommunio-admin-api/tools/license.py:27: return cert.not_valid_after if cryptographyVersion[0] < 42 else cert.not_valid_after_utc
/usr/share/grommunio-admin-api/api/security.py:27: from cryptography.hazmat.backends import default_backend
/usr/share/grommunio-admin-api/api/security.py:28: from cryptography.hazmat.primitives import asymmetric, serialization as out
/usr/share/grommunio-admin-api/api/security.py:34: priFile.write(jwtPrivkey.private_bytes(out.Encoding.PEM, out.PrivateFormat.TraditionalOpenSSL, out.NoEncryption()))
/usr/share/grommunio-admin-api/orm/users.py:19:import crypt
/usr/share/grommunio-admin-api/orm/users.py:359: _method = crypt.METHOD_BLOWFISH
/usr/share/grommunio-admin-api/orm/users.py:361: _method = crypt.METHOD_SHA512
/usr/share/grommunio-admin-api/orm/users.py:362: self._password = crypt.crypt(pw, crypt.mksalt(_method))
/usr/share/grommunio-admin-api/orm/users.py:365: return crypt.crypt(pw, self.password) == self.password
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels