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

not forking for ubuntu #1

Closed
NoamGaash opened this issue Mar 30, 2023 · 4 comments
Closed

not forking for ubuntu #1

NoamGaash opened this issue Mar 30, 2023 · 4 comments

Comments

@NoamGaash
Copy link

the command catai serve doesn't work.
tested on two ubuntu versions.

version Ubuntu 22.04.2 LTS:

catai serve                                         
$ cd /home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai
$ npm start

> catai@0.1.5 start
> node src/index.js

Listening on http://127.0.0.1:3000
/home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:39
                throw error;
                ^

Error: Gtk-Message: 16:22:50.858: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

    at Socket.<anonymous> (/home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:35:25)
    at Socket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.12.1
file:///home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/zx/build/core.js:146
            let output = new ProcessOutput(code, signal, stdout, stderr, combined, message);
                         ^

ProcessOutput [Error]: /home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:39
                throw error;
                ^

Error: Gtk-Message: 16:22:50.858: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

    at Socket.<anonymous> (/home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:35:25)
    at Socket.emit (node:events:525:35)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.12.1
    at file:///home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/scripts/cli.js:34:27
    exit code: 1
    at ChildProcess.<anonymous> (file:///home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/zx/build/core.js:146:26)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1091:16)
    at ChildProcess._handle.onexit (node:internal/child_process:302:5)
    at Process.callbackTrampoline (node:internal/async_hooks:130:17) {
  _code: 1,
  _signal: null,
  _stdout: '\n' +
    '> catai@0.1.5 start\n' +
    '> node src/index.js\n' +
    '\n' +
    'Listening on http://127.0.0.1:3000\n',
  _stderr: '/home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:39\n' +
    '                throw error;\n' +
    '                ^\n' +
    '\n' +
    'Error: Gtk-Message: 16:22:50.858: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.\n' +
    '\n' +
    '    at Socket.<anonymous> (/home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:35:25)\n' +
    '    at Socket.emit (node:events:525:35)\n' +
    '    at endReadableNT (node:internal/streams/readable:1359:12)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n' +
    '\n' +
    'Node.js v18.12.1\n',
  _combined: '\n' +
    '> catai@0.1.5 start\n' +
    '> node src/index.js\n' +
    '\n' +
    'Listening on http://127.0.0.1:3000\n' +
    '/home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:39\n' +
    '                throw error;\n' +
    '                ^\n' +
    '\n' +
    'Error: Gtk-Message: 16:22:50.858: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.\n' +
    '\n' +
    '    at Socket.<anonymous> (/home/noam/.nvm/versions/node/v18.12.1/lib/node_modules/catai/node_modules/openurl/openurl.js:35:25)\n' +
    '    at Socket.emit (node:events:525:35)\n' +
    '    at endReadableNT (node:internal/streams/readable:1359:12)\n' +
    '    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n' +
    '\n' +
    'Node.js v18.12.1\n'
}

Node.js v18.12.1

on Ubuntu 18.04.6 LTS it does open a server, then it shows the following error:
image


/home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat)
/home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat)
/home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat)
/home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat)
Error: /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat) /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat) /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat) /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/noam/.npm-global/lib/node_modules/catai/models/executable/chat) Thread unexpected closed!
@ido-pluto
Copy link
Collaborator

ido-pluto commented Mar 30, 2023

That's a problem with the package that opens the URL in the default browser.

I will fix it in the next release, hopefully, today in the evening :)

The other problem is probably related to the alpaca's executable, maybe there is a workaround - install some ubuntu packages, anyway, that will be added to the package.

Thank you for reporting!

@gaffner
Copy link
Collaborator

gaffner commented Mar 30, 2023

When i removed the line
openurl.open(browserURL); in the index.js file,
it worked for my ubuntu 22 LTS machine
@NoamGaash

@ido-pluto
Copy link
Collaborator

Fixed in version 1.7

@NoamGaash
Copy link
Author

thank you!

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

3 participants