0

I am getting an "undefined variable from import" error with pydev.Even though the application runs without any issues.

The variable in question (db_session) is declared in a module called init.py

enter image description here

enter image description here

My understanding is that it might be a path issue, but this isn't an external library. Just a variable that I have declared myself

sam winston
  • 162
  • 1
  • 13
  • Have a look at this thread https://stackoverflow.com/questions/2112715/how-do-i-fix-pydev-undefined-variable-from-import-errors – NickHilton Sep 24 '18 at 19:28
  • Possible duplicate of [How do I fix PyDev "Undefined variable from import" errors?](https://stackoverflow.com/questions/2112715/how-do-i-fix-pydev-undefined-variable-from-import-errors) – NickHilton Sep 24 '18 at 19:28
  • @hilton92 none of these fixed my issue – sam winston Sep 24 '18 at 20:04
  • Seems like a shortcoming on the type inference static analyzer in PyDev... Do you think you can provide a sample project where this issue happens, post it on github and create a ticket at: https://www.brainwy.com/tracker/PyDev/ pointing to that code? – Fabio Zadrozny Sep 25 '18 at 11:25
  • @FabioZadrozny I will just use Atom instead, thanks – sam winston Sep 25 '18 at 12:38

0 Answers0