{"id":27262,"library":"psycopgbinary","title":"PsycopgBinary","description":"A dummy package that re-exports psycopg2-binary for environments where the import name 'psycopg2' is taken or conflicts. Current version 0.0.1. Not actively maintained; use psycopg2-binary directly instead.","status":"active","version":"0.0.1","language":"python","source_language":"en","source_url":"https://pypi.org/project/psycopgbinary/","tags":["psycopg2","postgresql","database","binary","shim"],"install":[{"cmd":"pip install psycopgbinary","lang":"bash","label":"Install"}],"dependencies":[],"imports":[{"note":"This package is just a shim; the actual module is still psycopg2.","wrong":"import psycopgbinary","symbol":"psycopg2","correct":"import psycopg2"}],"quickstart":{"code":"import psycopg2\nconn = psycopg2.connect(database='test', user='postgres', password='secret', host='localhost', port=5432)\ncur = conn.cursor()\ncur.execute('SELECT 1')\nprint(cur.fetchone())\ncur.close()\nconn.close()","lang":"python","description":"Standard psycopg2 usage after installing psycopgbinary."},"warnings":[{"fix":"Use import psycopg2. Do not attempt to import psycopgbinary.","message":"Installing psycopgbinary does NOT provide import psycopgbinary; you must still import psycopg2. The package is just a dependency placeholder.","severity":"gotcha","affected_versions":"all"},{"fix":"Uninstall psycopgbinary: pip uninstall psycopgbinary. Then install psycopg2-binary: pip install psycopg2-binary.","message":"This package is redundant. The official psycopg2-binary package already provides the psycopg2 module. Use pip install psycopg2-binary instead.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use import psycopg2 instead of import psycopgbinary.","cause":"The package name does not match the import name. The module is called psycopg2.","error":"ImportError: No module named psycopgbinary"},{"fix":"Correct import: import psycopg2","cause":"You tried to import the package name as a module.","error":"ModuleNotFoundError: No module named 'psycopgbinary'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}