cisagov / trustymail

Scan domains and return data based on trustworthy email best practices
Creative Commons Zero v1.0 Universal
185 stars 31 forks source link

Windows: ModuleNotFoundError: No module named 'dns' #148

Closed Narculis closed 3 months ago

Narculis commented 3 months ago

🐛 Summary

What's wrong? Please be specific.

Getting this error when trying to run TrustyMail.

C:\Users\brian>trustymail Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\brian\AppData\Local\Programs\Python\Python311\Scripts\trustymail.exe__main.py", line 4, in File "C:\Users\brian\AppData\Local\Programs\Python\Python311\Lib\site-packages\trustymail\cli.py", line 61, in from . import trustymail File "C:\Users\brian\AppData\Local\Programs\Python\Python311\Lib\site-packages\trustymail\trustymail.py", line 15, in import DNS File "C:\Users\brian\AppData\Local\Programs\Python\Python311\Lib\site-packages\DNS\init.py", line 70, in from dns.version import version as version__ # noqa ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'dns'

Steps to reproduce the behavior:

Fresh install TrustyMail

Run Trustymail

Expected behavior

Trusty Mail runs successfully.

Any helpful log output or screenshots

image

image

There is a similar bug report for MAC OS, but I am running Windows. I have tried a fresh install on 3 devices, 2 Windows 11, 1 Windows 10.

Each returns the same error. I have tried installing dnspython, fresh installing python, using older versions of python, etc.

jsf9k commented 3 months ago

It's a different OS, but the problem is the same. The underlying file system is case insensitive (see #41). The only solutions are to change the Windows file system to be case sensitive (I think this is possible, but I'm not a Windows user) or switch to a different OS.