askrella / whatsapp-chatgpt

ChatGPT + DALL-E + WhatsApp = AI Assistant :rocket: :robot:
3.38k stars 817 forks source link

QR code failure #100

Closed HenryWang001 closed 11 months ago

HenryWang001 commented 1 year ago

┌ 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)
navopw commented 1 year ago

On which operating system are you? Windows, Linux?

Rishabhg71 commented 1 year ago

@HenryWang001 you should install chrome or chromium (linux)

navopw commented 1 year ago

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

Please give feedback if you tried again @HenryWang001

Zzuzzolo18 commented 1 year ago

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. :)

navopw commented 11 months ago

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!