No module named 'dns.quic' - known issue or user error? #895
Replies: 2 comments 1 reply
-
Ah, this is a bug similar to #887. We don't build dnspython with setup.py anymore. The problem in this case is that setup.cfg is missing quic from the packages declaration in the [options] section. Make it look like this and reinstall and it will work: packages = Alternatively, after activating the venv, you can build the way we test and then install (the README for dnspython on GitHub, and in future releases, will say to do this):
|
Beta Was this translation helpful? Give feedback.
-
Thank you! I had been struggling with installation instructions and dug up setup from a SO thread. Anyways, I did a pull, and followed your instructions to build and install, and everything seems to be working nicely. |
Beta Was this translation helpful? Give feedback.
-
Hello! I installed dnspython today on Windows in VS Code by cloning the repo and then running "python setup.py install" in a .venv session in VS code.
I'm trying to run examples/mx.py but dns.quic is apparently missing. Am I doing something wrong here?
(.venv) PS D:\github\dnspython\examples> python --version
Python 3.11.2
(.venv) PS D:\github\dnspython\examples> python .\mx.py
Traceback (most recent call last):
File "D:\github\dnspython\examples\mx.py", line 3, in
import dns.resolver
File "D:\github\ResolverPlayground.venv\Lib\site-packages\dnspython-2.1.1.dev455+g895ae10-py3.11.egg\dns\resolver.py", line 39, in
File "D:\github\ResolverPlayground.venv\Lib\site-packages\dnspython-2.1.1.dev455+g895ae10-py3.11.egg\dns\query.py", line 37, in
ModuleNotFoundError: No module named 'dns.quic'
(.venv) PS D:\github\dnspython\examples> git log
commit 895ae10 (HEAD -> master, origin/master, origin/HEAD)
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed Feb 8 08:23:55 2023 -0800
Beta Was this translation helpful? Give feedback.
All reactions