-
-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Crash on Python3.8+ due to time.clock() in render_strategy/ascii_strategy.py
on Python3.8+ time.clock() should be replaced bytime.perf_counter() or otherelse
stackoverflow link about that
To Reproduce
Steps to reproduce the behavior:
- install python3.9.9
- install video-to-ascii
- run video-to-ascii
- and you will get an error bellow
Traceback (most recent call last):
File "/Users/xxx/Downloads/AE/./venv/bin/video-to-ascii", line 8, in <module>
sys.exit(main())
File "/Users/xxx/Downloads/AE/venv/lib/python3.9/site-packages/video_to_ascii/cli.py", line 21, in main
player.play(ARGS.file, strategy=ARGS.strategy, output=ARGS.output, play_audio=ARGS.with_audio)
File "/Users/xxx/Downloads/AE/venv/lib/python3.9/site-packages/video_to_ascii/player.py", line 23, in play
engine.play(output)
File "/Users/xxx/Downloads/AE/venv/lib/python3.9/site-packages/video_to_ascii/video_engine.py", line 36, in play
self.render_strategy.render(self.read_buffer,
File "/Users/xxx/Downloads/AE/venv/lib/python3.9/site-packages/video_to_ascii/render_strategy/ascii_strategy.py", line 120, in render
t0 = time.clock()
AttributeError: module 'time' has no attribute 'clock'Expected behavior
Hope support python3.9.9
Desktop (please complete the following information):
- OS: [Macos]
- Version [12.1]
s0m31-hub, adamsoderstrom, emosy, itsarakio, caseypugh and 3 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working