Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100944

Re: EOFError: marshal data too short -- causes?

From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: EOFError: marshal data too short -- causes?
Date 2015-12-29 02:19 -0500
Message-ID <mailman.48.1451373609.11925.python-list@python.org> (permalink)
References <56822D4F.8070309@g.nevcal.com>

Show all headers | View raw


On 12/29/2015 1:50 AM, Glenn Linderman wrote:
> Here's a sanatized stack trace off my web server:
>
>    File ".../cgihelpers.py", line 10, in
>      import cgitb
>    File ".../py34/lib/python3.4/cgitb.py", line 24, in
>      import inspect
>    File ".../py34/lib/python3.4/inspect.py", line 54, in
>      from dis import COMPILER_FLAG_NAMES as _flag_names
>    File "", line 2237, in _find_and_load
>    File "", line 2226, in _find_and_load_unlocked
>    File "", line 1200, in _load_unlocked
>    File "", line 1129, in _exec
>    File "", line 1467, in exec_module
>    File "", line 1570, in get_code
>    File "", line 656, in _compile_bytecode
> EOFError: marshal data too short
>
>
> It worked this morning, and does this now.  I hadn't changed anything.

Since it crashes trying to unmarshal compiled dis bytecode, I would 
assume that the .pyc file is corrupted and remove it. Based on the 
above, it should be in
.../py34/lib/python3.4/__pycache__/dis.*.pyc
Python will then recompile dis and write a new .pyc file.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: EOFError: marshal data too short -- causes? Terry Reedy <tjreedy@udel.edu> - 2015-12-29 02:19 -0500

csiph-web