Skip to content

Instantly share code, notes, and snippets.

@kylegato
Created October 11, 2013 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylegato/ce90e7d16225592085f4 to your computer and use it in GitHub Desktop.
Save kylegato/ce90e7d16225592085f4 to your computer and use it in GitHub Desktop.
AttributeError Root Cause
'module' object has no attribute 'log'
Stacktrace (most recent call last):
File "celery/task/trace.py", line 228, in trace_task
R = retval = fun(*args, **kwargs)
File "newrelic/api/object_wrapper.py", line 216, in __call__
self._nr_instance, args, kwargs)
File "newrelic/hooks/application_celery.py", line 57, in wrapper
return wrapped(*args, **kwargs)
File "newrelic/api/object_wrapper.py", line 216, in __call__
self._nr_instance, args, kwargs)
File "newrelic/hooks/application_celery.py", line 57, in wrapper
return wrapped(*args, **kwargs)
File "celery/app/task.py", line 330, in __call__
return self.run(*args, **kwargs)
File "wddeploy/apps/deploy/tasks.py", line 95, in trigger_deploy_new
import salt
File "/wd/services/deploy/saltla/virtualenv/lib/python2.7/site-packages/salt/__init__.py", line 19, in <module>
from salt.utils import migrations
File "/wd/services/deploy/saltla/virtualenv/lib/python2.7/site-packages/salt/utils/__init__.py", line 36, in <module>
import salt.minion
File "/wd/services/deploy/saltla/virtualenv/lib/python2.7/site-packages/salt/minion.py", line 36, in <module>
import salt.client
File "/wd/services/deploy/saltla/virtualenv/lib/python2.7/site-packages/salt/client.py", line 38, in <module>
import salt.config
File "/wd/services/deploy/saltla/virtualenv/lib/python2.7/site-packages/salt/config.py", line 22, in <module>
import salt.crypt
File "/wd/services/deploy/saltla/virtualenv/lib/python2.7/site-packages/salt/crypt.py", line 20, in <module>
import salt.payload
File "/wd/services/deploy/saltla/virtualenv/lib/python2.7/site-packages/salt/payload.py", line 19, in <module>
log = salt.log.logging.getLogger(__name__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment