Re: Unable to open .zip in Docker container

Hi Dave,

are you using the same versions of Fiona and GDAL?

Cheers, Hannes

On Tue, 18 Feb 2020 16:25:57 -0800 wrote:

I'm trying to load a file in a Docker container using
`fiona.listlayers()` but it says that it's not a supported format
with the following exception:


File \"fiona/_shim.pyx\", line 83, in fiona._shim.gdal_open_vector

File \"fiona/_err.pyx\", line 270, in fiona._err.exc_wrap_pointer

fiona._err.CPLE_OpenFailedError: '/tmp/' not recognized
as a supported file format.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File \"/usr/src/app/numetric/connectrunner/shp_file/\",
line 34, in _listlayers

for layer in fiona.listlayers(filename):

line 407, in wrapper

return f(*args, **kwargs)

line 344, in listlayers

return _listlayers(vsi_path(pobj))

File \"fiona/ogrext.pyx\", line 1512, in fiona.ogrext._listlayers

File \"fiona/_shim.pyx\", line 90, in fiona._shim.gdal_open_vector

The same code works fine on my Mac with the same file, but doesn't in
the `3.8.1-slim-buster` and `3.8.1-alpine3.11` images. Any ideas on
why and what I can do to fix this?



Join to automatically receive all group messages.