khatchad
khatchad

Reputation: 3178

Why is Pydev giving a syntax error for built-in keywords?

Why is Pydev giving me syntax errors for built-in python functions like str()?

Undefined variable: str

Undefined variable: False

Undefined variable: float

Upvotes: 15

Views: 14030

Answers (3)

Christoph Göttert
Christoph Göttert

Reputation: 589

For those ppl who are using Aptana and have the same Problem:

I upgraded Aptana and PyDev with the following instructions:

Update PyDev on Aptana

after the upgrade PyDev worked just fine for me :)

Upvotes: 0

Fabio Zadrozny
Fabio Zadrozny

Reputation: 25342

This means that there's a problem with starting the shell to get completions for builtins (usually a firewall or a misconfiguration in the network -- see: http://pydev.org/faq.html#PyDevFAQ-WhenIdoacodecompletion%2CPyDevhangs%2CwhatcanIdo%3F which may give you hints on how to solve it).

Also, please add details on your error log if you're unable to solve it (see: http://pydev.org/faq.html#how_do_i_report_a_bug for details on getting the error log).

Upvotes: 3

khatchad
khatchad

Reputation: 3178

Remove and re-add the python interpreter in the PyDev configuration. Make sure that the project is using the newly added interpreter.

Upvotes: 20

Related Questions