This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Problems with gzip and zlib

0 votes

Hey folks,

I'm trying to get behind some of the example from the documentation.
However, when I try to download and run the code in Pycharm, I get the following error message (here when trying to run dg-advection-diffusion):

Traceback (most recent call last):
  File "/home/daniel/PycharmProjects/Nelumbox_Control_V1/Tests/demo/undocumented/advection-diffusion/python/demo_advection-diffusion.py", line 37, in <module>
    mesh = Mesh("dolfin_fine.xml.gz")
  File "/usr/lib/python2.7/dist-packages/dolfin/mesh/meshes.py", line 63, in __init__
    cpp.Mesh.__cppinit__(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dolfin/cpp/mesh.py", line 2092, in __init__
    _mesh.Mesh_swiginit(self, _mesh.new_Mesh(*args))
RuntimeError: gzip error: iostream error

Does someone know what to do with this? I used the repository version in Ubuntu, running 16:04 LTS.

asked Nov 15, 2016 by freistil FEniCS Novice (260 points)

Is the the mesh file dolfin_fine.xml.gz actually in the /home/daniel/PycharmProjects/Nelumbox_Control_V1/Tests/demo/undocumented/advection-diffusion/python directory? Make sure it is not broken. Try for instance to open and inspect it by running this in a terminal:

xdg-open /home/daniel/PycharmProjects/Nelumbox_Control_V1/Tests/demo/undocumented/advection-diffusion/python/dolfin_fine.xml.gz
...