gabrielfreire/neuralnet.js

PyodideNode problem

Opened this issue · 1 comments

Hi, any advise on how to run your great PyodideNode.js branch?

/> nodejs
> pyt=require('./PyodideNode.js')
PyodideNode { env: 'node' }
> pyt.loadLanguage()
Promise {
  <pending>,
  domain:
   Domain {
     domain: null,
     _events:
      { removeListener: [Function: updateExceptionCapture],
        newListener: [Function: updateExceptionCapture],
        error: [Function: debugDomainError] },
     _eventsCount: 3,
     _maxListeners: undefined,
     members: [] } }
> Node environment
[Function]
/opt/wasm/pyodide/neuralnet.js/PyodideNode/pyodide.asm.data
Downloading /opt/wasm/pyodide/neuralnet.js/PyodideNode/pyodide.asm.data data...
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python

Hi @pannous

go to this repo https://github.com/gabrielfreire/pyodide-node
npm install
npm start

to run tests npm test