Make check files with python bindings.
Mike Evans
mikee at saxicola.co.uk
Sun May 18 05:49:26 EDT 2014
On Sat, 17 May 2014 16:43:23 -0700
John Ralls <jralls at ceridwen.us> wrote:
>
> On May 17, 2014, at 4:34 AM, Mike Evans <mikee at saxicola.co.uk> wrote:
>
> > On Sat, 17 May 2014 13:06 +0200
> > Geert Janssens <janssens-geert at telenet.be> wrote:
> >
> >> Do you have the python-test package installed ? Fedora has separated the
> >> test support from python-devel. I ran into this a few months back on
> >> Fedora 19 (20?) as well.
> >>
> >> Geert
> >>
> > Yes I do.
> > Package python-test-2.7.3-13.fc18.i686 already installed and latest version
> >
> > On My system:
> >
> > rpm -qi --whatprovides /usr/lib/python2.7/test/test_support.py
> > Name : python-libs
> > Version : 2.7.3
> > Release : 13.fc18
> > ...
> >
> > So test support is installed it seems. I can "import test" but there are no modules in test.
>
> Finally checked my F18 VM, which is 64-bit so it’s /usr/lib64/python2.7/test/test_support.py. It’s present and "from test import test_support” works. /usr/lib/python2.7/test also exists, but it’s empty. Check where (if?) test_support.py is installed and that it’s reachable on sys.path.
>
> Regards,
> John Ralls
>
Thanks John and Geert.
I checked if the "test" that I was finding was the "test" I shoulda been finding, and nope, it isn't. It's a different module and help(test) gives me:
NAME
test - Tests for 'biblio.webquery', using nose.
FILE
/usr/lib/python2.7/site-packages/biblio.webquery-0.4.3b-py2.7.egg/test/__init__.py
PACKAGE CONTENTS
test_errors
So I'm loading that one first it seems. I use biblio.webquery as part of a book cataloguing program I wrote some time ago. Thanks John for the prompting to check sys.path. Now to figure out how to get the right one loaded in each program. Just deleting the bogus module will do for now and hope that my librarian keeps working.
Cheers
Mike Evans
--
Anti NSA? Use PGP.
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x00CDB13500D7AB53
More information about the gnucash-devel
mailing list