Coder Social home page Coder Social logo

Error ModuleNotFoundError about osintgram HOT 9 CLOSED

Sergio-PG avatar Sergio-PG commented on May 21, 2024
Error ModuleNotFoundError

from osintgram.

Comments (9)

DvntEros avatar DvntEros commented on May 21, 2024 2

Move to the src directory (/[...]/Osintgram/src/).
Edit the Osintgram.py script (vi Osintgram.py).
Edit "geolocator = Nominatim()" to read "geolocator = Nominatim(user_agent="http")".
For me, this appeared on line 22.

Source I used to understand the problem: https://stackoverflow.com/questions/52600278/correct-way-to-use-geopy-nominatim

Hope this helps!

from osintgram.

Wikyo-src avatar Wikyo-src commented on May 21, 2024

got the same issue, please help us

from osintgram.

Datalux avatar Datalux commented on May 21, 2024

Install it via pip pip install geopy

from osintgram.

Wikyo-src avatar Wikyo-src commented on May 21, 2024

Now, i've got a new issue;
Traceback (most recent call last):
File "main.py", line 4, in
from src.Osintgram import Osintgram
File "/home/wikyo/Osintgram/src/Osintgram.py", line 19, in
class Osintgram:
File "/home/wikyo/Osintgram/src/Osintgram.py", line 22, in Osintgram
geolocator = Nominatim()
File "/home/wikyo/.local/lib/python3.8/site-packages/geopy/geocoders/nominatim.py", line 105, in init
raise ConfigurationError(
geopy.exc.ConfigurationError: Using Nominatim with default or sample user_agent "geopy/2.0.0" is strongly discouraged, as it violates Nominatim's ToS https://operations.osmfoundation.org/policies/nominatim/ and may possibly cause 403 and 429 HTTP errors. Please specify a custom user_agent with Nominatim(user_agent="my-application") or by overriding the default user_agent: geopy.geocoders.options.default_user_agent = "my-application".

from osintgram.

Datalux avatar Datalux commented on May 21, 2024

Can you try to use the development branch?
Did you use Python 3.9?

from osintgram.

Wikyo-src avatar Wikyo-src commented on May 21, 2024

I don't know how to install python 3.9

from osintgram.

wots09 avatar wots09 commented on May 21, 2024

Now, i've got a new issue;
Traceback (most recent call last):
File "main.py", line 4, in
from src.Osintgram import Osintgram
File "/home/wikyo/Osintgram/src/Osintgram.py", line 19, in
class Osintgram:
File "/home/wikyo/Osintgram/src/Osintgram.py", line 22, in Osintgram
geolocator = Nominatim()
File "/home/wikyo/.local/lib/python3.8/site-packages/geopy/geocoders/nominatim.py", line 105, in init
raise ConfigurationError(
geopy.exc.ConfigurationError: Using Nominatim with default or sample user_agent "geopy/2.0.0" is strongly discouraged, as it violates Nominatim's ToS https://operations.osmfoundation.org/policies/nominatim/ and may possibly cause 403 and 429 HTTP errors. Please specify a custom user_agent with Nominatim(user_agent="my-application") or by overriding the default user_agent: geopy.geocoders.options.default_user_agent = "my-application".

got the same prob
edit: tried setting python 3.8 as higher priority but then installed python 3.9 unless i installed it wrong but no luck

from osintgram.

Sergio-PG avatar Sergio-PG commented on May 21, 2024

thx

from osintgram.

DvntEros avatar DvntEros commented on May 21, 2024

No problem; hope it's humming along nicely now!

from osintgram.

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.