Code Monkey home page Code Monkey logo

Comments (15)

jasperan avatar jasperan commented on August 20, 2024

@ch0coflake -> @awelmisin

from whatsapp-osint.

jasperan avatar jasperan commented on August 20, 2024

@awelmisin, when you execute whatsappbeacon.py, in which directory are you located? You should run from the repository's root directory to avoid the Python interpreter not finding the reference 'utils.logs_manager'

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

  whatsapp-osint  git:(master) sudo python whatsappbeacon.py
Traceback (most recent call last):
File "/home/prophecy/Documents/git/whatsapp-osint/whatsappbeacon.py", line 11, in
from utils.logs_manager import Logs

from whatsapp-osint.

poletekid avatar poletekid commented on August 20, 2024

Hey @deepsynthsec , in fact there is an error which causes the python script not to run because there is a folder missing, which we are adding now to this repository. I would suggest you to redownload now or create in the root folder, whatsapp-osint create a folder called "logs". It should be working with it.

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

Oh cool.

I was thinking maybe that it was a user issue. I thought that the logmanager.py has different permissions then the whatsappbeacon.py file.

from whatsapp-osint.

jasperan avatar jasperan commented on August 20, 2024

@awelmisin mind pulling and trying again? Pull request #7 has been merged

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

same problem after pull, i thought it maybe access permissions but i chmod 777 the whole file and still traceback

Traceback (most recent call last):
File "/home/prophecy/Documents/git/whatsapp-osint/whatsappbeacon.py", line 11, in
from utils.logs_manager import Logs
ModuleNotFoundError: No module named 'utils.logs_manager'

i am also running it in its own venv

from whatsapp-osint.

jasperan avatar jasperan commented on August 20, 2024

Hello, I've just tested the new version and it's working.

image

I believe your problem is that you're executing this code from an incorrect path. You need to be in the root directory and run whatsappbeacon.py from within the root directory. If you don't, utils.logs_manager can never be found.

Are you running this code from VSCode? If so, make sure you specify the execution environment to be in the root directory, not from another dir. I recommend you test using cmder or other Windows-compatible shell that gives you more control over which directory you're at

@deepsynthsec

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

forgive me, im really a noob at this.

when you say root i have no idea what that means, do you mean root as "su"
or root of the repo. Im sorry if im expecting a lesson in python :)

from whatsapp-osint.

jasperan avatar jasperan commented on August 20, 2024

No problem, I'm here to help @deepsynthsec. A root directory is the top level directory of the repository. So, for example, if you downloaded to /home/prophecy/Documents/git/whatsapp-osint, the root directory where you should run the file is from /home/prophecy/Documents/git/whatsapp-osint.

You should not run the python script from any other directory. When you run from VSCode, the default directory depends and can be changed in settings I believe (here's a link for more info https://stackoverflow.com/questions/38623138/vscode-how-to-set-working-directory-for-debugging-a-python-program)

I always use a terminal to run Python programs so I never run into issues like these.

Note that in my previous example, I'm executing the Python script from /home/$USER/git/whatsapp-osint. That's the root dir of the repository after I downloaded it.

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

I have tried to emulate what you have said and i think im clearly doing something wrong that doesnt have to do with the program. i ran as you said and have gotten this result

2022-09-01_18-50

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

When i deactivate conda i get a selenium web driver error
2022-09-01_19-16

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

I installed selenium with python and i seem to have it working?
2022-09-01_19-19

from whatsapp-osint.

deepsynthsec avatar deepsynthsec commented on August 20, 2024

Works perfectly... I thought i would add a write up just so others know how to fix it.

Reasons i think it didnt work:

  • Chrome needs to be installed
  • make sure selenium is installed from python correctly (update it)
  • run it from the repo root directory
  • listen to @jasperan

Thank you so much for your help

from whatsapp-osint.

jasperan avatar jasperan commented on August 20, 2024

Haha thanks @deepsynthsec for the comments, see you around

#fixed

from whatsapp-osint.

Related Issues (16)

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.