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

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

Closed
Narculis opened this issue Mar 28, 2024 · 1 comment
Closed

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

Narculis opened this issue Mar 28, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists or is covered in another issue or pull request

Comments

@Narculis
Copy link

🐛 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 jsf9k added the duplicate This issue or pull request already exists or is covered in another issue or pull request label Mar 28, 2024
@jsf9k
Copy link
Member

jsf9k commented Mar 28, 2024

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.

@jsf9k jsf9k closed this as completed Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists or is covered in another issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants