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
npx version error #56
Comments
@Plachey Is that the full output? The output of the |
Here full
|
@Plachey That is weird. Could you try setting the env variable |
I did debug, but I'm not sure where use that /tmp/pyright-python/bin/npx --version
|
@Plachey that error message seems to have changed. It's now saying that it couldn't find a version for pyright (by running the I'm not sure how to go about resolving this. Are you using a VPN? |
I'm having the same issue. Other than the error message above, I also had an error about GLIBC version. The solution is here: microsoft/pyright#3414. |
I am currently facing this same issue @RobertCraigie here's the log with debug turned on. root@691b3d39624c:/app# pyright -p pyrightconfig-ci.json
2022-06-10 17:22:24,668 - DEBUG - pyright.utils - Latest pyright-python version is: 1.1.253
2022-06-10 17:22:24,672 - DEBUG - pyright.node - Checking for global target binary: npx
2022-06-10 17:22:24,674 - DEBUG - pyright.node - Found global binary at: /usr/bin/npx
2022-06-10 17:22:24,674 - DEBUG - pyright.node - Global binary exists at: /usr/bin/npx
2022-06-10 17:22:24,675 - DEBUG - pyright.node - Running node command with args: ['/usr/bin/npx', '--version']
2022-06-10 17:22:27,575 - DEBUG - pyright.node - Version check for npx returning (8, 11, 0)
2022-06-10 17:22:27,576 - DEBUG - pyright.node - Checking for global target binary: npx
2022-06-10 17:22:27,578 - DEBUG - pyright.node - Found global binary at: /usr/bin/npx
2022-06-10 17:22:27,580 - DEBUG - pyright.node - Global binary exists at: /usr/bin/npx
2022-06-10 17:22:27,581 - DEBUG - pyright.node - Running node command with args: ['/usr/bin/npx', '--silent', '--yes', '--', 'pyright@1.1.253', '-p', 'pyrightconfig-ci.json']
2022-06-10 17:22:34,560 - DEBUG - pyright.utils - Latest pyright-python version is: 1.1.253
2022-06-10 17:22:34,563 - DEBUG - pyright.node - Checking for global target binary: npx
2022-06-10 17:22:34,564 - DEBUG - pyright.node - Found global binary at: /usr/bin/npx
2022-06-10 17:22:34,565 - DEBUG - pyright.node - Global binary exists at: /usr/bin/npx
2022-06-10 17:22:34,567 - DEBUG - pyright.node - Running node command with args: ['/usr/bin/npx', '--version']
Traceback (most recent call last):
File "/usr/local/bin/pyright", line 8, in <module>
sys.exit(entrypoint())
File "/usr/local/lib/python3.10/site-packages/pyright/cli.py", line 72, in entrypoint
sys.exit(main(sys.argv[1:]))
File "/usr/local/lib/python3.10/site-packages/pyright/cli.py", line 20, in main
return run(*args, **kwargs).returncode
File "/usr/local/lib/python3.10/site-packages/pyright/cli.py", line 36, in run
npx = node.version('npx')
File "/usr/local/lib/python3.10/site-packages/pyright/node.py", line 121, in version
raise errors.VersionCheckFailed(
pyright.errors.VersionCheckFailed: Could not find version from `npx --version`, see output above |
This is a bizarre issue, I have no idea what would be causing this. Something somewhere is causing a circular call as the version was successfully extracted earlier in those logs. As I can't figure out what could be causing this, I think the solution here is to simply add an option to disable the version check. |
How can I disable the version check currently? |
You currently cannot, sorry if I worded that badly. I will add an option to disable it :) |
Hello, I use python 3.8, pyright 1.1.239
config.toml
docker-compose where start pyright but i got error:
Can't fix it
The text was updated successfully, but these errors were encountered: