basedpyright icon indicating copy to clipboard operation
basedpyright copied to clipboard

Invalid glibc versions.

Open cazador481 opened this issue 1 year ago • 5 comments

I am getting invalid glibc versions with the build in version of node. I would like to use my own version of node that is installed on my machine.

/home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node)
/home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node)
/home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node)
/home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node)
/home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node)
/home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/scratch.eash/.pipx/venvs/basedpyright/lib/python3.9/site-packages/nodejs/bin/node)

cazador481 avatar Mar 18 '24 14:03 cazador481

what OS are you using?

the point of having the node version bundled with the pypi package is that the user shouldn't have to worry about installing it themselves. i see nodejs as an implementation detail that shouldn't be exposed to the user, so hopefully i can find a solution that doesn't require allowing the user to specify a globally installed node

DetachHead avatar Mar 18 '24 17:03 DetachHead

I am on an ancient os. Centos 7.5

On Mon, Mar 18, 2024, 1:12 PM DetachHead @.***> wrote:

what OS are you using?

the point of having the node version bundled with the pypi package is that the user shouldn't have to worry about installing it themselves. i see nodejs as an implementation detail that shouldn't be exposed to the user, so hopefully i can find a solution that doesn't require allowing the user to specify a globally installed node

— Reply to this email directly, view it on GitHub https://github.com/DetachHead/basedpyright/issues/167#issuecomment-2004490371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA5ISDLIZHJ7WB7XCU2LR3YY4OBTAVCNFSM6AAAAABE3YI3LOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUGQ4TAMZXGE . You are receiving this because you authored the thread.Message ID: @.***>

cazador481 avatar Mar 18 '24 21:03 cazador481

looks like that's the issue. basedpyright comes with node 18 but i think your centOS version is too old for that. https://stackoverflow.com/a/72038045

since both centOS and node 16 are EOL i was originally going to close this issue, but then i realized upstream pyright supports node 14 so i should probably try to match that.

can you install the version from https://github.com/DetachHead/basedpyright/pull/204 and see if that fixes it?

pip install git+https://github.com/detachhead/basedpyright@support-node14

you may need to pin nodejs-bin to 14.19.3a4 yourself though

DetachHead avatar Mar 25 '24 13:03 DetachHead

https://pypi.org/project/nodejs-wheel/ supports a much older glibc version and can confirm it works on rhel7 (similar to centos7). Would it be possible to switch to (or optionally use) that instead?

lewis6991 avatar Apr 25 '24 09:04 lewis6991

thanks for the suggestion, we can give it a go. the one we currently use looks abandoned so i was already keeping an eye out for another solution anyway

DetachHead avatar Apr 25 '24 10:04 DetachHead