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

geoarrow.rust.io.write_flatgeobuf() hangs when writing to a file path (but succeeds when writing to a file object) #992

Open
paleolimbot opened this issue Feb 4, 2025 · 2 comments

Comments

@paleolimbot
Copy link

I can follow up with a more complete example, but when preparing geoarrow-data I tried to use:

write_flatgeobuf(table, "path/to/file.fgb", write_index=False)

...which seemed to write the file correctly but I had to Control-C the process to get it to finish.

with open("path/to/file.fgb, "wb") as f:
    write_flatgeobuf(table,f, write_index=False)

...was what I needed to work around the issue.

@kylebarron
Copy link
Member

Hmm perhaps this is an issue with the synchronous executor around the async writer. But I would've expected the string path to use the synchronous writer regardless

@paleolimbot
Copy link
Author

I'm having trouble reproducing this one, but I was writing a bunch of files in a row from the same .py file (and possibly reading them using geoarrow-rust, too).

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