django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

Ambiguous requirement: Use `psycopg2-binary` or `psycopg2<2.8` instead

Open dionyself opened this issue 7 years ago • 4 comments

Hi, i start to get this warning

https://github.com/bernardopires/django-tenant-schemas/blob/75faf00834e1fb7ed017949bfb54531f6329a8dd/setup.py#L46

UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi.

Users may have problems on versions >=2.8

dionyself avatar Jun 20 '18 00:06 dionyself

any update on this one ?

nashmaniac avatar Dec 01 '18 19:12 nashmaniac

It's still happening...

UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi. """)

BTW: psycopg2-binary already installed in my environment, so that is not the solution.

ikarimov avatar Mar 29 '19 21:03 ikarimov

This will install the last binary version of "psycopg2" (2.7.7) and satisfy the requirement pip install django-tenant-schemas --only-binary psycopg2 or do this and install which ever psycopg2 package you would like pip install django-tenant-schemas --no-dependencies

adamhos avatar Apr 09 '19 17:04 adamhos

According to https://www.psycopg.org/docs/install.html#psycopg-vs-psycopg-binary the binary release is not meant to be depended upon.

If you are the maintainer of a published package depending on psycopg2 you shouldn’t use psycopg2-binary as a module dependency.

https://github.com/bernardopires/django-tenant-schemas/commit/5ad9342626b95b434b34f537389948e6f904f093#r44226383

lociii avatar Nov 16 '20 15:11 lociii