Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing pydns

While trying to install pydns module i am getting this error:

C:\Windows\system32>pip install pydns
Collecting pydns
  Using cached pydns-2.3.6.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
  File "C:\Users\Shiva\AppData\Local\Temp\pip-build-294324_x\pydns\setup.py", line 12, in <module>
    import DNS
  File "C:\Users\Shiva\AppData\Local\Temp\pip-build-294324_x\pydns\DNS\__init__.py", line 14, in <module>
    import Type,Opcode,Status,Class
ImportError: No module named 'Type'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Shiva\AppData\Local\Temp\pip-build-294324_x\pydns\

I tried pip install py3dns as well but it doesn't work.

like image 893
Shiva Gupta Avatar asked Dec 27 '16 09:12

Shiva Gupta


2 Answers

You are using the wrong version of python. pydns is not supported for python 3. pydns works for python2.7

For python3 use pip3 install py3DNS

like image 132
Shivam Kohli Avatar answered Oct 16 '22 10:10

Shivam Kohli


The pydns is not supported with Python 3. You need to use python 2.7 to work with it.

like image 2
valentin Avatar answered Oct 16 '22 10:10

valentin