jasperan / whatsapp-osint

WhatsApp spy - logs online/offline events from ANYONE in the world
MIT License
863 stars 111 forks source link

help logs_manager #6

Closed awelmisin closed 2 years ago

awelmisin commented 2 years ago

Traceback (most recent call last): File "C:\Users\dedem\OneDrive\Belgeler\GitHub\whatsapp-osint\whatsappbeacon.py", line 11, in from utils.logs_manager import Logs ModuleNotFoundError: No module named 'utils.logs_manager'

jasperan commented 2 years ago

@ch0coflake -> @awelmisin

jasperan commented 2 years ago

@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'

deepsynthsec commented 2 years ago

  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

poletekid commented 2 years ago

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.

deepsynthsec commented 2 years ago

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.

jasperan commented 2 years ago

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

deepsynthsec commented 2 years ago

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

jasperan commented 2 years ago

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

deepsynthsec commented 2 years ago

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 :)

jasperan commented 2 years ago

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.

deepsynthsec commented 2 years ago

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

deepsynthsec commented 2 years ago

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

deepsynthsec commented 2 years ago

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

deepsynthsec commented 2 years ago

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

Reasons i think it didnt work:

Thank you so much for your help

jasperan commented 2 years ago

Haha thanks @deepsynthsec for the comments, see you around

fixed