PyCharm error - Error loading project: Cannot load facet Python

Viewed 2094

enter image description here

I have fresh installed Python and PyCharm and am unable to run some Python files in PyCharm as this error is displayed immediately when loading up the project. I have no idea what the problem could be as the only other times this seems to appear is when trying to interpret Python in IntelliJ using a plugin, or when trying to run some other facet in PyCharm. Unknown facet Python in a Python IDE has stumped me.

2 Answers

PyCharm and Python plugin store interpreter settings differently (the latter stores them as a facet).

PyCharm does not know anything about Python facet since it does not use it (and even does not have in the distributive).

Solution is to use either IntelliJ IDEA with Python plugin or PyCharm. Before using in PyCharm, please remove .idea inside the project to drop the facet.

For me, the problem was trying to open a non-Python folder with Pycharm.

Opening with Clion seems to work, as this really was a C++ project.

The error message should be much clearer, and the folder really should open. After all they are just files.

Related