skip to Main Content

Postgresql – Postgres suddenly raise error '/usr/lib/libpq.5.dylib' (no such file)

when I run Django project or any code related to Postgres : Referenced from: '/Users/mahmoudnasser/.local/share/virtualenvs/wyspp_backend-PwdII1PB/lib/python3.8/site-packages/psycopg2/_psycopg.cpython-38-darwin.so' Reason: tried: '/opt/homebrew/opt/postgresql/lib/libpq.5.dylib' (no such file), '/usr/local/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5.dylib' (no such file) I tried many solutions online but none of them worked. Note:…

VIEW QUESTION

Postgresql – AttributeError: 'FieldInstanceTracker' object has no attribute 'saved_data'

Problem with a post_save signal? class Book(models.Model): room = models.ForeignKey(Room, on_delete=models.CASCADE, null=False) library = models.ForeignKey(Library, on_delete=models.CASCADE, null=False) created_at = models.DateTimeField(auto_now_add=True) tracker = FieldTracker() def update_service(sender, instance, **kwargs): main_library = Library.object.get(id=1) if not instance.library == library: for book in instance.book_set.all(): book.delete()…

VIEW QUESTION
Back To Top
Search