Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 29th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pylinting zopeish files: F0401: 11,0: Unable to import 'zope.interface'
  2. ************* Module youraddon.interfaces
  3. F0401: 11,0: Unable to import 'zope.interface'
  4.        
  5. from zope.interface import Interface
  6.        
  7. cat ../../bin/pylint|grep -i interface
  8. '/fast/buildout-cache/eggs/zope.interface-3.6.7-py2.6-macosx-10.6-i386.egg',
  9.        
  10. # E0611: 11,0: No name 'interface' in module 'zope'
  11.        
  12. $ pylint --disable=F0401 youraddon.py
  13.        
  14. #pylint: disable=F0401
  15.        
  16. [buildout]
  17. parts =
  18.   instance
  19.   pylint
  20.  
  21. [instance]
  22. ...
  23. eggs =
  24.   your.addon
  25.   ...
  26.  
  27. [pylint]
  28. recipe = zc.recipe.egg
  29. entry-points = pylint=pylint.lint:Run
  30. eggs =
  31.   pylint
  32.   ${instance:eggs}