On 2022/12/17 11:18, Mikolaj Kucharski wrote:
> $ youtube-dl -F https://youtu.be/YGdYhvk6xyw
> Traceback (most recent call last):
..
>     from ..compat import compat_os_name
>   File "/usr/local/lib/python3.10/site-packages/youtube_dl/compat.py", line 
> 2368, in <module>
>     import http.server as compat_http_server
>   File "/usr/local/lib/python3.10/http/server.py", line 102, in <module>
>     import socketserver
>   File "/usr/local/lib/python3.10/socketserver.py", line 119
>     """
>        ^
> SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xee in position 
> 2: invalid continuation byte
> 

No such problem here. Is there anything strange about the contents of
/usr/local/lib/python3.10/socketserver.py on your machine? If it looks
corrupt, try reinstalling Python (pkg_add -r -D installed python%3.10)

Reply via email to