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

Is ARM supported? #56

Closed
Nemi04 opened this issue Jun 27, 2022 · 19 comments
Closed

Is ARM supported? #56

Nemi04 opened this issue Jun 27, 2022 · 19 comments

Comments

@Nemi04
Copy link

Nemi04 commented Jun 27, 2022

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
Copy link
Owner

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

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

I used the docker file but it exited error 1

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

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 [email protected]
gyp info using [email protected] | 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
Copy link
Owner

What OS have you built the container?

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

Raspberry Pi OS arm64

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

does docker works on windows ?

@MainSilent
Copy link
Owner

Raspberry Pi OS arm64

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

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

oh..

@MainSilent
Copy link
Owner

does docker works on windows ?

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

@MainSilent MainSilent changed the title I can't run script Is ARM supported? Jun 27, 2022
@MainSilent MainSilent pinned this issue Jun 27, 2022
@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

and do I have the good version of nodejs ?

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

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
Copy link
Owner

and do I have the good version of nodejs ?

I only tried on 17.9.0 you can use nodeenv.

@MainSilent MainSilent closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2022
@MainSilent
Copy link
Owner

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

@MainSilent
Copy link
Owner

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

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

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

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

@MainSilent
Copy link
Owner

I believe following the docker file commands would be useful.

@MainSilent
Copy link
Owner

/bin

@Nemi04
Copy link
Author

Nemi04 commented Jun 27, 2022

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

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