MainSilent / Discord-Screenshare

First ever discord video screenshare SELFBOT
300 stars 78 forks source link

Is ARM supported? #56

Closed Nemi04 closed 2 years ago

Nemi04 commented 2 years ago

When I try to run that script node main.js it crashes with that error

`Webdriver started /home/pi/Discord-Screenshare-master/node_modules/selenium-webdriver/remote/index.js:248 reject(Error(e.message)) ^

Error: Server terminated early with status 2 at /home/pi/Discord-Screenshare-master/node_modules/selenium-webdriver/remote/index.js:248:24 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.3.0`

Please help, what can I do to repair that ?

MainSilent commented 2 years ago

I'm not sure how to fix but it appears to be a dependency issue, I would recommend using the docker file.

Nemi04 commented 2 years ago

I used the docker file but it exited error 1

Nemi04 commented 2 years ago

error /Discord-Screenshare/node_modules/bufferutil: Command failed. Exit code: 1 Command: node-gyp-build Arguments: Directory: /Discord-Screenshare/node_modules/bufferutil Output: gyp info it worked if it ends with ok gyp info using node-gyp@9.0.0 gyp info using node@17.9.0 | linux | arm64 gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3" gyp http GET https://nodejs.org/download/release/v17.9.0/node-v17.9.0-headers.tar.gz gyp http 200 https://nodejs.org/download/release/v17.9.0/node-v17.9.0-headers.tar.gz gyp http GET https://nodejs.org/download/release/v17.9.0/SHASUMS256.txt gyp http 200 https://nodejs.org/download/release/v17.9.0/SHASUMS256.txt gyp info spawn /usr/bin/python3 gyp info spawn args [ gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/Discord-Screenshare/node_modules/bufferutil/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.cache/node-gyp/17.9.0/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/17.9.0', gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/17.9.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/Discord-Screenshare/node_modules/bufferutil', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp ERR! build error gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:10:17) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:57:18 gyp ERR! stack at new Promise () gyp ERR! stack at step (/usr/lib/node_modules/npm/node_modules/which/which.js:54:21) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:71:22 gyp ERR! stack at new Promise () gyp ERR! stack at subStep (/usr/lib/node_modules/npm/node_modules/which/which.js:69:33) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:80:22 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5 gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5 gyp ERR! System Linux 5.15.32-v8+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Discord-Screenshare/node_modules/bufferutil gyp ERR! node -v v17.9.0 gyp ERR! node-gyp -v v9.0.0 gyp ERR! not ok The command '/bin/sh -c yarn install' returned a non-zero code: 1

MainSilent commented 2 years ago

What OS have you built the container?

Nemi04 commented 2 years ago

Raspberry Pi OS arm64

Nemi04 commented 2 years ago

does docker works on windows ?

MainSilent commented 2 years ago

Raspberry Pi OS arm64

I don't believe it would work on ARM since many people tried using android and it failed.

Nemi04 commented 2 years ago

oh..

MainSilent commented 2 years ago

does docker works on windows ?

You can check this 4da4cbe commit as it appears to be working on WSL.

Nemi04 commented 2 years ago

and do I have the good version of nodejs ?

Nemi04 commented 2 years ago

how to install chromedriver ? it may don't work on arm because Chrome is not compatible, but i do have chromium, it's simillar.

MainSilent commented 2 years ago

and do I have the good version of nodejs ?

I only tried on 17.9.0 you can use nodeenv.

MainSilent commented 2 years ago

Sorry, I misunderstood your last comment, You need to match the chromium version with the chrome driver.

MainSilent commented 2 years ago

https://chromedriver.chromium.org/downloads

Nemi04 commented 2 years ago

Thanks ! (i will close that ticket if it works)

Nemi04 commented 2 years ago

I have now a file named chromedriver(zip extracted), what can i do with it ?

MainSilent commented 2 years ago

I believe following the docker file commands would be useful.

MainSilent commented 2 years ago

/bin

Nemi04 commented 2 years ago

The answer of that question is : No, ARM is not supported