[Python-projects] NameError: global name 'set' is not defined

Meding, Olaf Olaf.Meding at bruker-axs.com
Tue Jan 2 18:04:25 CET 2007


Not sure why I get the below stack trace.  I am using Pylint 0.12.2, common 0.21.1, astng 0.16.3, and Python 2.3.5 on MS Windows XP.  Any help is much appreciated.

Olaf


Traceback (most recent call last):
  File "c:\bn\Python23\Scripts\pylint.bat", line 12, in ?
    lint.Run(sys.argv[1:])
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 847, in __init__
    linter.check(args)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 481, in check
    self.check_file(filepath, modname, checkers)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 495, in check_file
    astng = self._check_file(filepath, modname, checkers)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 519, in _check_file
    self.check_astng_module(astng, checkers)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 577, in check_astng_module
    self.astng_events(astng, [checker for checker in checkers
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "C:\bn\Python23\Lib\site-packages\pylint\lint.py", line 591, in astng_events
    checker.visit(astng)
  File "C:\bn\Python23\Lib\site-packages\logilab\astng\utils.py", line 85, in visit
    method(node)
  File "C:\bn\Python23\Lib\site-packages\pylint\checkers\typecheck.py", line 92, in visit_getattr
    missingattr = set()
NameError: global name 'set' is not defined


More information about the Python-Projects mailing list