Walter0807 / MotionBERT

[ICCV 2023] PyTorch Implementation of "MotionBERT: A Unified Perspective on Learning Human Motion Representations"
Apache License 2.0
1k stars 120 forks source link

RuntimeError: Python 3.8 or later is required #128

Closed KohsukeIde closed 4 months ago

KohsukeIde commented 4 months ago
WARNING: You are using a SMPL model, with only 10 shape coefficients.
init backbone time: 0.403638s
WARNING: You are using a SMPL model, with only 10 shape coefficients.
init whole model time: 0.156508s
Loading checkpoint checkpoint/mesh/FT_MB_release_MB_ft_pw3d/best_epoch.bin
Traceback (most recent call last):
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio/core/imopen.py", line 138, in imopen
    return loader(request, **kwargs)
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio/core/imopen.py", line 130, in loader
    return config.plugin_class(request, **kwargs)
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio/config/plugins.py", line 100, in plugin_class
    module = importlib.import_module(self.module_name, self.package_name)
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio/plugins/ffmpeg.py", line 143, in <module>
    import imageio_ffmpeg
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio_ffmpeg/__init__.py", line 7, in <module>
    from ._io import count_frames_and_secs, read_frames, write_frames
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio_ffmpeg/_io.py", line 8, in <module>
    from ._parsing import LogCatcher, cvsecs, parse_ffmpeg_header
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio_ffmpeg/_parsing.py", line 5, in <module>
    from ._utils import logger
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio_ffmpeg/_utils.py", line 7, in <module>
    from pkg_resources import resource_filename
  File "/home/kohsuke/.local/lib/python3.7/site-packages/setuptools-69.2.0-py3.7.egg/pkg_resources/__init__.py", line 23, in <module>
    raise RuntimeError("Python 3.8 or later is required")
RuntimeError: Python 3.8 or later is required

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "infer_wild_mesh.py", line 94, in <module>
    vid = imageio.get_reader(opts.vid_path,  'ffmpeg')
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio/v2.py", line 290, in get_reader
    image_file = imopen(uri, "r" + mode, **imopen_args)
  File "/home/kohsuke/anaconda3/envs/motionB/lib/python3.7/site-packages/imageio/core/imopen.py", line 156, in imopen
    raise err_type(err_msg) from err_from
OSError: An unknown error occurred while initializing plugin `FFMPEG`.

I tried running infer_wild_mesh.py and faced this error. but MotionBERT is supposed to work with python 3.7 environment. If anyone got a solution to this, please let me know.