Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOFError: marshal data too short #24

Open
Nicko2102 opened this issue Dec 3, 2024 · 0 comments
Open

EOFError: marshal data too short #24

Nicko2102 opened this issue Dec 3, 2024 · 0 comments

Comments

@Nicko2102
Copy link

Nicko2102 commented Dec 3, 2024

[Ubuntu 24.10, virtual environment, using jupyter nbconvert to python file]
When trying to run any of the .ipynb files, i get the error "EOFError: marshal data too short". This is preceded by what seem to be lots of errors pertaining to the import of function_docs.

(cuda) my_user@ubuntu:~/path/to/trt_pose_hand$ jupyter nbconvert --to python live_hand_pose.ipynb 
[NbConvertApp] Converting notebook live_hand_pose.ipynb to python
/home/my_user/venv/cuda/share/jupyter/nbconvert/templates/python/index.py.j2:61: UserWarning: IPython is needed to transform IPython syntax to pure Python. Install ipython if you need this functionality.
[NbConvertApp] Writing 3979 bytes to live_hand_pose.py
(cuda) my_user@ubuntu:~/path/to/trt_pose_hand$ sc python3 live_hand_pose.py 
Traceback (most recent call last):
  File "/home/my_user/Desktop/github/school/trt_pose_hand/live_hand_pose.py", line 11, in <module>
    import trt_pose.coco
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/trt_pose-0.0.1-py3.12-linux-x86_64.egg/trt_pose/coco.py", line 11, in <module>
    import torchvision.transforms.functional as FT
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torchvision/__init__.py", line 10, in <module>
    from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils  # usort:skip
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torchvision/models/__init__.py", line 2, in <module>
    from .convnext import *
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torchvision/models/convnext.py", line 8, in <module>
    from ..ops.misc import Conv2dNormActivation, Permute
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torchvision/ops/__init__.py", line 23, in <module>
    from .poolers import MultiScaleRoIAlign
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torchvision/ops/poolers.py", line 10, in <module>
    from .roi_align import roi_align
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torchvision/ops/roi_align.py", line 7, in <module>
    from torch._dynamo.utils import is_compile_supported
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torch/_dynamo/__init__.py", line 3, in <module>
    from . import convert_frame, eval_frame, resume_execution
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torch/_dynamo/convert_frame.py", line 31, in <module>
    from torch._dynamo.utils import CompileTimeInstructionCounter
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torch/_dynamo/utils.py", line 62, in <module>
    import torch.fx.experimental.symbolic_shapes
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torch/fx/experimental/symbolic_shapes.py", line 65, in <module>
    from torch.utils._sympy.functions import (
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/torch/utils/_sympy/functions.py", line 7, in <module>
    import sympy
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/sympy/__init__.py", line 22, in <module>
    import mpmath
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/mpmath/__init__.py", line 5, in <module>
    from .ctx_fp import FPContext
  File "/home/my_user/venv/cuda/lib/python3.12/site-packages/mpmath/ctx_fp.py", line 7, in <module>
    from . import function_docs
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 991, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1124, in get_code
  File "<frozen importlib._bootstrap_external>", line 753, in _compile_bytecode
EOFError: marshal data too short
(cuda) my_user@ubuntu:~/path/to/trt_pose_hand$ 

My versions of different libraries:

numpy: 2.0.0
scipy: 1.14.1
scikit-learn: 1.5.2

If anyone else has run into this error, could you please share how you fixed it? I have looked forever online but this function_docs file doesnt seem to be part of any other package other than one installed through this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant