Re: [Pydev-users] Undefined variable: problem
Brought to you by:
fabioz
From: Rinaldo <ri...@fr...> - 2013-01-11 12:56:16
|
Dear all, I have recently set up a new system, and am since then not able to set up pydev properly I am using the brian simulator, its a package installed in /usr/local/lib/python2.7/dist-packages/brian and import it via "from brian import *" Now in my code, wherever I use a variable imported from brian, it will be marked as "Undefined variable". the code compiles without errors. Even, ctrl+clicking on the "Undefined variable" will open the source file whit its definition from the correct location. In interpreter libraries I have made sure that /usr/local/lib/python2.7/dist-packages/ is in the PYTHONPATH. I am not sure, whether subdirectories are required to be added explicitly, so I went ahead and added /usr/local/lib/python2.7/dist-packages/brian but the errors still appear. I have also tried adding the path in the project properties PYTHONPATH, again without luck. Using "from brian import Variable", removes the "Undefined variable" error but introduces "Unresolved Import: Variable" Whats going wrong? cheers, rinaldo |