This repository was archived by the owner on May 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
This repository was archived by the owner on May 12, 2023. It is now read-only.
Issue with latest imageio library #2
Copy link
Copy link
Open
Description
It seems there's an issue with the latest version of imageio.
$ ttyrec2video ../ttyrecord
Reading ../ttyrecord ...
ttyrec length: 0:00:10.709228 (222 distinct frames)
Traceback (most recent call last):
File "/home/nick/ttyvideo/bin/ttyrec2video", line 8, in <module>
sys.exit(main())
File "/home/nick/ttyvideo/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/nick/ttyvideo/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/nick/ttyvideo/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/nick/ttyvideo/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/nick/ttyvideo/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/nick/ttyvideo/lib/python3.8/site-packages/ttyrec2video/__main__.py", line 86, in main
imageio.plugins.ffmpeg.download()
File "/home/nick/ttyvideo/lib/python3.8/site-packages/imageio/plugins/ffmpeg.py", line 148, in download
raise RuntimeError(
RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'
(ttyvideo)
I was able to work around it by using the following:
$ pip3 install imageio==2.4.1
Collecting imageio==2.4.1
Downloading imageio-2.4.1.tar.gz (3.3 MB)
|████████████████████████████████| 3.3 MB 5.1 MB/s
Requirement already satisfied: numpy in ./lib/python3.8/site-packages (from imageio==2.4.1) (1.22.3)
Requirement already satisfied: pillow in ./lib/python3.8/site-packages (from imageio==2.4.1) (8.4.0)
Building wheels for collected packages: imageio
Building wheel for imageio (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/nick/ttyvideo/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t8eysbnv/imageio/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t8eysbnv/imageio/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-aumo263z
cwd: /tmp/pip-install-t8eysbnv/imageio/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for imageio
Running setup.py clean for imageio
Failed to build imageio
Installing collected packages: imageio
Attempting uninstall: imageio
Found existing installation: imageio 2.19.2
Uninstalling imageio-2.19.2:
Successfully uninstalled imageio-2.19.2
Running setup.py install for imageio ... done
Successfully installed imageio-2.4.1
(ttyvideo)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels