Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError #77

Open
karl-an opened this issue Aug 12, 2024 · 1 comment
Open

UnicodeDecodeError #77

karl-an opened this issue Aug 12, 2024 · 1 comment

Comments

@karl-an
Copy link

karl-an commented Aug 12, 2024

Hi there,

i try to reproduce the example from the start page and i get the following error:

from talkingheads import PiClient
chathead = PiClient()
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\bikraak\talkingheads.venv\Lib\site-packages\talkingheads\model_library\pi.py", line 18, in init
super().init(
File "C:\Users\bikraak\talkingheads.venv\Lib\site-packages\talkingheads\base_browser.py", line 149, in init
version_main=detect_chrome_version(driver_version),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\bikraak\talkingheads.venv\Lib\site-packages\talkingheads\utils.py", line 56, in detect_chrome_version
out = re.search(r"Google\s+Chrome\s+(\d{3})", out.decode())
^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 41: invalid start byte

@ugorsahin
Copy link
Owner

It appears that the program is unable to decode the output of the google-chrome --version command. You can manually specify your current Google Chrome version by using the driver_version argument when instantiating, for example PiClient(driver_version=128).

Please also provide the output of <path-to-google-chrome> --version via the command line (or PowerShell), to help me observe the output of the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants