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

Impossible to run in a subprocess #40

Open
WeissMichael opened this issue Sep 4, 2018 · 2 comments
Open

Impossible to run in a subprocess #40

WeissMichael opened this issue Sep 4, 2018 · 2 comments

Comments

@WeissMichael
Copy link

I'm trying to run the reverse-geocoder into a multiprocessing pool and I get this error.
AssertionError: daemonic processes are not allowed to have children

So I guess your implementation doesn't allow to run the search from subprocesses ?

@davidstrouksf
Copy link

Hi, I'm experiencing the same issue. Did you get an answer or figured it out by yourself?

@WeissMichael
Copy link
Author

Hi,
by looking at the code I forced the mode=1 which desactivates the multi-threaded K-D Tree (default mode=2).
Another turn around is to use the library which inspired this one - reverse-geocode - which works in in subprocesses but is a lot slower !

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

No branches or pull requests

2 participants