Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 626022

Summary: dev-python/peewee-2.8.1: peewee.ImproperlyConfigured: psycopg2 must be installed.
Product: Gentoo Linux Reporter: Kobboi <gentoo>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kobboi 2017-07-23 20:32:33 UTC
The default engine is postgresql, for which the ebuild needs a run-time dependency on dev-python/psycopg:2

Not sure if we want to hide this behind new peewee USE-flags or add the dependency globally.

At the very very least, the ebuild should mention the need for this additional package.

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/pwiz.py", line 198, in <module>
    print_models(introspector, tables, preserve_order=options.preserve_order)
  File "/usr/lib/python-exec/python3.4/pwiz.py", line 47, in print_models
    database = introspector.introspect(table_names=tables)
  File "/usr/lib64/python3.4/site-packages/playhouse/reflection.py", line 418, in introspect
    tables = self.metadata.database.get_tables()
  File "/usr/lib64/python3.4/site-packages/peewee.py", line 3814, in get_tables
    return [r for r, in self.execute_sql(query, (schema,)).fetchall()]
  File "/usr/lib64/python3.4/site-packages/peewee.py", line 3483, in execute_sql
    cursor = self.get_cursor()
  File "/usr/lib64/python3.4/site-packages/peewee.py", line 3431, in get_cursor
    return self.get_conn().cursor()
  File "/usr/lib64/python3.4/site-packages/peewee.py", line 3424, in get_conn
    self.connect()
  File "/usr/lib64/python3.4/site-packages/peewee.py", line 3402, in connect
    **self.connect_kwargs)
  File "/usr/lib64/python3.4/site-packages/peewee.py", line 3778, in _connect
    raise ImproperlyConfigured('psycopg2 must be installed.')
peewee.ImproperlyConfigured: psycopg2 must be installed.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-04-05 07:46:58 UTC
Version long gone.