EOFError when extracting from a ZipFile inside a function

What is the output of

import Pkg
Pkg.status(Pkg.PKGMODE_MANIFEST)

and

versioninfo()

?
The function works for me.