Hello, I face a proplem while I try to open the tool :
python zehef.py
Traceback (most recent call last): File "/home/kali/Desktop/OSINT/email-osint/Zehef/zehef.py", line 3, in <module>
import main; main.version() ^^^^^^^^^^^^^^
File "/home/kali/Desktop/OSINT/email-osint/Zehef/main.py", line 9, in version from lib import CLI
ImportError: cannot import name 'CLI' from 'lib' (/usr/lib/python3/dist-packages/lib/__init__.py)
Hi,
Try to install or reinstall the dependencies.
cd zehefPath/
pip install -r requirements.txt
otherwise try with package manager with package python3-<your dependency>, apt for Debian-based, pacman for Arch-based and dnf for Fedora-based.
The libs :
httpx
holehe (pip only)
argparse
datetime
pwnedpasswords
scrape-search-engine
requests
If you have any questions or other problems, I remain at your disposal.
>
Hello bro, I tryed to download all requirements again, also I tryed to talk every pip package and download it lonely also the sam result.
I think it may be in inti.py file in my python he says :
python3 zehef.py
Traceback (most recent call last): File "/home/kali/Desktop/OSINT/email-osint/Zehef/zehef.py", line 3, in <module>
import main; main.version()
^^^^^^^^^^^^^^ File "/home/kali/Desktop/OSINT/email-osint/Zehef/main.py", line 9, in version
from lib import CLI
_ImportError: cannot import name 'CLI' from 'lib' (/usr/lib/python3/dist-packages/lib/__init__.py)_
The most simple way to solve the issue is to create an empty "\_\_init\_\_.py" file under the lib folder, that's it, it should be solved, nothing else needed
> The most simple way to solve the issue is to create an empty "__init__.py" file under the lib folder, that's it, it should be solved, nothing else needed
Do you mean lib in tool or in python3 package
In the repo, there is a lib folder, which contains CLI.py
________________________________
From: No One ***@***.***>
Sent: Thursday, July 6, 2023 6:10:33 PM
To: N0rz3/Zehef ***@***.***>
Cc: Suman Roy ***@***.***>; Comment ***@***.***>
Subject: Re: [N0rz3/Zehef] CLI (Issue #8)
The most simple way to solve the issue is to create an empty "init.py" file under the lib folder, that's it, it should be solved, nothing else needed
Do you mean lib in tool or in python3 package
—
Reply to this email directly, view it on GitHub<https://github.com/N0rz3/Zehef/issues/8#issuecomment-1623611375>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIY2PBTTT7Q7DUIAMRADJ5DXO2W4DANCNFSM6AAAAAAZ5PPGWQ>.
You are receiving this because you commented.Message ID: ***@***.***>
Make sure to use __init__.py not init.py
________________________________
From: No One ***@***.***>
Sent: Thursday, July 6, 2023 6:10:33 PM
To: N0rz3/Zehef ***@***.***>
Cc: Suman Roy ***@***.***>; Comment ***@***.***>
Subject: Re: [N0rz3/Zehef] CLI (Issue #8)
The most simple way to solve the issue is to create an empty "init.py" file under the lib folder, that's it, it should be solved, nothing else needed
Do you mean lib in tool or in python3 package
—
Reply to this email directly, view it on GitHub<https://github.com/N0rz3/Zehef/issues/8#issuecomment-1623611375>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIY2PBTTT7Q7DUIAMRADJ5DXO2W4DANCNFSM6AAAAAAZ5PPGWQ>.
You are receiving this because you commented.Message ID: ***@***.***>
> In the repo, there is a lib folder, which contains CLI.py
> […](#)
> ________________________________ From: No One ***@***.***> Sent: Thursday, July 6, 2023 6:10:33 PM To: N0rz3/Zehef ***@***.***> Cc: Suman Roy ***@***.***>; Comment ***@***.***> Subject: Re: [N0rz3/Zehef] CLI (Issue #8) The most simple way to solve the issue is to create an empty "init.py" file under the lib folder, that's it, it should be solved, nothing else needed Do you mean lib in tool or in python3 package — Reply to this email directly, view it on GitHub<[#8 (comment)](https://github.com/N0rz3/Zehef/issues/8#issuecomment-1623611375)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIY2PBTTT7Q7DUIAMRADJ5DXO2W4DANCNFSM6AAAAAAZ5PPGWQ>. You are receiving this because you commented.Message ID: ***@***.***>
Bro I go to /usr/lib/python3/dist_packges/lib
Then I found that file __inti__.py exist. also I tryed random thing and I make file called "CLI.py" and tryed to run but it didn't run.


when you cloned the repo, it should be there. I have included screenshots
>  
>
> when you cloned the repo, it should be there. I have included screenshots
Yes I found it also I found CIL.py but I didn't know what's proplem happend
The __init__.py file serves an important purpose in Python. It is used to mark a directory as a Python package. Here's why it is necessary:
Package Initialization: The __init__.py file acts as an initialization script for the package. When Python encounters a directory containing this file, it understands that the directory should be treated as a package and can be imported.
Namespace Package: In some cases, a package may be split across multiple directories. These are called namespace packages. The __init__.py file helps to define the namespace and allows different parts of the package to be located in different directories.
Package-Level Code: The __init__.py file can also contain package-level code, such as initialization logic or variable assignments. This code will be executed when the package is imported, providing an opportunity to set up the package's environment or perform any necessary setup tasks.
In summary, the __init__.py file is required to mark a directory as a package and allows for package-level initialization and code execution. It helps organize and structure your codebase when working with packages in Python.
________________________________
From: No One ***@***.***>
Sent: Friday, July 7, 2023 12:21:45 PM
To: N0rz3/Zehef ***@***.***>
Cc: Suman Roy ***@***.***>; Comment ***@***.***>
Subject: Re: [N0rz3/Zehef] CLI (Issue #8)
[Screenshot_20230706_214019]<https://user-images.githubusercontent.com/36808582/251509441-f17873e5-d2aa-476c-aa57-a57c45148715.png> [Screenshot_20230706_214340] <https://user-images.githubusercontent.com/36808582/251510002-d324eb08-5469-4920-a5c0-0eb3a76c137e.png>
when you cloned the repo, it should be there. I have included screenshots
Yes I found it also I found CIL.py but I didn't know what's proplem happend
—
Reply to this email directly, view it on GitHub<https://github.com/N0rz3/Zehef/issues/8#issuecomment-1624842690>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIY2PBQNO46QKY5FTMER2KTXO6WYDANCNFSM6AAAAAAZ5PPGWQ>.
You are receiving this because you commented.Message ID: ***@***.***>
>
Nice information I will get deep on it later. when I try to see anything I found it empty I will try to reinstall it..may be there was an error while installing then I will try to see what's wrong in python. What I should do in this situation ?
There is nothing to install, all you need to do is create that empty __init__.py file in the lib folder and everything should work
________________________________
From: No One ***@***.***>
Sent: Friday, July 7, 2023 12:35:14 PM
To: N0rz3/Zehef ***@***.***>
Cc: Suman Roy ***@***.***>; Comment ***@***.***>
Subject: Re: [N0rz3/Zehef] CLI (Issue #8)
Nice information I will get deep on it later. when I try to see anything I found it empty I will try to reinstall it..may be there was an error while installing then I will try to see what's wrong in python. What I should do in this situation ?
—
Reply to this email directly, view it on GitHub<https://github.com/N0rz3/Zehef/issues/8#issuecomment-1624855649>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIY2PBRW3VYK4IUQL3PWZX3XO6YKVANCNFSM6AAAAAAZ5PPGWQ>.
You are receiving this because you commented.Message ID: ***@***.***>
> There is nothing to install, all you need to do is create that empty __init__.py file in the lib folder and everything should work
> […](#)
> ________________________________ From: No One ***@***.***> Sent: Friday, July 7, 2023 12:35:14 PM To: N0rz3/Zehef ***@***.***> Cc: Suman Roy ***@***.***>; Comment ***@***.***> Subject: Re: [N0rz3/Zehef] CLI (Issue #8) Nice information I will get deep on it later. when I try to see anything I found it empty I will try to reinstall it..may be there was an error while installing then I will try to see what's wrong in python. What I should do in this situation ? — Reply to this email directly, view it on GitHub<[#8 (comment)](https://github.com/N0rz3/Zehef/issues/8#issuecomment-1624855649)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIY2PBRW3VYK4IUQL3PWZX3XO6YKVANCNFSM6AAAAAAZ5PPGWQ>. You are receiving this because you commented.Message ID: ***@***.***>
Bro it worked...I reinstalled it and when you told me to make file " ___in* " I told myself that he already created why I would create onther. Then I wnt to check it agin I didn't find any thing then I create it with nano as type of change then it work.
Note : I make upgrade .By the way thank you for your help.