Bug 510811 - python-sqlalchemy-0.5.4-1.p2 missing BR on python-sqlite2
Summary: python-sqlalchemy-0.5.4-1.p2 missing BR on python-sqlite2
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python-sqlalchemy
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Toshio Ernie Kuratomi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-10 21:49 UTC by R P Herrold
Modified: 2009-07-11 01:33 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-07-11 01:33:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description R P Herrold 2009-07-10 21:49:11 UTC
Description of problem:

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

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


0.5.4-1.p2

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\*
python-sqlite-1.1.7-1.2.1
python-sqlite2-2.3.3-1orc
[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\*
python-sqlite-1.1.7-1.2.1
[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
 ... 

+ PYTHONPATH=./test
+ 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
    testlib.config.configure()
  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-11 01:33:13 UTC
This package is meant for Fedora.  Fedora provides sqlite3 as part of the python package.

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

  https://bugzilla.redhat.com/show_bug.cgi?id=507695


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