Spredzy / lecm

Let's Encrypt Certificate Manager
Apache License 2.0
41 stars 10 forks source link

AttributeError module 'platform' has no attribute 'dist' #71

Open stokito opened 1 year ago

stokito commented 1 year ago

lecm 0.0.9 on Ubuntu 20.10:

sudo lecm --generate
Traceback (most recent call last):
  File "/usr/bin/lecm", line 33, in <module>
    sys.exit(load_entry_point('lecm==0.0.9', 'console_scripts', 'lecm')())
  File "/usr/lib/python3/dist-packages/lecm/shell.py", line 79, in main
    cert.generate()
  File "/usr/lib/python3/dist-packages/lecm/certificate.py", line 290, in generate
    self._create_filesystem()
  File "/usr/lib/python3/dist-packages/lecm/certificate.py", line 105, in _create_filesystem
    utils.enforce_selinux_context(self.path)
  File "/usr/lib/python3/dist-packages/lecm/utils.py", line 49, in enforce_selinux_context
    if platform.dist()[0] in ['fedora', 'centos', 'redhat']:
AttributeError: module 'platform' has no attribute 'dist'