Registry / database / psycopgbinary

psycopgbinary

JSON →
library0.0.1pypypi✓ verified 86d ago

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.

pip install psycopgbinary
INSTALL
IMPORT
SIG · PSYCOPGBINARY
P
psycopgbinary
databasepythonv0.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

psycopg2
import psycopg2
import psycopgbinary
This package is just a shim; the actual module is still psycopg2.

Standard psycopg2 usage after installing psycopgbinary.

import psycopg2 conn = psycopg2.connect(database='test', user='postgres', password='secret', host='localhost', port=5432) cur = conn.cursor() cur.execute('SELECT 1') print(cur.fetchone()) cur.close() conn.close()
Debug
Known issues
gotchaInstalling psycopgbinary does NOT provide import psycopgbinary; you must still import psycopg2. The package is just a dependency placeholder.
fix
Use import psycopg2. Do not attempt to import psycopgbinary.
affects: all
deprecatedThis package is redundant. The official psycopg2-binary package already provides the psycopg2 module. Use pip install psycopg2-binary instead.
fix
Uninstall psycopgbinary: pip uninstall psycopgbinary. Then install psycopg2-binary: pip install psycopg2-binary.
affects: all
Errors
Common errors & fixes
ImportError: No module named psycopgbinary
The package name does not match the import name. The module is called psycopg2.
fix
Use import psycopg2 instead of import psycopgbinary.
ModuleNotFoundError: No module named 'psycopgbinary'
You tried to import the package name as a module.
fix
Correct import: import psycopg2
Upgrade
Version history
0.0.1latest on PyPI · released Nov 5, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
psycopgbinary — pip install psycopgbinary · libregistry