Giter Club home page Giter Club logo

Comments (18)

Bornunique911 avatar Bornunique911 commented on July 17, 2024 1

I can reproduce the issue as follows for Python3.9 and Python3.11. The issue is being faced by setup.py file :

Steps to Reproduce the issue for Python version 3.11 from non-user scenario:

  1. Checking the output of Python Version by the following command :

python3 -V

image

Referring the Installation guide from the Installation section of the repository.

image

  1. Firstly cloning the repository using the following command :

git clone https://github.com/r0oth3x49/ghauri.git

image

  1. Changing directory to the ghauri directory.

cd ghauri

  1. Running the following command to install requirements :

python3 -m pip install --upgrade -r requirements.txt

image

As in the above screenshot, you can observe that the requirements are being already satisfied as some of the python libraries are already installed. Now, moving forward to the 3rd step of the Installation section.

  1. Run python3 setup.py install or python3 -m pip install -e . So I did followed the same as follows :

First I ran the python3 setup.py install and then the second one which is python3 -m pip install -e. Let's see in which command the given issue was for mentioned in the Issue #119 .

image

Now, in the above screenshot, you can observe that setup.py failed due to permission denied error and setup tools being deprecated.

Now, let's try the second command which is python3 -m pip install -e .

image

So, from the above screenshot, the second command did work and installed ghauri tool successfully. So, let's proceed with the next step from the installation section.

  1. As per the last step, you will be able to access and run the ghauri with simple

ghauri --help command. Let's try that.

image

So, from the above screenshot, we can observe that it worked and we can use tool with python3.11 but what about Python version 3.9. Let's find out.

Now for Python version 3.9, I will skip 3 steps from the steps to reproduce for Python version 3.11. So I will basically start with step 1 and steps 4 to 6.

Steps to Reproduce the Issue for Python Version 3.9 from non-user scenario:

Note : Using Google Cloud Shell for Python Version 3.9.

  1. Checking the output of Python Version by the following command :

python3 -V

image

  1. Skipped

  2. Skipped

  3. Running the following command to install requirements :

python3 -m pip install --upgrade -r requirements.txt

image

As in the above screenshot, you can observe that some of the requirements are upgraded to newer versions and some of the python libraries are already installed. Now, moving forward to the 3rd step of the Installation section.

  1. Run python3 setup.py install or python3 -m pip install -e . So I did followed the same as follows :

First I ran the python3 setup.py install and then the second one which is python3 -m pip install -e. Let's see in which command the given issue was for mentioned in the Issue #119 .

image

Root user scenario :
In root user scenario, you will observe that setup.py will be successful and will installed ghauri tool successfully but it throws a warning for setup.py install and easy_install command being deprecated which is quite advisable but what about non-user.

Non-root user :
In non-root user, there is a scenario where it fails and throws a error like it throws in the following screenshot for Python version 3.9.

image

  1. As per the last step, you will be able to access and run the ghauri with simple

ghauri --help command. Let's try that.

image

So, from the above screenshot, we can observe that it throws a command not found error for ghauri tool. So, to fix that I used the following commands as mentioned one-by-one :

python3 -m pip install -e . --upgrade

image

sudo python3 setup.py install

image

image

ghauri --help

image


I hope your issue is being resolved by these comment of mine. @blackcodersec
Also I hope you @r0oth3x49 sir you add this to the installation section so that if anyone faces the same issue can reference this issue to get their tool working.

from ghauri.

r0oth3x49 avatar r0oth3x49 commented on July 17, 2024

try installing with pip?

apt install python3-pip
python3 -m pip install -e . --upgrade

from ghauri.

blackcodersec avatar blackcodersec commented on July 17, 2024

still same issue.
image

from ghauri.

r0oth3x49 avatar r0oth3x49 commented on July 17, 2024

The error is more specific to python than ghauri. Try searching Google for the solution

from ghauri.

r0oth3x49 avatar r0oth3x49 commented on July 17, 2024

I not able to reproduce this issue

from ghauri.

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.