Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626022 - dev-python/peewee-2.8.1: peewee.ImproperlyConfigured: psycopg2 must be installed.
Summary: dev-python/peewee-2.8.1: peewee.ImproperlyConfigured: psycopg2 must be instal...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-23 20:32 UTC by Kobboi
Modified: 2017-07-24 18:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.