[pysqlite 2.2.0] how to run tests in %check section?

Garrick Staples garrick at usc.edu
Thu Apr 13 17:46:49 UTC 2006


On Thu, Apr 13, 2006 at 05:08:25PM +0200, Dawid Gajownik alleged:
> Hi!
> 
> I wanted to update python-sqlite2 to version 2.2.0 but I cannot run 
> tests in %check section. It always fails with this message:
> 
> Wykonywanie(%check): /bin/sh -e /var/tmp/rpm-tmp.54371
> + umask 022
> + cd /home/rpm-build/rpmbuild/BUILD
> + cd pysqlite-2.2.0
> + PYTHONPATH=/var/tmp/python-sqlite2-2.2.0-1-root-rpm-build/usr/lib/python2.4/site-packages
> + /usr/bin/python -c 'from pysqlite2.test import test; test()'
> Traceback (most recent call last):
>   File "<string>", line 1, in ?
>   File "pysqlite2/test/__init__.py", line 25, in ?
>     from pysqlite2.test import dbapi, types, userfunctions, factory, 
> transactions,\
>   File "pysqlite2/test/dbapi.py", line 26, in ?
>     import pysqlite2.dbapi2 as sqlite
>   File "pysqlite2/dbapi2.py", line 32, in ?
>     from pysqlite2._sqlite import *
> ImportError: No module named _sqlite

Need to export PYTHONPATH before running python?

-- 
Garrick Staples, Linux/HPCC Administrator
University of Southern California
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060413/bee86ad5/attachment.sig>


More information about the fedora-extras-list mailing list