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

maya22-control executable not found. #2

Open
sly547 opened this issue Sep 30, 2024 · 2 comments
Open

maya22-control executable not found. #2

sly547 opened this issue Sep 30, 2024 · 2 comments

Comments

@sly547
Copy link

sly547 commented Sep 30, 2024

Somehow the check fails, even though it shouldn't.. I solved it by removing the check.

This one:

if (!fs.existsSync(cliPath)) {
throw new Error('maya22-control executable not found.');
}

Is it a bug, or am I missing something?

$ cat .clipath
/usr/bin/maya22-control
$ ls -l /usr/bin/maya22-control
-rwxr-xr-x 1 root root 14432 Apr 17  2023 /usr/bin/maya22-control
$ npm run network

> maya22-web-control@1.3.4 network
> node mayacontrol.js --network

Device:
2573:0017 - /dev/hidraw0 
    vendor: ESI Audiotechnik GmbH
    product: MAYA22 USB

Path to the maya22-control executable: /usr/bin/maya22-control


/home/michael/src/maya22-web-control/mayacontrol.js:72
    throw new Error('maya22-control executable not found.');
    ^

Error: maya22-control executable not found.
    at Object.<anonymous> (/home/michael/src/maya22-web-control/mayacontrol.js:72:11)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
    at Module.load (node:internal/modules/cjs/loader:1317:32)
    at Module._load (node:internal/modules/cjs/loader:1127:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:166:5)
    at node:internal/main/run_main_module:30:49

Node.js v22.9.0
@steeelydan
Copy link
Owner

steeelydan commented Dec 11, 2024

Hey, I just wanted to ask, have you been able to use your interface / do a fork & incorporate your change? Unfortunately, I don't own the interface anymore, I actually wrote this software for a friend before I gave the interface to him 😅 I never ever would have thought anyone else tries to use it, tbh

And, I apologize for the late response.

@steeelydan
Copy link
Owner

Couldn't help myself and pushed some code anyway, as this was a pretty simple mistake.
This is the error I get now and it looks as if it might work for you now.
with-custom-path

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