whatsapp-chatgpt icon indicating copy to clipboard operation
whatsapp-chatgpt copied to clipboard

QR code failure

Open HenryWang001 opened this issue 2 years ago • 3 comments

┌ Whatsapp ChatGPT & DALL-E │ ◇ ────────────────────────────────────────────────────────────────────────────────────────────────╮ │ │ │ A Whatsapp bot that uses OpenAI's ChatGPT and DALL-E to generate text and images from a prompt. │ │ │ ├───────────────────────────────────────────────────────────────────────────────────────────────────╯ │ ○ Starting /root/whatsapp-chatgpt/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241 reject(new Error([ ^

Error: Failed to launch the browser process! /root/whatsapp-chatgpt/node_modules/whatsapp-web.js/node_modules/puppeteer/.local-chromium/linux-982053/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/root/whatsapp-chatgpt/node_modules/whatsapp-web.js/node_modules/puppeteer/src/node/BrowserRunner.ts:268:9)
at Interface.<anonymous> (/root/whatsapp-chatgpt/node_modules/whatsapp-web.js/node_modules/puppeteer/src/node/BrowserRunner.ts:254:50)
at Interface.emit (node:events:525:35)
at Interface.close (node:internal/readline/interface:533:10)
at Socket.onend (node:internal/readline/interface:259:10)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)

HenryWang001 avatar Feb 23 '23 15:02 HenryWang001

On which operating system are you? Windows, Linux?

navopw avatar Feb 23 '23 22:02 navopw

@HenryWang001 you should install chrome or chromium (linux)

Rishabhg71 avatar Feb 24 '23 06:02 Rishabhg71

Like @RG7279805 said, you have to install chrome or chromium for linux.

Please give feedback if you tried again @HenryWang001

navopw avatar Feb 27 '23 16:02 navopw

Hi, I try to run it on my raspberry pi 3 and I have the same error too. Chromium is installed by default on raspbian, so I don't know the cause of this. If someone give some advice to fix it, i will be very glad. :)

Zzuzzolo18 avatar Mar 31 '23 17:03 Zzuzzolo18

I fixed lots of issues. It currently works on my side.

I will close this PR for now. If you still have issues, please open another PR.

Thanks!

navopw avatar Oct 01 '23 12:10 navopw