Geopy library Error: Configuration Error
Error details
geopy.exc.ConfigurationError:
Using Nominatim with default or sample `user_agent` "geopy/2.2.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"`.
Solution:
This error is because the default value of UA is bad. Just specify user-agent as a unique string. For example
, when BuyiXiao initializes Nominatim, specify user-agent.
geolocator = Nominatim(user_agent='BuyiXiao')
Read More:
- How to Solve Geopy library Error: Configurationerror Error
- Python requests Error: ConnectionError: (‘Connection aborted.‘, error(104, ‘Connection reset by peer‘))
- urllib.error.HTTPError http error 403 forbidden
- How to Fix “HTTP error 403: forbidden” in Python 3. X
- urllib.error.HTTPError: HTTP Error 403: Forbidden [How to Solve]
- [Solved] AttributeError: Manager isn‘t available; ‘auth.User‘ has been swapped for ‘
- [Solved] Python requests ConnectionError Error: connection aborted BadStatusLine
- Python parsing JSON Error: NameError: name ‘false’ is not defined
- Keras import a custom metric model error: unknown metric function: Please ensure this object is passed to`custom_object‘
- [Solved] Python Django error: error: (1146, “Table ‘mydb.django_session’ doesn’t exist”)
- [Solved] HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/saved_model
- python: File Processing and Input and Output
- Python TypeError: Unrecognized value type: <class ‘str‘>dateutil.parser._parser.ParserError: Unknow
- [Solved] jupyter notebook Error: ModuleNotFoundError: No module named jupyter_nbextensions_configurator
- Python: ___ () vs ___ str__()
- Crawler overtime error socket.timeout: timed out/NameError: name ‘socket‘ is not defined
- Linux Fatal Python error: Py_Initialize Unable to get the locale encoding
- [Solved] unknown error: Chrome failed to start: exited abnormally (Driver info: chromedriver=2.36.540471
- SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
- [Solved] XiaoMi Phone Uiautomator Startup Error: uiautomator2.GatewayError