Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aptana 3 Unresolved import - Python

I'm trying to import pycassa library in a Python project in Aptana 3, but in the line "import pycassa" it show me the next error: "Unresolved import: pycassa". I installed pycassa with easy install and if I run "import pycassa" in a python shell it run with no errors. If I run the Aptana project run with no errors too, but the error mark continues. Why?

Sorry for my english.

like image 486
icor Avatar asked Jul 08 '11 08:07

icor


1 Answers

The only working solution for me: open menu “Window” → “Preferences” → “Interpreter - Python”, then click button “Apply”, select your interpreter and then “OK”. Pydev will rescan all packages and in some seconds all unresolved imports disappear.

Unfortunately I have to do these steps on every restart because Pydev always “forget” some packages after restart…

like image 112
Sergey Stolyarov Avatar answered Nov 18 '22 13:11

Sergey Stolyarov