terry3041 / pyChatGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
GNU General Public License v3.0
1.35k stars 252 forks source link

ValueError: Chrome installation not found #104

Closed Xmaspro closed 1 year ago

Xmaspro commented 1 year ago

Is there anyone face this problem? I don't know how to solve.

DEBUG:pyChatGPT:Starting virtual display...
DEBUG:pyChatGPT:Initializing browser...
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
[/usr/local/lib/python3.8/dist-packages/pyChatGPT/pyChatGPT.py](https://localhost:8080/#) in __init_browser(self)
    181         try:
--> 182             self.driver = uc.Chrome(options=options)
    183         except TypeError as e:

6 frames
TypeError: expected str, bytes or os.PathLike object, not NoneType

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
[/usr/local/lib/python3.8/dist-packages/pyChatGPT/pyChatGPT.py](https://localhost:8080/#) in __init_browser(self)
    183         except TypeError as e:
    184             if str(e) == 'expected str, bytes or os.PathLike object, not NoneType':
--> 185                 raise ValueError('Chrome installation not found')
    186             raise e
    187 

ValueError: Chrome installation not found
terry3041 commented 1 year ago

Install chrome.