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


Groups > comp.lang.python > #100944 > unrolled thread

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

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-12-29 02:19 -0500
Last post2015-12-29 02:19 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#100944 — Re: EOFError: marshal data too short -- causes?

FromTerry Reedy <tjreedy@udel.edu>
Date2015-12-29 02:19 -0500
SubjectRe: EOFError: marshal data too short -- causes?
Message-ID<mailman.48.1451373609.11925.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web