Aptana 3 Unresolved import - Python
Asked Answered
U

2

12

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.

Unfetter answered 8/7, 2011 at 8:31 Comment(0)
B
5

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…

Bohannon answered 31/7, 2011 at 8:52 Comment(0)
T
0

I had the same problem with Tastypie. I tried to add external library to project using Preferences-PyDev PUTHONPATH, but it didn't work for me...

But then I found solution: Window-Preferences-PyDev-Interpreter Python-Libraries-New folder (Button). Choose folder with needed library and Aptana should work fine then.

Textuary answered 25/9, 2014 at 9:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.