Really silly one going on here...
I need to use this bit of code...
from sentry.client.handlers import SentryHandler
if SentryHandler not in map(lambda x: x.__class__, logger.handlers):
logger.addHandler(SentryHandler())
I just can't get it to import in Eclipse/Pydev. I get
Unresolved import: SentryHandler Unused import: SentryHandler
If I do
from sentry.client.handlers import *
it imports without error in Eclipse but I can't access the SentryHandler class.
The code definitely exists in site-packages directory. I have other packages in the site-packages directory that work perfectly.
The code actually works. It is just an Eclipse issue.
I also have an issue with one other module: import httplib2
It works also but Eclipse gives me an error importing. I am obviously missing a bit of Eclipse / Pydev knowledge.
Any ideas how to get it working.