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

Dawid Gajownik gajownik at fedora.pl
Thu Apr 13 15:08:25 UTC 2006


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
+ /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, 
   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

I don't understand it: I run this command in shell: 
/usr/bin/python -c 'from pysqlite2.test import test; test()'" and it 
works fine. This also works with previous pysqlite2 releases :/

Here are links to the spec file and srpm:

Any help would be appreciated.



More information about the fedora-extras-list mailing list