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

[error] Invalid version for /usr/bin/python #204

Open
migs35323 opened this issue Feb 20, 2024 · 2 comments
Open

[error] Invalid version for /usr/bin/python #204

migs35323 opened this issue Feb 20, 2024 · 2 comments
Labels
invalid This doesn't seem right question Further information is requested response awaited Waiting for a response otherwise this issue will be closed.

Comments

@migs35323
Copy link

Not sure if this issue is related to this extension or it's the python extension itself or its something on my setup

i do have python 3.10

when i open the pico filesystem it detects python 2.7 and shows a bunch of errors:

2024-02-20 21:29:49.420 [error] Invalid version for /usr/bin/python: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python","sysPrefix":"","ctime":1658686354352,"mtime":1633955694000},"searchLocation":{"$mid":1,"fsPath":"/","path":"/","scheme":"file"},"display":"Python 2.7.x","version":{"major":2,"minor":7,"micro":-1},"arch":1,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python","detailedDisplayName":"Python 2.7.x"}
2024-02-20 21:29:49.420 [error] Invalid version for /usr/bin/python: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python","sysPrefix":"","ctime":1658686354352,"mtime":1633955694000},"searchLocation":{"$mid":1,"fsPath":"/","path":"/","scheme":"file"},"display":"Python 2.7.x","version":{"major":2,"minor":7,"micro":-1},"arch":1,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python","detailedDisplayName":"Python 2.7.x"}
2024-02-20 21:29:53.968 [info] Selected workspace /home/ubuntu/Desktop/pico for creating virtual environment.
2024-02-20 21:29:56.615 [info] Selected workspace / for creating virtual environment.
2024-02-20 21:30:01.916 [info] Selected interpreter /usr/bin/python for creating virtual environment.
2024-02-20 21:36:06.156 [info] Discover tests for workspace name: pico - uri: /home/ubuntu/Desktop/pico
2024-02-20 21:36:06.156 [info] Discover tests for workspace name: Pico (W) Remote Workspace - uri: /
2024-02-20 21:36:06.162 [error] Invalid version for /usr/bin/python: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python","sysPrefix":"","ctime":1658686354352,"mtime":1633955694000},"searchLocation":{"$mid":1,"fsPath":"/","path":"/","scheme":"file"},"display":"Python 2.7.x","version":{"major":2,"minor":7,"micro":-1},"arch":1,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python","detailedDisplayName":"Python 2.7.x"}
2024-02-20 21:36:06.162 [error] Invalid version for /usr/bin/python: {"name":"","location":"","kind":"global-other","executable":{"filename":"/usr/bin/python","sysPrefix":"","ctime":1658686354352,"mtime":1633955694000},"searchLocation":{"$mid":1,"fsPath":"/","path":"/","scheme":"file"},"display":"Python 2.7.x","version":{"major":2,"minor":7,"micro":-1},"arch":1,"distro":{"org":""},"source":["path env var"],"id":"/usr/bin/python","detailedDisplayName":"Python 2.7.x"}
2024-02-20 21:38:47.612 [info] Python interpreter path: ./usr/bin/python
2024-02-20 21:38:51.846 [info] Python interpreter path: /bin/python
2024-02-20 21:38:54.263 [info] Python interpreter path: ./usr/bin/python
2024-02-20 21:39:00.876 [info] Python interpreter path: /bin/python
2024-02-20 21:39:09.385 [info] Python interpreter path: ./usr/bin/python
2024-02-20 21:39:16.259 [info] Python interpreter path: /bin/python
2024-02-20 21:39:43.425 [info] Python interpreter path: ./usr/bin/python
2024-02-20 21:39:53.106 [info] Python interpreter path: /bin/python
@migs35323 migs35323 added the bug Something isn't working label Feb 20, 2024
@paulober
Copy link
Owner

Where did you find these messages in VS Code?

@paulober
Copy link
Owner

I guess either /usr/bin/python -V or /bin/python -V returns a 2.x version.

@paulober paulober added invalid This doesn't seem right question Further information is requested response awaited Waiting for a response otherwise this issue will be closed. and removed bug Something isn't working labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested response awaited Waiting for a response otherwise this issue will be closed.
Projects
None yet
Development

No branches or pull requests

2 participants