You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This package contains common Python utility classes and functions.
19
19
## Developing locally
20
20
In order to use the local version of the package instead of the global version, use a virtual environment. To set up a virtual environment and install all the necessary dependencies, run:
Add any new dependencies required by code in the `nypl_py_utils` directory to the `dependencies` section of `pyproject.toml`. Add dependencies only required by code in the `tests` directory to the `[project.optional-dependencies]` section.
32
32
33
+
### Troubleshooting
34
+
If running `main.py` in this virtual environment produces the following error:
35
+
```
36
+
ImportError: no pq wrapper available.
37
+
Attempts made:
38
+
- couldn't import psycopg 'c' implementation: No module named 'psycopg_c'
39
+
- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
40
+
- couldn't import psycopg 'python' implementation: dlsym(0x7f8620446f40, PQsslInUse): symbol not found
41
+
```
42
+
43
+
then try running:
44
+
```
45
+
pip uninstall psycopg
46
+
pip install "psycopg[c]"
47
+
```
48
+
33
49
## Git workflow
34
50
This repo uses the [Main-QA-Production](https://github.com/NYPL/engineering-general/blob/main/standards/git-workflow.md#main-qa-production) git workflow.
0 commit comments