Code Monkey home page Code Monkey logo

Comments (16)

darryllane avatar darryllane commented on July 17, 2024

Hi, what version of python are you running?

from bluto.

AdvayCoder avatar AdvayCoder commented on July 17, 2024

I am on the latest version of Kali Linux. There I cannot run just the "bluto" command because it defaults to running python 3. I ran the command "python /usr/local/bin/bluto" and it gave me this error. When I run the command "python" I am running version 2.7.18.

from bluto.

AdvayCoder avatar AdvayCoder commented on July 17, 2024

Is there a solution?

from bluto.

darryllane avatar darryllane commented on July 17, 2024

from bluto.

AdvayCoder avatar AdvayCoder commented on July 17, 2024

Ok. Here is what I did on Kali Linux:

I ran "sudo pip install bluto"

Then, once it installed, I ran "python /usr/local/bin/bluto" (Since just running "bluto" makes it run in python 3, and gives other errors).

It then gives me the error, which is:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Bluto/bluto", line 43, in
import dns.resolver
ImportError: No module named dns.resolver

I made an alias called "bluto" that makes it run the python2 bluto command above in .zshrc. Thank you for taking the time to fix the issue!

from bluto.

AdvayCoder avatar AdvayCoder commented on July 17, 2024

Is there a solution?

from bluto.

darryllane avatar darryllane commented on July 17, 2024

I'm guessing when it installed it didn't install fully in python2. Try this using pip for python2, sudo pip install dnspython

from bluto.

AdvayCoder avatar AdvayCoder commented on July 17, 2024

I installed dnspython, but it installed to the python 3 lib, so I moved it to the python 2.7 dist-packages in /usr/local/lib/python2.7/dist-packages/, and then I ran the command "bluto" (correctly aliased to run the command in python 2). I ran it again, but it gives the same error, meaning that it cannot import it correctly. Do I need to move it into the "Bluto" folder, somewhere else inside that folder, or in '/usr/bin/bin/bluto'? Sorry, I am new to python so I am not sure where the dnspython folder needs to be. Thank you!

from bluto.

darryllane avatar darryllane commented on July 17, 2024

Moving the python3 install into the python 2 distro won't work. You need to install with pip2.x

from bluto.

AdvayCoder avatar AdvayCoder commented on July 17, 2024

When I do "sudo pip install dnspython" it says "Requirement already satisfied: dnspython in /usr/lib/python3/dist-packages (2.0.0)", which means that it "pip" is installing to python3 instead of python 2, just like "pip3".

from bluto.

nathanzebedee avatar nathanzebedee commented on July 17, 2024

Yo, I have the same issue. Ever figure it out?

from bluto.

darryllane avatar darryllane commented on July 17, 2024

from bluto.

nathanzebedee avatar nathanzebedee commented on July 17, 2024

from bluto.

darryllane avatar darryllane commented on July 17, 2024

Install it as you did but with python 2.x

from bluto.

getJobLength avatar getJobLength commented on July 17, 2024

But how would you do that since pip2 is no longer in kali. Atleast not in my version of kali.

from bluto.

darryllane avatar darryllane commented on July 17, 2024

Hi, I'd suggest googling how to install pip2 and python 2.7 on Kali.

from bluto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.