googlecreativelab / aiexperiments-ai-duet

A piano that responds to you.
https://aiexperiments.withgoogle.com/ai-duet
1.63k stars 283 forks source link

not running on 3 different pc #18

Closed xiao1228 closed 6 years ago

xiao1228 commented 6 years ago

Hi,

I have tried on 3 different PC, clean ubuntu installed. After cloning the code. I got the error below in the web browser. I had an old folder which is working, and i tried to copy that folder to other places, also same error. Is there something wrong with the webpack? versions? Do you know any way to debug it? Thank you!

  • Tone.js r9 * 0.js:12 THREE.WebGLRenderer 83 0.js:24 Uncaught TypeError: Cannot read property 'create' of undefined at e.value (0.js:24) at new e (0.js:24) at Object. (0.js:8) at M (Main.js:1) at Main.js:1 0.js:8 Uncaught TypeError: Cannot read property 'start' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e. (0.js:24) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyDown' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyUp' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyDown' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyUp' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyDown' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyUp' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyDown' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyUp' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyDown' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyUp' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyDown' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24) 0.js:8 Uncaught TypeError: Cannot read property 'keyUp' of undefined at e. (0.js:8) at e.n.emit (0.js:7) at e.value (0.js:25) at e. (0.js:25) at e.n.emit (0.js:7) at HTMLDivElement. (0.js:24)
samcaulfield commented 6 years ago

I'm encountering the same errors on Fedora 26 using the non-Docker installation method.

Used pip to install serverside dependencies as described in the readme with python2.7.

Clientside: nodejs-6.11.4-1 npm-3.10.10 webpack 1.15.0

lebuckle commented 6 years ago

I am also having this issue on Ubuntu 16.04 on both PC and Joule.

Installed all libraries as described in the ReadMe with Python2.7. The Server.py code runs and the piano appears in the browser and plays, but the accompaniment does not play or show. I receive the same errors as xiao1228 above.

Thanks

xiao1228 commented 6 years ago

Issue solved, one of the package in the package.json seems to installing the latest version which breaks the code. So take out the ^ in package.json for npm to install specific version