pycharm builtin unresolved reference

13,024

Solution 1

You have the language version set to Python 3; raw_input in Python 2 is just input in Python 3 (input in Python 2 is eval(input()) in Python 3: What's the difference between raw_input() and input() in python3.x?).

To select the Python version, see: How to select Python version in PyCharm?

Solution 2

I was getting a similar issue. @property and ValueError were being shown as 'undefined'. I had mucked about with PyCharm's interpreter settings a bit beforehand, and I was able to fix it by using the File -> Invalidate Caches / Restart... and choosing the "Invalidate and Restart" command.

Share:
13,024
djdick
Author by

djdick

Updated on July 24, 2022

Comments

  • djdick
    djdick almost 2 years

    I'm using PyCharm and just trying out some simple stuff. When I try to use raw_input(), the editor is showing an unresolved reference error.

    I'm not sure what the issue is. Has anyone seen this before?

  • squeegee
    squeegee almost 10 years
    Getting this to work eludes me. I've watched the task that rebuilds the index run, and then subsequently reparse my source and mark all the built in as unknown. This is so frustrating, as I have been liking this IDE for cross platform use.