olmozavala / particleviz

Software to generate visualizations of large number of particles from Lagrangian output.
MIT License
10 stars 6 forks source link

webapp crashes on first activation? #7

Closed erikvansebille closed 2 years ago

erikvansebille commented 2 years ago

I've installed particleviz following the installation instructions at https://olmozavala.github.io/particleviz/. When I then run python ParticleViz.py --input_file ~/Desktop/argo_float.nc, the preprocessing step seems to work fine. However, the web app throws an error below. Any idea what I'm doing wrong?

Initializing webapp...

> particleviz@0.0.1 start
> npm run copy-config & react-scripts start

> particleviz@0.0.1 copy-config /Users/erik/Codes/particleviz/ParticleViz_WebApp
> cpx './data/**/*.{txt,bin,zip,json}' ./public --watch 

Attempting to bind to HOST environment variable: UU065018
If this was unintentional, check that you haven't mistakenly set it in your shell.
Learn more here: https://bit.ly/CRA-advanced-config

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:135:10)
    at module.exports (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/NormalModule.js:417:16)
    at handleParseError (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/NormalModule.js:471:10)
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/NormalModule.js:503:5
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/NormalModule.js:358:12
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/loader-runner/lib/LoaderRunner.js:373:3
    at iterateNormalLoaders (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
    at iterateNormalLoaders (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at Object.createHash (node:crypto:135:10)
    at module.exports (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/util/createHash.js:135:53)
    at NormalModule._initBuildHash (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/NormalModule.js:417:16)
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/NormalModule.js:452:10
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/webpack/lib/NormalModule.js:323:13
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/loader-runner/lib/LoaderRunner.js:367:11
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/loader-runner/lib/LoaderRunner.js:233:18
    at context.callback (/Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
    at /Users/erik/Codes/particleviz/ParticleViz_WebApp/node_modules/babel-loader/lib/index.js:59:103 {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}

Node.js v17.4.0
Done!
philippemiron commented 2 years ago

Closing this for now.