[copr] master: require python-psycopg2 (28e2649)

msuchy at fedoraproject.org msuchy at fedoraproject.org
Thu Jun 20 12:20:03 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 28e264924af4fc3b3ad4ae19f999d16c3b9e50c3
Author: Miroslav Suchý <msuchy at redhat.com>
Date:   Thu Jun 20 12:07:40 2013 +0200

    require python-psycopg2
    
    in case you use python db backend you have to have psycopg driver
    
    addressing:
    Traceback (most recent call last):
      File "./manage.py", line 190, in <module>
        manager.run()
      File "/usr/lib/python2.7/site-packages/flask_script/__init__.py", line 351, in run
        result = self.handle(sys.argv[0], command, sys.argv[2:])
      File "/usr/lib/python2.7/site-packages/flask_script/__init__.py", line 324, in handle
        return command.handle(app, *positional_args, **command_namespace.__dict__)
      File "/usr/lib/python2.7/site-packages/flask_script/commands.py", line 143, in handle
        return self.run(*args, **kwargs)
      File "./manage.py", line 41, in run
        db.create_all()
      File "/usr/lib/python2.7/site-packages/flask_sqlalchemy.py", line 822, in create_all
        self._execute_for_all_tables(app, bind, 'create_all')
      File "/usr/lib/python2.7/site-packages/flask_sqlalchemy.py", line 814, in _execute_for_all_tables
        op(bind=self.get_engine(app, bind), tables=tables)
      File "/usr/lib/python2.7/site-packages/flask_sqlalchemy.py", line 763, in get_engine
        return connector.get_engine()
      File "/usr/lib/python2.7/site-packages/flask_sqlalchemy.py", line 443, in get_engine
        self._engine = rv = sqlalchemy.create_engine(info, **options)
      File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 338, in create_engine
        return strategy.create(*args, **kwargs)
      File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 64, in create
        dbapi = dialect_cls.dbapi(**dbapi_args)
      File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 312, in dbapi
        psycopg = __import__('psycopg2')
    ImportError: No module named psycopg2


>---------------------------------------------------------------

 copr.spec |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/copr.spec b/copr.spec
index 4ce0a5f..b2be868 100644
--- a/copr.spec
+++ b/copr.spec
@@ -50,6 +50,7 @@ Requires:   python-flask-script
 Requires:   python-flask-whooshee
 #Requires:	python-virtualenv
 Requires:   python-blinker
+Requires:	python-psycopg2
 Requires:	python-whoosh
 # for tests:
 Requires:	pytest



More information about the copr-devel mailing list