Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error around missing requests library #3521

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

lonvia
Copy link
Member

@lonvia lonvia commented Aug 19, 2024

The requests library will usually be pulled in by osmium and is therefore not a direct dependency of Nominatim. We check for optional osmium but not optional requests.

Import requests library later than osmium to avoid that there is an ugly 'Module not found' message, when replication is called without having osmium installed

requests will usually be pulled in by osmium and is therefore not
a direct dependency of nominatim. Make sure it is only used, when
osmium is present.
@lonvia lonvia merged commit c7d80a2 into osm-search:master Aug 20, 2024
11 checks passed
@lonvia lonvia deleted the make-requests-optional branch August 20, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant