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

Error con librerias #2

Open
powermx opened this issue Mar 27, 2023 · 0 comments
Open

Error con librerias #2

powermx opened this issue Mar 27, 2023 · 0 comments

Comments

@powermx
Copy link

powermx commented Mar 27, 2023

Hola Luis

cuando intento usar este código :

`import util from 'util'
import PerplexityAI from 'perplexityai'
let handler = async (m, { conn, text, args, isPrems, isOwner, usedPrefix, command }) => {
m.react('🤖')

if (!text) throw "Hola, soy un Chatbot basado en Perplexity, En que te puedo ayudar?"
const response = await PerplexityAI.search(text);
console.log('response', response);
m.reply(response)
}
handler.help = ['perplexity']
handler.tags = ['tools']
handler.command = ['perplexity']
handler.rowner = true
handler.group = true

export default handler`

Me resulta con éste error :

Error: Failed to launch the browser process! /root/.cache/puppeteer/chrome/linux-1108766/chrome-linux/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory

¿Es necesario tener instalada alguna fuente como Chromium o algo similar? estoy trabajando en Ubuntu 18.04

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

1 participant