Build completed but the following error was printed:
...
Successfully built nodriver-0.48.1-py3-none-any.whl
==> Entering fakeroot environment...
==> Starting package()...
*** Error compiling '/home/build/.cache/yay/python-nodriver/pkg/python-nodriver/usr/lib/python3.14/site-packages/nodriver/cdp/network.py'...
File "/usr/lib/python3.14/site-packages/nodriver/cdp/network.py", line 1365
#: JSON (�Inf).
^
SyntaxError: Non-UTF-8 code starting with '\xb1' on line 1365, but no encoding declared; see https://peps.python.org/pep-0263/ for details
*** Error compiling '/home/build/.cache/yay/python-nodriver/pkg/python-nodriver/usr/lib/python3.14/site-packages/nodriver/cdp/network.py'...
File "/usr/lib/python3.14/site-packages/nodriver/cdp/network.py", line 1365
#: JSON (�Inf).
^
SyntaxError: Non-UTF-8 code starting with '\xb1' on line 1365, but no encoding declared; see https://peps.python.org/pep-0263/ for details
/usr/lib/python3.14/site-packages/nodriver/core/connection.py:414: SyntaxWarning: 'continue' in a 'finally' block
continue
/usr/lib/python3.14/site-packages/nodriver/core/connection.py:414: SyntaxWarning: 'continue' in a 'finally' block
continue
==> Tidying install...
The same error appears later, when using yt-dlp-getpot-wpc-git. It's caused by the ± char in the comment in the python code. Removing it fixes the problem.
Pinned Comments
Kimiblock commented on 2025-02-08 02:54 (UTC)
Note that this python library requires python-websocket>=14