zenhack / simp_le

Simple Let's Encrypt client
GNU General Public License v3.0
224 stars 38 forks source link

Fix crashing simp_le.py because of missing six package #154

Closed igielskv closed 2 years ago

igielskv commented 2 years ago

In our Debian 10 environment script simple.py started to crash due to missing six module in venv.

Traceback (most recent call last):
  File "/usr/local/sbin/simp_le", line 33, in <module>
    sys.exit(load_entry_point('simp-le-client', 'console_scripts', 'simp_le')())
  File "/opt/simp_le/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/simp_le/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2793, in load_entry_point
    return ep.load()
  File "/opt/simp_le/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2411, in load
    return self.resolve()
  File "/opt/simp_le/venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2417, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/opt/simp_le/simp_le.py", line 43, in <module>
    import six

We have mitigated the problem by installing six package in venv.sh

zenhack commented 2 years ago

I pushed a commit to master that adds six to setup.py, which I think is the right solution here; can you confirm that that fixes the issue for you?

zenhack commented 2 years ago

Going to close this; the change I pushed is now part of the 0.19.1 release I just tagged.