infosec-au / altdns

Generates permutations, alterations and mutations of subdomains and then resolves them
Apache License 2.0
2.26k stars 446 forks source link

No module named 'queue' #29

Closed zongdeiqianxing closed 4 years ago

zongdeiqianxing commented 4 years ago

No module named 'queue' or No module named 'Queue'

nature1995 commented 4 years ago

You have 2 options:

  1. You can change the /lib/python3.6/site-packages/altdns/main.py
    # From
    from Queue import Queue as Queue
    # To
    from queue import Queue as Queue
  2. You can use the newest code in github
    git clone https://github.com/infosec-au/altdns.git
    python setup.py build
    python setup.py install
mirhatx commented 4 years ago

i'm getting this issue and both of the solutions didn't work for me

mirhatx commented 4 years ago

i fixed this issue by doing:

  1. cd altdns
  2. open main.py in linux i did nano main.py
  3. comment out from queue import Queue as Queue by adding # in the beginning
  4. add from multiprocessing import Queue
niksthehacker commented 4 years ago

edit main.py and replace

from Queue import Queue as Queue

to this

from multiprocessing import Queue as Queue