olivia-ai / olivia-ai.org Goto Github PK
View Code? Open in Web Editor NEW💻 The website and an online client for Olivia
Home Page: https://olivia-ai.org
License: MIT License
💻 The website and an online client for Olivia
Home Page: https://olivia-ai.org
License: MIT License
After running docker build -t front .
I get the output below.
I thought I had a problem with docker accessing Github (sass/node-sass#2773) but it seems that's not the problem. I can download other packages if I remove package-lock.json and try a fresh install. In that case, I get a different error.
developer@developer:~/Documents/github/olivia-ai/olivia-ai.org$ docker build -t front .
Sending build context to Docker daemon 44.94MB
Step 1/10 : FROM node:lts-alpine
---> e979a7f5b083
Step 2/10 : ARG VUE_APP_URL=ws://localhost:8080
---> Using cache
---> d919a98ac560
Step 3/10 : RUN npm install -g http-server
---> Using cache
---> 6232e267e275
Step 4/10 : WORKDIR /app
---> Using cache
---> 1fb5453410ab
Step 5/10 : COPY package*.json ./
---> Using cache
---> 533fadedbc83
Step 6/10 : RUN npm ci
---> Running in 2064737c43f7
> [email protected] install /app/node_modules/fsevents
> node install
> [email protected] postinstall /app/node_modules/core-js
> node scripts/postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] install /app/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/linux_musl-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/linux_musl-x64-83_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> [email protected] postinstall /app/node_modules/node-sass
> node scripts/build.js
Building: /usr/local/bin/node /app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli '/usr/local/bin/node',
gyp verb cli '/app/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library='
gyp verb cli ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python Error: not found: python
gyp verb `which` failed at getNotFoundError (/app/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/app/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/app/node_modules/which/which.js:80:29)
gyp verb `which` failed at /app/node_modules/which/which.js:89:16
gyp verb `which` failed at /app/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /app/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21) {
gyp verb `which` failed code: 'ENOENT'
gyp verb `which` failed }
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (/app/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (/app/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/app/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/app/node_modules/which/which.js:80:29)
gyp ERR! stack at /app/node_modules/which/which.js:89:16
gyp ERR! stack at /app/node_modules/isexe/index.js:42:5
gyp ERR! stack at /app/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:192:21)
gyp ERR! System Linux 5.10.0-1044-oem
gyp ERR! command "/usr/local/bin/node" "/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /app/node_modules/node-sass
gyp ERR! node -v v14.17.5
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-08-30T17_31_55_611Z-debug.log
The command '/bin/sh -c npm ci' returned a non-zero code: 1
I'm using:
Docker version 20.10.8, build 3967b7d
docker-compose version 1.29.2, build 5becea4c
Ubuntu 20.04.3 LTS
In Chrome and Firefox, when you navigate to https://olivia-ai.org/chat it won't pick up your microphone until you click on the language dropdown adn select a language. it then prompts you if you want to allow access to your microphone.
Before selecting a language, clicking on the button in the middle just makes a beep but doesn't actually listen.
Tested on my android and it does the same thing. You have to select a Language first before the microphone promp appears.
It would be helpful to add a message to the page, or get it to try and access the microphone straight away?
Unfortunately it seems like the docker image assumes a static port for the olivia backend. This makes using the docker image in different configurations a tedius task because you must either:
In general it's good practice to not hard code these things and make it so that its configurable at run time, otherwise it is exceedingly difficult to make applications against the software.
"Samantha"'s voice isn't chose
Hi, It seems the Speech-to-text has problems. When i goto https://olivia-ai.org/chat it also says "en-GB voice loaded." instead of de-DE, there are some javascript errors on console too:
Error during service worker registration: TypeError: Failed to register a ServiceWorker for scope ('https://olivia-ai.org/') with script ('https://olivia-ai.org/service-worker.js'): ServiceWorker script evaluation failed
This errors “ReferenceError: Can't find variable: webkitSpeechRecognition” happens in Safari iOS and macOS. This error prevents the site from loading.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.