problems with venus on windows

Steven M. Ottens steven at minst.net
Wed Mar 5 23:59:57 EST 2008


Hi all,

Sorry for replying on my own mail. I had a hunch that it might be 
because I have spaces in my path, so I moved it to a directory without 
spaces and now it runs. It is a bit annoying though, since both Apache 
and my usual webroot are in a path with spaces, so I'd say this is a bug 
in either runtests.py or in venus it self.

If someone has a tip how to use it with spaces, I'd appreciate it, 
otherwise I'll rewrite apache-conf to point to the current-working 
directory.

Thanks,
Steven


Steven M. Ottens wrote:
> Hi all,
>
> I'm trying to install venus on a windows XP machine with apache 2.2 and 
> python 2.5
> When I run runtests.py I get a whole lot of errors and fails. If someone 
> could point me into a direction to get it working I'd really appreciate it
>
> Regards
> Steven
>
> The output of runtests.py:
> C:\Documents and Settings\steveno\workspace\venus>python runtests.py
> sed is not available => can't test stripAd_yahoo
> Django is not available => can't test django filters
> Redland RDF is not available => can't test FOAF reading lists
> Unable to locate template atom.xml.xslt
> Unable to locate template foafroll.xml.xslt
> Unable to locate template index.html.xslt
> Unable to locate template opml.xml.xslt
> Unable to locate template validate.html.xslt
> Unable to locate default.css
> Unable to locate personalize.js
> Unable to locate images/feed-icon-10x10.png
> Unable to locate images/opml.png
> Unable to locate images/foaf.png
> Unable to locate images/venus.png
> FUnable to locate template atom.xml.xslt
> Unable to locate template foafroll.xml.xslt
> Unable to locate template index.html.tmpl
> Unable to locate template opml.xml.xslt
> Unable to locate planet.css
> Unable to locate images/feed-icon-10x10.png
> Unable to locate images/logo.png
> Unable to locate images/planet.png
> FUnable to locate template atom.xml.xslt
> Unable to locate template foafroll.xml.xslt
> Unable to locate template index.html.xslt
> EUnable to locate template atom.xml.xslt
> Unable to locate template foafroll.xml.xslt
> Unable to locate template index.html.xslt
> EUnable to locate template atom.xml.xslt
> Unable to locate template foafroll.xml.xslt
> Unable to locate template index.html.tmpl
> EUnable to locate template atom.xml.xslt
> Unable to locate template foafroll.xml.xslt
> Unable to locate template index.html.genshi
> Unable to locate template opml.xml.xslt
> Unable to locate planet.css
> Unable to locate images/feed-icon-10x10.png
> Unable to locate images/logo.png
> Unable to locate images/venus.png
> F................EEEEEFFEFFE...................................................E
> ................................................................................
> ........................................F.
> ======================================================================
> ERROR: test_apply_filter (tests.test_apply.ApplyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 100, in test_apply_filter
>     splice.apply(self.feeddata)
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\planet\splice.py", lin
> e 122, in apply
>     output = open(output_file).read()
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> ======================================================================
> ERROR: test_apply_filter_html (tests.test_apply.ApplyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 62, in test_apply_filter_html
>     self.apply_asf()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 27, in apply_asf
>     splice.apply(self.feeddata)
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\planet\splice.py", lin
> e 122, in apply
>     output = open(output_file).read()
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> ======================================================================
> ERROR: test_apply_filter_mememe (tests.test_apply.ApplyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 72, in test_apply_filter_mememe
>     self.apply_fancy()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 84, in apply_fancy
>     splice.apply(self.feeddata)
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\planet\splice.py", lin
> e 122, in apply
>     output = open(output_file).read()
> TypeError: coercing to Unicode: need string or buffer, NoneType found
>
> ======================================================================
> ERROR: test_coral_cdn (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 13, in test_coral_cdn
>     dom = xml.dom.minidom.parseString(output)
>   File "C:\Python25\Lib\xml\dom\minidom.py", line 1923, in parseString
>     return expatbuilder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 940, in parseString
>     return builder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 223, in parseString
>     parser.Parse(string, True)
> TypeError: Parse() argument 1 must be string or read-only buffer, not None
>
> ======================================================================
> ERROR: test_excerpt_images1 (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 22, in test_excerpt_images1
>     self.verify_images()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 34, in verify_images
>     dom = xml.dom.minidom.parseString(output)
>   File "C:\Python25\Lib\xml\dom\minidom.py", line 1923, in parseString
>     return expatbuilder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 940, in parseString
>     return builder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 223, in parseString
>     parser.Parse(string, True)
> TypeError: Parse() argument 1 must be string or read-only buffer, not None
>
> ======================================================================
> ERROR: test_excerpt_images2 (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 26, in test_excerpt_images2
>     self.verify_images()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 34, in verify_images
>     dom = xml.dom.minidom.parseString(output)
>   File "C:\Python25\Lib\xml\dom\minidom.py", line 1923, in parseString
>     return expatbuilder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 940, in parseString
>     return builder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 223, in parseString
>     parser.Parse(string, True)
> TypeError: Parse() argument 1 must be string or read-only buffer, not None
>
> ======================================================================
> ERROR: test_excerpt_lorem_ipsum (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 51, in test_excerpt_lorem_ipsum
>     dom = xml.dom.minidom.parseString(output)
>   File "C:\Python25\Lib\xml\dom\minidom.py", line 1923, in parseString
>     return expatbuilder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 940, in parseString
>     return builder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 223, in parseString
>     parser.Parse(string, True)
> TypeError: Parse() argument 1 must be string or read-only buffer, not None
>
> ======================================================================
> ERROR: test_excerpt_lorem_ipsum_summary (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 66, in test_excerpt_lorem_ipsum_summary
>     dom = xml.dom.minidom.parseString(output)
>   File "C:\Python25\Lib\xml\dom\minidom.py", line 1923, in parseString
>     return expatbuilder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 940, in parseString
>     return builder.parseString(string)
>   File "C:\Python25\lib\xml\dom\expatbuilder.py", line 223, in parseString
>     parser.Parse(string, True)
> TypeError: Parse() argument 1 must be string or read-only buffer, not None
>
> ======================================================================
> ERROR: test_xhtml2html_filter (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 152, in test_xhtml2html_filter
>     self.assertTrue(output.find('/>')<0)
> AttributeError: 'NoneType' object has no attribute 'find'
>
> ======================================================================
> ERROR: test_addsearch_filter (tests.test_filter_genshi.GenshiFilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filter_gens
> hi.py", line 12, in test_addsearch_filter
>     self.assertTrue(output.find('<h2>Search</h2>')>=0)
> AttributeError: 'NoneType' object has no attribute 'find'
>
> ======================================================================
> ERROR: test_addsearch_filter (tests.test_filter_xslt.XsltFilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filter_xslt
> .py", line 22, in test_addsearch_filter
>     self.assertTrue(output.find('<h2>Search</h2>')>=0)
> AttributeError: 'NoneType' object has no attribute 'find'
>
> ======================================================================
> FAIL: test_apply_asf (tests.test_apply.ApplyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 50, in test_apply_asf
>     self.apply_asf()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 32, in apply_asf
>     self.assertTrue(os.path.exists(path))
> AssertionError
>
> ======================================================================
> FAIL: test_apply_classic_fancy (tests.test_apply.ApplyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 54, in test_apply_classic_fancy
>     self.apply_fancy()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 89, in apply_fancy
>     self.assertTrue(os.path.exists(path), path)
> AssertionError: tests/work/apply\index.html
>
> ======================================================================
> FAIL: test_apply_genshi_fancy (tests.test_apply.ApplyTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 58, in test_apply_genshi_fancy
>     self.apply_fancy()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_apply.py",
> line 89, in apply_fancy
>     self.assertTrue(os.path.exists(path), path)
> AssertionError: tests/work/apply\index.html
>
> ======================================================================
> FAIL: test_regexp_filter (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 119, in test_regexp_filter
>     self.assertEqual('', output)
> AssertionError: '' != None
>
> ======================================================================
> FAIL: test_regexp_filter2 (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 146, in test_regexp_filter2
>     self.assertEqual('', output)
> AssertionError: '' != None
>
> ======================================================================
> FAIL: test_xpath_filter1 (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 87, in test_xpath_filter1
>     self.verify_xpath()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 100, in verify_xpath
>     self.assertEqual('', output)
> AssertionError: '' != None
>
> ======================================================================
> FAIL: test_xpath_filter2 (tests.test_filters.FilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 91, in test_xpath_filter2
>     self.verify_xpath()
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_filters.py"
> , line 100, in verify_xpath
>     self.assertEqual('', output)
> AssertionError: '' != None
>
> ======================================================================
> FAIL: test_template_directories (tests.test_themes.ThemesTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\Documents and 
> Settings\steveno\workspace\venus\tests\test_themes.py",
>  line 15, in test_template_directories
>     [split(dir)[1] for dir in config.template_directories()])
> AssertionError: ['foo', 'bar', 'asf', 'config', 'common'] != ['foo', 
> 'bar', 'Doc
> uments', 'and', 'asf', 'config', 'Documents', 'and', 'common']
>
> ----------------------------------------------------------------------
> Ran 207 tests in 8.619s
>
> FAILED (failures=8, errors=11)
>
>
>
>   





More information about the devel mailing list