Eclipse PyDev Throws False Errors

I updated PyDev (Eclipse) yesterday and now it tells me that None, name and other reserved words / built-in functions are not valid, but the script works just fine. I read on this forum that the problem is due to improper import of built-in modules. I tried changing the interpreter and re-adding it, but no luck. Can someone help me?

Errors:

Undefined variable main Undefined variable No Undefined variable int Undefined variable eval

I am running eclipse Juno and PyDev 2.7.4. In addition, I notice that errors appear only after PyDev code analysis is completed.

+4
source share
3 answers

Well, I see, no one came up with any idea. I found out myself, so I publish how I solved it here; maybe this will help someone:

The problem was that I recently changed the name of the local machine, but PyDev was still looking for the local host when trying to connect to the Python Shell. I just updated the files on my operating system containing the host name and voila (for some reason, the automatic wizard did not update all the files, so I had to do it manually).

+1
source

It happened to me, the problem was that eclipse could not find python.

My fix:

in eclipse:

Window> Settings> PyDev> Interpreter - Python

The settings here were empty. I clicked "Auto Config", which offered me a path to python. I selected it, restarted eclipse and solved the problem.

+3
source

I encounter the same behavior. Eclipse 2018-09 and pydev via pydev.org - http://pydev.org/updates Version 7.0.3.201811082356. My python is version Anaconda version 3.7. Win10 system. I get errors like undefined variable: object or undefined variable: no

The above fix

Quote window> Settings> PyDev> Interpreter - Python. The settings here were empty. I clicked "Auto Config", which offered me a path to Python. I selected it, restarted the eclipse, and the problem is resolved.

does not work.

Any ideas and / or solutions are welcome.

Yours faithfully,

Thomas

0
source

Source: https://habr.com/ru/post/1482206/


All Articles