New version of PyCharm doesn't have the System Interpreter option
The title is pretty self-explanatory, but I'll give some context because maybe there's another solution to my main problem.
I'm studying how to use APIs, and the one I'm looking at now is from a software called Autodesk Robot Structural Analysis. It has to be run with IronPython (I use version 2.7). When trying to create a virtualenv with ironpython I get an error:
Error creating virtual env: Traceback (most recent call last): ValueError: The stream must support seeking and reading.
So, I saw online that I could set the interpreter as a system interpreter that everything would work, and it did, until I had to format my pc, and now I don't have any interpreters. To my surprise, when I tried to add again a system interpreter, it only has 4 types: Virtualenv, Conda, Pipeenv and Poetry.
So, the main problem would be the usage of IronPython 2.7 in Pycharm, which was solved with System Interpreter. Now I don't see the option to add a System Intepreter, so what should I do?
Option 1. Find another solution to use the IronPython in Pycharm (I'm already working directly via windows terminal, which works, but I would like to keep everything in the IDE.
Option2 . Find a way to add the system interpreter (or any other type that would work)
Please sign in to leave a comment.
Hi Natogheno , would it help to add IronPython manually?
Choose “Add new interpreter” in Python Interpreter selector
Choose “Select existing” in the next window and click on the “Browse” button
This doesnt work, I think to create the virtual environment it has to be a CPython version… But I know pretty much nothing about venvs, so I may be wrong… But this type of error also occurred in the previous versions. Only the system interpreter would work.
Natogheno, I've managed reproduce it using this version of IronPython while creating a virtual environment.
Basic scripts however can be executed without issues when I configure it as a system interpreter:
Unfortunately, IronPython support has been broken in PyCharm for a while now. There have been talks of deprecating it in PyCharm. Here's a list of known issues related to IronPython interpreter setup:
PY-39094
PY-39656
PY-52467
Additionally, the debugger is broken as well for IronPython: PY-45714
So, unfortunately, PyCharm cannot be used with IronPython at the moment.
Interesting. This select existing I supposed it was for existing venvs, but indeed I can select the ipy.exe. It's working like I was used to, very buggy, and a lot of things not working, but at least I can run it inside the IDE (this makes a big difference for a newbie like myself haha).
Thank you very much. I will look into those issues you mentioned, and it's unfortunate that PyCharm would want to deprecate IronPython, since it's still being used in some areas…