GithubHelp home page GithubHelp logo

Comments (7)

sundowndev avatar sundowndev commented on July 18, 2024 4

To make it short just add "config" to the requirements. Once added manually it works.

No, config is the config.py file. You have to create it manually, just read the wiki.

Create the config file :
cp config.example.py config.py

from phoneinfoga.

LoZio avatar LoZio commented on July 18, 2024 2

pip 19.0.3 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
Linux xyz 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux (it is a raspbian on a raspberry)

Again: if you remove the config.py FILE, you have the error above about the google_api_key variable, and this makes sense since it is defined in that file.
The first error I reported is about a module, and if I add the module (forget about config.py file) the program runs. If I do a
pip3 install config
then the module is installed and the program runs.
You simply have the module already installed, but not all people have so the request to add it to the requirements.
In any case no problem for me adding it manually, I opened the issue to simplify the life to other people, we wrote a full page of comments while a simple line added to requirements.txt would have solved the issue.

from phoneinfoga.

LoZio avatar LoZio commented on July 18, 2024 1

I read the docs. If you do not create the config file you get this:

[i] Searching for footprints on web pages... (limit=10)
Traceback (most recent call last):
  File "./phoneinfoga.py", line 89, in <module>
    main()
  File "./phoneinfoga.py", line 70, in main
    scanNumber(args.number)
  File "./phoneinfoga.py", line 37, in scanNumber
    osintScan(number)
  File "/opt/PhoneInfoga/scanners/footprints.py", line 173, in osintScan
    for result in search(req, stop=10):
  File "/opt/PhoneInfoga/lib/googlesearch.py", line 22, in search
    if google_api_key and google_cx_id:
NameError: name 'google_api_key' is not defined

The error I reported is clearly about the module.
ModuleNotFoundError: No module named 'config'
If you do not install the config module you don't even reach the point where the file config.py is read. Actually if you install the module the program runs.

from phoneinfoga.

sundowndev avatar sundowndev commented on July 18, 2024

You shouldn't have to add config to the requirements since the module is about the file config.py and not the package config.

What is your OS, python and pip version ?

from phoneinfoga.

sundowndev avatar sundowndev commented on July 18, 2024

But the tool doesn't use any module named config. The only call to config module actually makes reference to that file. That's why you shouldn't have to add config to the requirements, it's not a module.

https://github.com/sundowndev/PhoneInfoga/blob/c945b31267a396577649170ec248720fc0008d92/lib/googlesearch.py#L14

Maybe python just need a __init__.py ?

from phoneinfoga.

sumeshmurali avatar sumeshmurali commented on July 18, 2024

@Sathishkantamsetti You are getting this error because gecko driver is not in path. Fix this by doing the following steps

  • Goto Gecko driver release page and download the latest version of gecko driver for your platform

  • Extract it using tar -xvzf geckodriver*

  • Make it executable chmod +x geckodriver

  • Move the driver to PATH by running sudo mv geckodriver /usr/local/bin/

Hope this might fix your problem

from phoneinfoga.

sundowndev avatar sundowndev commented on July 18, 2024

#74 (comment)

Running pip3 install config made it work

from phoneinfoga.

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.