Problems getting Python interpreter up and running #4623
Replies: 4 comments 2 replies
-
So sorry you are having trouble! It does look like Positron thinks there are two Python interpreters available, both 3.9.12 and 3.9.19. Have you tried choosing the other one, that has the same version as what you see with We may be able to find out more about what is going wrong if you are able to share logs. Take a look at this info and then check out your "Console" and "Python" logs, under "Output". The "Console" logs will look something like this: Under the |
Beta Was this translation helpful? Give feedback.
-
Thanks so much for your response. First, in the Interpreter Select dropdown, I am unable to select the second Python. The "Start the Interpreter" button does not seem to do anything. Here is a paste of the log that I see... 2024-09-10 15:07:15.789 [info] [Positron] Connecting to Python 3.9.12 (Conda: base) kernel (pid 15356) |
Beta Was this translation helpful? Give feedback.
-
Well, I must really be doing something wrong somewhere. For fun, I tried to install and run Positron on my Dell laptop, as well (also running Windows 10). It is running Python 3.11.5. Again, I could not get the interpreter to properly execute any Python commands. Here is a copy/paste of the output file: 2024-09-10 21:15:25.701 [info] [Positron] Connecting to Python 3.11.5 (Conda: base) kernel (pid 21780) |
Beta Was this translation helpful? Give feedback.
-
I'm just goin to go ahead and close the discussion. This morning I uninstalled Python and then reinstalled and everything worked as expected, so it must have been a quirk associated with my particular install. |
Beta Was this translation helpful? Give feedback.
-
I apologize in advance for being probably one of the least technically proficient users here. So, my apologies in advance for overlooking obvious issues. I initially experienced the issue related to needing ipykernel updated, but that seems to have been resolved. But I cannot get the Python interpreter to even start (the R interpreter works as expected).
I am going simple -- no virtual environments and, to my knowledge, only one Python install. The 'Select Interpreter' is only giving me one option:Python 3.9.12 (Conda: base)
In the console pane, however, code never executes. The code is grayed out (forever) and never leads to variables created.
It's hard to describe the problem because, basically nothing happens. The commands are grayed out and never executed.
I have restarted and tried again several times. A few of the times, in the console window, I get this error:
No state found for session 'python-716f1102'
Here's the final weird piece. When I go to the command window and type "python -V" it tells me Python 3.9.19 which does not match the option I have when selecting the interpreter in Positron.
Beta Was this translation helpful? Give feedback.
All reactions