has anyone handled this error in the past re-postg...
# troubleshooting
d
has anyone handled this error in the past re-postgres?
Copy code
dlopen(/Users/devon-seitz/vscode/grasshopper/.venv/lib/python3.10/site-packages/psycopg2/_psycopg.cpython-310-darwin.so, 0x0002): Library not loaded: '/opt/homebrew/opt/postgresql/lib/libpq.5.dylib'
  Referenced from: '/Users/devon-seitz/vscode/grasshopper/.venv/lib/python3.10/site-packages/psycopg2/_psycopg.cpython-310-darwin.so'
  Reason: tried: '/opt/homebrew/opt/postgresql/lib/libpq.5.dylib' (no such file), '/usr/lib/libpq.5.dylib' (no such file)
looks like my path for postgres was a bit off after leveraging postgres14 this fixed it
echo export DYLD_LIBRARY_PATH=/opt/homebrew/Cellar/postgresql@14/14.5_2/lib/postgresql@14:$DYLD_LIBRARY_PATH >> .venv/bin/activate
c
The linking command worked for me: https://stackoverflow.com/questions/9023482/library-not-loaded-usr-local-lib-libpq-5-4-dylib
Copy code
sudo ln -s /usr/local/opt/postgresql@14/lib/postgresql@14/libpq.5.dylib /usr/local/lib/libpq.5.dylib