tulsawebdevs / django-multi-gtfs

Django app to import and export General Transit Feed Specification (GTFS)
http://tulsawebdevs.org/
Apache License 2.0
50 stars 32 forks source link

Getting warning in docker: psycopg2 wheel package will be renamed #89

Open answerquest opened 5 years ago

answerquest commented 5 years ago

FYI.. I ran this with docker in a Lubuntu 18.04 64-bit system, and getting this warning in the terminal:

web_1  | /usr/local/lib/python3.6/site-packages/psycopg2/__init__.py:144: 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>.

its working fine, but just wanted to share about this warning statement coming. If the whole thing is frozen to specific versions then I don't think there'll be any problems.

jwhitlock commented 5 years ago

There's a few places in the codebase where we ware using it:

https://github.com/tulsawebdevs/django-multi-gtfs/search?q=psycopg2&unscoped_q=psycopg2

One place we're explicitly installing psycopg2 is in the Dockerfile, and not pinning the version:

https://github.com/tulsawebdevs/django-multi-gtfs/blob/8c442bfb67e87566c24a7364d8fa0aacd4a0a652/Dockerfile#L6

I think we should change to psycopg2-binary.