I'm hoping the community can help me with a project I'm working on.
I'm trying to retrieve txt records in a python script, and am attempting to use dnspython. I installed the module in they PyCharm venv, and have confirmed that the python interpreter configured for the project is the venv python interpreter. When I try to import DNS.resolver at the top of my script, it autocompletes, and finds the package (screenshot below). When I try to run the script, I get an error "No module named 'dns'"
Traceback (most recent call last):
File "C:\Users\user\AppData\Roaming\JetBrains\PyCharm2022.1\scratches\scratch.py", line 1, in <module>
import DNS.resolver
File "C:\Users\user\PycharmProjects\Security_Assessment\venv\lib\site-packages\DNS\__init__.py", line 66, in <module>
from dns.version import version as __version__ # noqa
ModuleNotFoundError: No module named 'dns'
Screenshot of Pycharm finding module
If anyone can help me fix this one and allow me to get on with my project, I would appreciate it tremendously!! Thanks!