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

Attention block doesn't load when running locally #6

Closed
felicitywang opened this issue Oct 23, 2019 · 2 comments
Closed

Attention block doesn't load when running locally #6

felicitywang opened this issue Oct 23, 2019 · 2 comments

Comments

@felicitywang
Copy link

The attention block doesn't load when running locally.

image

terminal log

Initializing reference map for embedding vector...
Initializing reference map for embedding vector...
AFTER SETUP
Initiating app
 * Serving Flask app "main" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/exBERT.html HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/main.css HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/img/exBERT.png HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/main.js HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/vendor.js HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/05ca9c06114e79436ea9b5c8d4a7869c.ttf HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/4171e41154ba857f85c536f167d581ba.ttf HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/demo/354992f2ee236604c874a3a627e4042bc68586f8.json HTTP/1.1" 404 -
127.0.0.1 - - [22/Oct/2019 23:49:59] "GET /client/img/exBERT_favicon.png HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:50:07] "GET /client/exBERT.html?sent-a-input=hello+world HTTP/1.1" 200 -
127.0.0.1 - - [22/Oct/2019 23:50:07] "GET /client/demo/354992f2ee236604c874a3a627e4042bc68586f8.json HTTP/1.1" 404 -

Does running locally require compiling frontend? There're some npm dependencies that I can't solve either on linux(ubuntu 18.04) or macos:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.9
npm WARN ava-ts@0.25.2 requires a peer of ava@0.* but none was installed.
npm WARN ava-ts@0.25.2 requires a peer of ts-node@^3.0.0 || ^4.0.1 || ^5.0.0 || ^6.0.0 || ^7.0.0 but none was installed.
npm WARN fork-ts-checker-webpack-plugin@0.4.15 requires a peer of tslint@^4.0.0 || ^5.0.0 but none was installed.

Thank you.

@bhoov
Copy link
Owner

bhoov commented Oct 23, 2019

Yes, it looks like you will need to recompile the frontend. Try the following:

  1. npm install -g npm (if you already have npm installed) OR download from https://www.npmjs.com/get-npm (you can check if you already have npm by running npm -v)
  2. cd client/src
  3. npm install
  4. npm run build

Hopefully this works!

@zz860808
Copy link

Yes, it looks like you will need to recompile the frontend. Try the following:

  1. npm install -g npm (if you already have npm installed) OR download from https://www.npmjs.com/get-npm (you can check if you already have npm by running npm -v)
  2. cd client/src
  3. npm install
  4. npm run build

Hopefully this works!

After doing this i still got the problem. Is there anyone else solve it? Thanks!

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