Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bazarr: Postgresql support - Install psycopg2 #165

Closed
aleksasiriski opened this issue Apr 30, 2023 · 0 comments · Fixed by #166
Closed

Bazarr: Postgresql support - Install psycopg2 #165

aleksasiriski opened this issue Apr 30, 2023 · 0 comments · Fixed by #166

Comments

@aleksasiriski
Copy link
Contributor

I believe psycopg2 is missing from the Dockerfile for Bazarr.

Bazarr starting...
Traceback (most recent call last):
  File "/app/bazarr/main.py", line 22, in <module>
    from init import *  # noqa E402
  File "/app/bazarr/init.py", line 181, in <module>
    from app.announcements import get_announcements_to_file
  File "/app/bazarr/app/announcements.py", line 13, in <module>
    from app.get_providers import get_enabled_providers
  File "/app/bazarr/app/get_providers.py", line 23, in <module>
    from app.event_handler import event_stream
  File "/app/bazarr/app/event_handler.py", line 3, in <module>
    from .app import socketio
  File "/app/bazarr/app/app.py", line 8, in <module>
    from .database import database
  File "/app/bazarr/app/database.py", line 108, in <module>
    class TableEpisodes(BaseModel):
  File "/app/bazarr/../libs/peewee.py", line 6342, in __new__
    cls._meta.add_field(name, field)
  File "/app/bazarr/../libs/peewee.py", line 6126, in add_field
    field.bind(self.model, field_name, set_attribute)
  File "/app/bazarr/../libs/peewee.py", line 4878, in bind
    self._db_hook(model._meta.database)
  File "/app/bazarr/../libs/peewee.py", line 4870, in _db_hook
    self._constructor = database.get_binary_type()
  File "/app/bazarr/../libs/peewee.py", line 4017, in get_binary_type
    return psycopg2.Binary
AttributeError: 'NoneType' object has no attribute 'Binary'

Here''s an example of a correct Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant