empiricaly / empirica

Open source project to tackle the problem of long development cycles required to produce software to conduct multi-participant and real-time human experiments online.
https://empirica.ly/
Apache License 2.0
44 stars 8 forks source link

error: spawn emp ENOENT on `empirica export` #506

Closed frasalvi closed 6 months ago

frasalvi commented 6 months ago

Is there an existing issue for this?

What happened?

When I run empirica export, from any experiment (I tried with the default template generated by empirica create), I get the error reported below.

Steps To Reproduce

No response

Empirica Version

Version: v1.9.4
SHA:     ddd1f98
Build:   189
Branch:  main
Time:    2024-02-05T08:54:05Z

Client:  1.9.4
Server:  1.9.4

What OS are you seeing the problem on?

Linux (WSL)

What browser are you seeing the problem on?

Does not apply

Relevant log output

Setting up export environment...
Exporting data... empirica
21:25:29.672 INF exporting data args="npm run export -- --filename /mnt/c/Users/salvi/Desktop/EPFL/Thesis/debateGPT/debategpt/debategpt-2024-02-06-21-25-29.zip --tajfile /mnt/c/Users/salvi/Desktop/EPFL/Thesis/debateGPT/debategpt/.empirica/local/tajriba.json --srtoken iWHGzvMWkhogPCHP"

> export@1.0.0 export
> npm run build && node --trace-warnings --enable-source-maps dist/index.js --filename /mnt/c/Users/salvi/Desktop/EPFL/Thesis/debateGPT/debategpt/debategpt-2024-02-06-21-25-29.zip --tajfile /mnt/c/Users/salvi/Desktop/EPFL/Thesis/debateGPT/debategpt/.empirica/local/tajriba.json --srtoken iWHGzvMWkhogPCHP

> export@1.0.0 build
> esbuild src/index.js --platform=node --define:process.env.NODE_ENV='"production"' --bundle --minify --outfile=dist/index.js --sourcemap

  dist/index.js      1012.4kb
  dist/index.js.map     3.0mb

⚡ Done in 2132ms
Starting Tajriba server with: emp tajriba --config /tmp/tmp-881-B5CWo4E45NzE-.toml --log.level trace --log.json --tajriba.log.level trace --tajriba.log.json --tajriba.server.addr :0 --tajriba.store.file /mnt/c/Users/salvi/Desktop/EPFL/Thesis/debateGPT/debategpt/.empirica/local/tajriba.json
error: spawn emp ENOENT
child process exited with code -2

Anything else?

No response

Code of Conduct

npaton commented 6 months ago

This should be fixed in 1.9.5.