runtests on Venus install
Adam Bossy
adambossy at gmail.com
Wed Feb 17 12:33:04 EST 2010
I encountered the same Django error while installing Venus several months
ago. It's likely a bug in the Venus code. The django test code checks to
ensure Django is loaded in one section of the code, and later calls a
function that loads Django without checking whether or not it's loaded. I
think that was the jist of it at least.
Adam
On Tue, Feb 16, 2010 at 5:00 PM, <devel-request at lists.planetplanet.org>wrote:
> Send devel mailing list submissions to
> devel at lists.planetplanet.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.planetplanet.org/mailman/listinfo/devel
> or, via email, send a message with subject or body 'help' to
> devel-request at lists.planetplanet.org
>
> You can reach the person managing the list at
> devel-owner at lists.planetplanet.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of devel digest..."
>
>
> Today's Topics:
>
> 1. runtests on Venus install (Riccardo Rossi)
> 2. Re: runtests on Venus install (david.levy at tiscali.co.uk)
> 3. Re: runtests on Venus install (Amit Chakradeo (???? ???????))
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 16 Feb 2010 02:15:31 +0100
> From: Riccardo Rossi <ric.rossi at gmail.com>
> To: devel at lists.planetplanet.org
> Subject: runtests on Venus install
> Message-ID:
> <4728f0bb1002151715gcc134e5t1d9c5b0fa61c2023 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> I'm kind of new to the PlanetPlanet stuff... I', trying to install it. Upon
> launching "runtests.py" I quite didn't have an OK responce. So I guess I'm
> not good to go! Below it's the responce I had with the test. Anyone can
> help?
> Thanks in advance,
> Ric
> ----------------
>
>
>
> libxml2 is not available => can't test xpath_sifter
> libxslt is not available => can't test xslt filters
> Genshi is not available => can't test genshi filters
> Redland RDF is not available => can't test FOAF reading lists
> xsltproc is not available => can't test XSLT templates
>
> ...............................................................................................................................................................................................E...........
> ======================================================================
> ERROR: test_django_entry_title (tests.test_filter_django.DjangoFilterTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/mare/mappacervelli.org/venus/tests/test_filter_django.py",
> line 25, in test_django_entry_title
> results = dj.run(
> File "/home/mare/mappacervelli.org/venus/planet/shell/dj.py", line 25, in
> run
> TEMPLATE_DIRS=(os.path.dirname(script),)
> File "/var/lib/python-support/python2.4/django/conf/__init__.py", line 49,
> in configure
> raise RuntimeError, 'Settings already configured.'
> RuntimeError: Settings already configured.
>
> ----------------------------------------------------------------------
> Ran 203 tests in 8.865s
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: </archives/devel/attachments/20100216/4898f857/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 16 Feb 2010 10:36:20 +0100 (GMT+01:00)
> From: "david.levy at tiscali.co.uk" <david.levy at tiscali.co.uk>
> To: <ric.rossi at gmail.com>, <devel at lists.planetplanet.org>
> Subject: Re: runtests on Venus install
> Message-ID: <31489872.1266312980580.JavaMail.root at ps26>
> Content-Type: text/plain; charset="utf-8"
>
> You'll need to install xspltproc, which if I remember correctly, with
> Ubuntu, will make the xslt and libxml error lines disappear. If you want a
> FOAF version of the subscription lists, you'll need Redland RDF and its
> python bindings. I have never installed Genshi and don't know what it does.
>
> I have never had django installed, so I don't know the tests or code, and
> thus can't help you decode the error. Sorry.
>
> I don't think it'll work without the xslt and libxml packages.
>
>
>
>
> ----Original Message----
>
> From: ric.rossi at gmail.com
>
> Date: 16/02/2010 1:15
>
> To: <devel at lists.planetplanet.org>
>
> Subj: runtests on Venus install
>
>
>
> Hi,I'm kind of new to the PlanetPlanet stuff... I', trying to install it.
> Upon launching "runtests.py" I quite didn't have an OK responce. So I guess
> I'm not good to go! Below it's the responce I had with the test. Anyone can
> help?
> Thanks in advance,Ric ----------------
>
>
> libxml2 is not available => can't test xpath_sifterlibxslt is not available
> => can't test xslt filters
> Genshi is not available => can't test genshi filtersRedland RDF is not
> available => can't test FOAF reading listsxsltproc is not available => can't
> test XSLT templates
>
> ...............................................................................................................................................................................................E...........======================================================================
> ERROR: test_django_entry_title
> (tests.test_filter_django.DjangoFilterTests)----------------------------------------------------------------------Traceback
> (most recent call last): File "/home/mare/
> mappacervelli.org/venus/tests/test_filter_django.py", line 25, in
> test_django_entry_title
> results = dj.run( File "/home/mare/
> mappacervelli.org/venus/planet/shell/dj.py", line 25, in run
> TEMPLATE_DIRS=(os.path.dirname(script),)
> File "/var/lib/python-support/python2.4/django/conf/__init__.py", line 49,
> in configure raise RuntimeError, 'Settings already
> configured.'RuntimeError: Settings already configured.
>
> ----------------------------------------------------------------------Ran
> 203 tests in 8.865s
>
>
>
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: </archives/devel/attachments/20100216/9f670817/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 16 Feb 2010 10:27:37 -0800
> From: Amit Chakradeo (???? ???????) <chakradeo+planet at gmail.com<chakradeo%2Bplanet at gmail.com>
> >
> To: "david.levy at tiscali.co.uk" <david.levy at tiscali.co.uk>
> Cc: ric.rossi at gmail.com, devel at lists.planetplanet.org
> Subject: Re: runtests on Venus install
> Message-ID:
> <51e033811002161027n27b0f6aeua0ffe5086b028efc at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I have a patch which fixes the django template errors. You can either use
> attached patch or pull from http://chakradeo.net/venus/venus/
> <http://chakradeo.net/venus/venus/>
>
> === modified file 'planet/shell/dj.py'
> --- planet/shell/dj.py 2007-07-07 22:53:41 +0000
> +++ planet/shell/dj.py 2010-02-16 18:03:41 +0000
> @@ -19,6 +19,7 @@
> # I need to re-import the settings at every call because I have to
> # set the TEMPLATE_DIRS variable programmatically
> from django.conf import settings
> + settings._wrapped=None
> try:
> settings.configure(
> DEBUG=True, TEMPLATE_DEBUG=True,
>
> === modified file 'tests/test_filter_django.py'
> --- tests/test_filter_django.py 2007-07-05 19:01:19 +0000
> +++ tests/test_filter_django.py 2010-02-16 18:18:32 +0000
> @@ -1,4 +1,5 @@
> #!/usr/bin/env python
> +# coding: utf-8
>
> import os.path
> import unittest, xml.dom.minidom, datetime
> @@ -24,7 +25,7 @@
> input = feed.read(); feed.close()
> results = dj.run(
> os.path.realpath('tests/data/filter/django/title.html.dj'),
> input)
> - self.assertEqual(results, "\xc2\xa1Atom-Powered Robots Run
> Amok!\n")
> + self.assertEqual(results, u"?Atom-Powered Robots Run Amok!\n")
>
> def test_django_config_context(self):
> config.load('tests/data/filter/django/test.ini')
>
> Thanks!
> --Amit
> On Tue, Feb 16, 2010 at 1:36 AM, david.levy at tiscali.co.uk <
> david.levy at tiscali.co.uk> wrote:
>
> > You'll need to install xspltproc, which if I remember correctly, with
> > Ubuntu, will make the xslt and libxml error lines disappear. If you want
> a
> > FOAF version of the subscription lists, you'll need Redland RDF and its
> > python bindings. I have never installed Genshi and don't know what it
> does.
> >
> > I have never had django installed, so I don't know the tests or code, and
> > thus can't help you decode the error. Sorry.
> >
> > I don't think it'll work without the xslt and libxml packages.
> >
> > ----Original Message----
> > From: ric.rossi at gmail.com
> > Date: 16/02/2010 1:15
> > To: <devel at lists.planetplanet.org>
> > Subj: runtests on Venus install
> >
> > Hi,
> > I'm kind of new to the PlanetPlanet stuff... I', trying to install it.
> Upon
> > launching "runtests.py" I quite didn't have an OK responce. So I guess
> I'm
> > not good to go! Below it's the responce I had with the test. Anyone can
> > help?
> > Thanks in advance,
> > Ric
> > ----------------
> >
> >
> >
> > libxml2 is not available => can't test xpath_sifter
> > libxslt is not available => can't test xslt filters
> > Genshi is not available => can't test genshi filters
> > Redland RDF is not available => can't test FOAF reading lists
> > xsltproc is not available => can't test XSLT templates
> >
> >
> ...............................................................................................................................................................................................E...........
> > ======================================================================
> > ERROR: test_django_entry_title
> (tests.test_filter_django.DjangoFilterTests)
> > ----------------------------------------------------------------------
> > Traceback (most recent call last):
> > File "/home/mare/mappacervelli.org/venus/tests/test_filter_django.py",
> > line 25, in test_django_entry_title
> > results = dj.run(
> > File "/home/mare/mappacervelli.org/venus/planet/shell/dj.py", line 25,
> > in run
> > TEMPLATE_DIRS=(os.path.dirname(script),)
> > File "/var/lib/python-support/python2.4/django/conf/__init__.py", line
> > 49, in configure
> > raise RuntimeError, 'Settings already configured.'
> > RuntimeError: Settings already configured.
> >
> > ----------------------------------------------------------------------
> > Ran 203 tests in 8.865s
> >
> >
> >
> >
> >
> > --
> > devel mailing list
> > devel at lists.planetplanet.org
> > http://lists.planetplanet.org/mailman/listinfo/devel
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: </archives/devel/attachments/20100216/4a23deee/attachment-0001.html>
>
> ------------------------------
>
> --
> devel mailing list
> devel at lists.planetplanet.org
> http://lists.planetplanet.org/mailman/listinfo/devel
>
>
> End of devel Digest, Vol 50, Issue 3
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </archives/devel/attachments/20100216/bf8d4517/attachment.html>
More information about the devel
mailing list