Loading ...
Sorry, an error occurred while loading the content.

2652[Cheetahtemplate-discuss] cheetah test failures on mac os x 10.3.5

Expand Messages
  • Chuck Kung
    Oct 1, 2004
    • 0 Attachment
      has anyone had problems with cheetah
      test failures and have a workaround.

      cheetah version 0.9.15
      mac os x 10.3.5
      python version 2.3
      no changes to install

      thanks in advance.

      here's a sample of error output (there's too many
      failures to include all)-

      ERROR Cheetah.Tests.SyntaxAndOutput.CGI.test1 (CGI
      scripts with(out) the CGI environment and with(out)
      GET variables., A regular template.)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py",
      line 2181, in test1
      self.verify(source, "Hello, world!")
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py",
      line 146, in verify
      self._gen(input)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py",
      line 154, in _gen
      settings=self.settings(),
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 156, in __init__
      self.compile(source, file)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 245, in compile
      compiler.compile()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Compiler.py",
      line 1086, in compile
      self.parse()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Parser.py",
      line 1036, in parse
      self.eatDirective()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Parser.py",
      line 1150, in eatDirective
      self.directiveEaters[directiveKey]()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Parser.py",
      line 1470, in eatExtends
      mod =
      self._templateObj._importAsDummyModule('\n'.join(self._importStatements))
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 453, in _importAsDummyModule
      packageName =
      self._makeDummyPackageForDir(moduleDir)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 477, in _makeDummyPackageForDir
      isPackageDir=1,forceReload=1)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 525, in _importModuleFromDirectory
      fp, pathname, stuff = imp.find_module(moduleName,
      [directory])
      ImportError: No module named tmp

      **********************************************************************
      ERROR Cheetah.Tests.SyntaxAndOutput.CGI.test2 (CGI
      scripts with(out) the CGI environment and with(out)
      GET variables., A CGI script.)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py",
      line 2191, in test2
      self.verify(source, "Content-type:
      text/html\n\nHello, world!")
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py",
      line 146, in verify
      self._gen(input)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/SyntaxAndOutput.py",
      line 154, in _gen
      settings=self.settings(),
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 156, in __init__
      self.compile(source, file)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 245, in compile
      compiler.compile()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Compiler.py",
      line 1086, in compile
      self.parse()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Parser.py",
      line 1036, in parse
      self.eatDirective()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Parser.py",
      line 1150, in eatDirective
      self.directiveEaters[directiveKey]()
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Parser.py",
      line 1470, in eatExtends
      mod =
      self._templateObj._importAsDummyModule('\n'.join(self._importStatements))
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 453, in _importAsDummyModule
      packageName =
      self._makeDummyPackageForDir(moduleDir)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 477, in _makeDummyPackageForDir
      isPackageDir=1,forceReload=1)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Template.py",
      line 525, in _importModuleFromDirectory
      fp, pathname, stuff = imp.find_module(moduleName,
      [directory])
      ImportError: No module named tmp

      **********************************************************************
      FAIL Cheetah.Tests.CheetahWrapper.Flat.testCompile ()
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 430, in testCompile
      self.go("cheetah compile --flat child/a.tmpl")
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 190, in go
      self.failUnlessEqual(status, expectedStatus, msg)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/unittest_local_copy.py",
      line 404, in failUnlessEqual
      raise self.failureException, (msg or '%s != %s' %
      (first, second))
      AssertionError: subcommand exit status 127: cheetah
      compile --flat child/a.tmpl

      **********************************************************************
      FAIL Cheetah.Tests.CheetahWrapper.Flat.testFill ()
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 434, in testFill
      self.go("cheetah fill --flat child/a.tmpl")
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 190, in go
      self.failUnlessEqual(status, expectedStatus, msg)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/unittest_local_copy.py",
      line 404, in failUnlessEqual
      raise self.failureException, (msg or '%s != %s' %
      (first, second))
      AssertionError: subcommand exit status 127: cheetah
      fill --flat child/a.tmpl

      **********************************************************************
      FAIL Cheetah.Tests.CheetahWrapper.Flat.testText ()
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 438, in testText
      self.go("cheetah fill --flat --oext txt
      child/a.tmpl")
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 190, in go
      self.failUnlessEqual(status, expectedStatus, msg)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/unittest_local_copy.py",
      line 404, in failUnlessEqual
      raise self.failureException, (msg or '%s != %s' %
      (first, second))
      AssertionError: subcommand exit status 127: cheetah
      fill --flat --oext txt child/a.tmpl

      **********************************************************************
      FAIL
      Cheetah.Tests.CheetahWrapper.IdirOdirRecurse.testCompile
      ()
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 476, in testCompile
      self.go("cheetah compile -R --idir SRC --odir DEST
      child")
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/CheetahWrapper.py",
      line 190, in go
      self.failUnlessEqual(status, expectedStatus, msg)
      File
      "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/Cheetah/Tests/unittest_local_copy.py",
      line 404, in failUnlessEqual
      raise self.failureException, (msg or '%s != %s' %
      (first, second))
      AssertionError: subcommand exit status 127: cheetah
      compile -R --idir SRC --odir DEST child





      __________________________________
      Do you Yahoo!?
      New and Improved Yahoo! Mail - Send 10MB messages!
      http://promotions.yahoo.com/new_mail


      -------------------------------------------------------
      This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
      Use IT products in your business? Tell us what you think of them. Give us
      Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
      http://productguide.itmanagersjournal.com/guidepromo.tmpl
      _______________________________________________
      Cheetahtemplate-discuss mailing list
      Cheetahtemplate-discuss@...
      https://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss