joeyballentine / Video-Inference

Easy inference for video networks. Currently supports SOFVSR (traiNNer Version), RIFE, and TecoGAN-pytorch
55 stars 1 forks source link

ImportError: cannot import name '_has_surrogates' from 'email.utils #1

Closed ABDOELSHEMY closed 3 years ago

ABDOELSHEMY commented 3 years ago

hi @JoeyBallentine thank you for your great work when i try to test it, it give me this error

PS J:\Sr\Video-Inference-master> python run.py ./models/rife.pth --input "./input/0001.mov" --output "./output/output_video.mp4" --chop_forward Traceback (most recent call last): File "run.py", line 2, in import torch File "C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\site-packages\torch__init__.py", line 365, in import torch.hub File "C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\hub.py", line 17, in from urllib.request import urlopen File "C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 88, in import http.client File "C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\http\client.py", line 71, in import email.parser File "C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\email\parser.py", line 12, in from email.feedparser import FeedParser, BytesFeedParser File "C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\email\feedparser.py", line 27, in from email._policybase import compat32 File "C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\email_policybase.py", line 9, in etag: "1603612825" ImportError: cannot import name '_has_surrogates' from 'email.utils' (C:\Users\ABDO\AppData\Local\Programs\Python\Python38\lib\email\utils.py)

windows 10 cpu mode

how can i solve this please

ABDOELSHEMY commented 3 years ago

ok, seem like it is due to i have 2 python version, remove one of them solve the error, i can safely close this now