-
Notifications
You must be signed in to change notification settings - Fork 88
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 when retrieving GeoZones #2570
Conversation
This solution might work but creates a specific behavior which differs from the rest of the storages. |
I could do: log.info('Downloading GeoZones bundle: %s', filename)
with tmp.open(GEOZONE_FILENAME, 'w') as f:
pass
filename, _ = urlretrieve(filename, tmp.path(GEOZONE_FILENAME)) So it works with all backends |
It's actually even more hacky than the previous one 😅 |
@quaxsze ahah, this time I pushed something you will like I think, downloading the chunk way with |
Sorry my previous comment was not very clear. |
@quaxsze pushed a simple solution with |
I don't think this bug exists anymore. Feel free to open an issue or a new PR if it's still the case. |
The issue is that the script try to write to
/udata/fs/tmp/
but thetmp
directory does not existRelated issue: opendatateam/docker-udata#197
I'm not sure it's the best place to ensure the
/tmp/
directory is there, maybe directly at the initialization phase inudata/core/storages/__init__.py