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

Error trying to use CLI #314

Open
SKZ-Digi opened this issue Oct 16, 2024 · 1 comment
Open

Error trying to use CLI #314

SKZ-Digi opened this issue Oct 16, 2024 · 1 comment

Comments

@SKZ-Digi
Copy link

Hello,

I tried to use the cli to slice a file but got an error that the file three-bgu.js is missing. The file is not present although I already ran npm install. Here is my command, where I tried to slice a file 'test.stl' using the examples given in the cli folder, and the output:

(base) tgrunemann@Ubuntu20KlebeDB:~/grid-apps$ node src/kiri-run/cli --model=./t.stl --device=src/cli/kiri-fdm-device.json --process=src/cli/kiri-fdm-process.json --controller=src/cli/kiri-controller.json --output=./t.gcode --verbose
{ fetch: 'src/cli/kiri-source.json' }
{ fetch: 'src/cli/kiri-cam-tools.json' }
{ fetch: 'src/cli/kiri-fdm-device.json' }
{ fetch: 'src/cli/kiri-fdm-process.json' }
loading ... /home/tgrunemann/grid-apps/src/main/gapp.js
loading ... /home/tgrunemann/grid-apps/src/moto/broker.js
loading ... /home/tgrunemann/grid-apps/src/moto/license.js
loading ... /home/tgrunemann/grid-apps/src/add/array.js
loading ... /home/tgrunemann/grid-apps/src/add/class.js
loading ... /home/tgrunemann/grid-apps/src/ext/three.js
loading ... /home/tgrunemann/grid-apps/src/ext/three-bgu.js
node:fs:573
return binding.open(
^

Error: ENOENT: no such file or directory, open '/home/tgrunemann/grid-apps/src/ext/three-bgu.js'
at Object.openSync (node:fs:573:18)
at Object.readFileSync (node:fs:452:35)
at run (/home/tgrunemann/grid-apps/src/kiri-run/cli.js:156:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/tgrunemann/grid-apps/src/ext/three-bgu.js'
}

Can anybody help me?

Best regards

Timo

@stewartoallen
Copy link
Contributor

looks like the cli was broken by a recent refactoring of import dependencies. it'll require more investigation to figure out a proper fix.

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

2 participants