Bug 510811 - python-sqlalchemy-0.5.4-1.p2 missing BR on python-sqlite2
python-sqlalchemy-0.5.4-1.p2 missing BR on python-sqlite2
Product: Fedora
Classification: Fedora
Component: python-sqlalchemy (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Toshio Ernie Kuratomi
Fedora Extras Quality Assurance
: EasyFix
Depends On:
  Show dependency treegraph
Reported: 2009-07-10 17:49 EDT by R P Herrold
Modified: 2009-07-10 21:33 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-07-10 21:33:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description R P Herrold 2009-07-10 17:49:11 EDT
Description of problem:

python-sqlalchemy-0.5.4-1.p2 missing BR on python-sqlite2

Version-Release number of selected component (if applicable):


How reproducible:

With it present, I get ...

[herrold@centos-5 supybot]$ rpmbuild -ba  ~/rpmbuild/SPECS/python-sqlalchemy.spec
Wrote: /home/herrold/rpmbuild/SRPMS/python-sqlalchemy-0.5.4-1.p2orc.src.rpm
Wrote: /home/herrold/rpmbuild/RPMS/noarch/python-sqlalchemy-0.5.4-1.p2orc.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.74533

[herrold@centos-5 supybot]$ rpm -qa python-sql\*
[herrold@centos-5 supybot]$  

Steps to Reproduce:

With it absent, I get:

[herrold@centos-5 supybot]$ sudo rpm -e python-sqlite2
[herrold@centos-5 supybot]$ rpm -qa python-sql\*
[herrold@centos-5 supybot]$ rpmbuild -ba  ~/rpmbuild/SPECS/python-sqlalchemy.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.74127
+ umask 022
+ cd /home/herrold/rpmbuild/BUILD

+ python test/alltests.py
Traceback (most recent call last):
  File "test/alltests.py", line 1, in ?
    import testenv; testenv.configure_for_tests()
  File "/home/herrold/rpmbuild/BUILD/SQLAlchemy-0.5.4p2/test/testenv.py", line 23, in configure_for_tests
  File "/home/herrold/rpmbuild/BUILD/SQLAlchemy-0.5.4p2/test/testlib/config.py", line 43, in configure
    fn(options, file_config)
  File "/home/herrold/rpmbuild/BUILD/SQLAlchemy-0.5.4p2/test/testlib/config.py", line 261, in _create_testing_engine
    db = engines.testing_engine(db_url, db_opts)
  File "/home/herrold/rpmbuild/BUILD/SQLAlchemy-0.5.4p2/test/testlib/engines.py", line 117, in testing_engine
    engine = create_engine(url, **options)
  File "/home/herrold/rpmbuild/BUILD/SQLAlchemy-0.5.4p2/lib/sqlalchemy/engine/__init__.py", line 223, in create_engine
    return strategy.create(*args, **kwargs)
  File "/home/herrold/rpmbuild/BUILD/SQLAlchemy-0.5.4p2/lib/sqlalchemy/engine/strategies.py", line 62, in create
    dbapi = dialect_cls.dbapi(**dbapi_args)
  File "/home/herrold/rpmbuild/BUILD/SQLAlchemy-0.5.4p2/lib/sqlalchemy/databases/sqlite.py", line 381, in dbapi
    raise e
ImportError: No module named pysqlite2
error: Bad exit status from /var/tmp/rpm-tmp.76111 (%check)

.... there is a missing BR for python-sqlite2

Actual results:

a broken build

Expected results:

a clean build

Additional info:

solution is to add a 
   BuildRequires: python-sqlite2   
to the .spec file

This is tagged: EasyFix  as it is a single line addition to solve the issue

Please ask if more information is needed
Comment 1 Toshio Ernie Kuratomi 2009-07-10 21:33:13 EDT
This package is meant for Fedora.  Fedora provides sqlite3 as part of the python package.

For sqlalchemy0.5 for centos5, please see this review:


Note You need to log in before you can comment on or make changes to this bug.