m1guelpf / chatgpt-telegram

Run your own GPTChat Telegram bot, with a single command!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker install headless browser

rafalohaki opened this issue · comments

2022/12/14 11:59:27 Downloading driver to /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000
2022/12/14 11:59:31 Downloaded driver successfully
/root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/playwright.sh: line 3: /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/node: not found
2022/12/14 11:59:31 Couldn't get OpenAI session: Couldn't install headless browser: could not install driver: could not install browsers: could not install browsers: exit status 127
2022/12/14 11:59:48 Couldn't get OpenAI session: Couldn't install headless browser: could not install driver: could not install driver: could not check if driver is up2date: could not run driver: exit status 127

Any solution?

I have this issue too. I wonder if it's because I am running Windows 7

You're using the official docker image ?

ghcr.io/m1guelpf/chatgpt-telegram

Can you give more details ?

OS (if windows, using wsl?), docker parameters, etc

You're using the official docker image ?

ghcr.io/m1guelpf/chatgpt-telegram

Can you give more details ?

OS (if windows, using wsl?), docker parameters, etc

UPDATE: I managed to get passed this somehow. I got everything working but then I couldn't log into ChatGpt. Chromium kept popping up with this "chrome is being controlled by automated test software". Cloudflare couldn't authenticate me since it wasn't detecting a human but a bot. I gave up at that point.

Same issue here.

chatgpt-telegram    | 2022/12/27 16:47:18 Downloading driver to /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000
chatgpt-telegram    | 2022/12/27 16:47:20 Downloaded driver successfully
chatgpt-telegram    | /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/playwright.sh: line 3: /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/node: not found
chatgpt-telegram    | 2022/12/27 16:47:20 Couldn't get OpenAI session: Couldn't install headless browser: could not install driver: could not install browsers: could not install browsers: exit status 127

OS: Proxmox -> Debian -> Docker

docker-compose.yml

services:
  chatgpt-telegram:
    image: ghcr.io/m1guelpf/chatgpt-telegram:latest
    container_name: chatgpt-telegram
    volumes:
      # your ".config" local folder must include a "chatgpt.json" file
      - .config/:/root/.config
      - .cache/:/root/.cache
    environment:
      - TELEGRAM_ID=
      - TELEGRAM_TOKEN=

I added .cache folder to volumes to double check the following error /root/.cache/ms-playwright-go/x/playwright.sh: line 3: /root/.cache/ms-playwright-go/x/node: not found
But the node file does exists.

No proxy in my network, as that was a suggested solution in another issue.

Same problem

UPDATE: After giving up on the errors from this repository, I came across this solution which worked perfectly for integrating Chatgpt with Telegram https://github.com/iamsushanth/telegram-chatbot-using-open-ai-python-heroku

GitHub
Telegram ChatBot using OpenAI - Python Deployed on Heroku Server. Demo: https://t.me/web3taskbot - GitHub - iamsushanth/telegram-chatbot-using-open-ai-python-heroku: Telegram ChatBot using OpenAI ...

UPDATE: After giving up on the errors from this repository, I came across this solution which worked perfectly for integrating Chatgpt with Telegram https://github.com/iamsushanth/telegram-chatbot-using-open-ai-python-heroku

GitHub**GitHub - iamsushanth/telegram-chatbot-using-open-ai-python-heroku: Telegram ChatBot using OpenAI - Python Deployed on Heroku Server. Demo: https://t.me/web3taskbot**Telegram ChatBot using OpenAI - Python Deployed on Heroku Server. Demo: https://t.me/web3taskbot - GitHub - iamsushanth/telegram-chatbot-using-open-ai-python-heroku: Telegram ChatBot using OpenAI ...

Can you please elaborate a bit on how it works? The repo doesn't have any info and I have no idea how to use it 😅

How to use that repo
1-Install all the dependencies in the requirements.txt file.
2-You'll need to sign up with Open AI and get an Open AI API Key
3-Set up a Telegram bot using BotFather
4-Edit the source code and change the API key to your key.
5-Edit the token.txt file and change the token key to your Telegram bot key
6-After all this is set up run the program using the bot.py script
Here is a video tutorial with the full explanation of how to use that repo (https://www.youtube.com/watch?v=nEu3jb22ffE)

commented

Same problem

Same issue and need a hand, thanks.

2023/02/24 04:16:31 Downloading driver to /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000
2023/02/24 04:16:33 Downloaded driver successfully
/root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/playwright.sh: line 3: /root/.cache/ms-playwright-go/1.20.0-beta-1647057403000/node: not found
2023/02/24 04:16:33 Couldn't get OpenAI session: Couldn't install headless browser: could not install driver: could not install browsers: could not install browsers: exit status 127
2023/02/24 05:18:44 Couldn't get OpenAI session: Couldn't install headless browser: could not install driver: could not install driver: could not check if driver is up2date: could not run driver: exit status 127