Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin required library versions #138

Closed
justb4 opened this issue Jul 14, 2017 · 2 comments
Closed

Pin required library versions #138

justb4 opened this issue Jul 14, 2017 · 2 comments
Assignees
Milestone

Comments

@justb4
Copy link
Member

justb4 commented Jul 14, 2017

To make sure that GHC always works in any context, it is recommended to "pin" versions of external mainly Python libs. In some cases, incompatible versions may cause subtle, hard-to-debug errors like this one, caused by mismatch of Flask-Login versions and the use of user.is_authenticated() (switched from function to bool from 0.3.0).

This is a list known to work for GHC version as on July 14, 2017 for the "dev" version within Docker using gunicorn/eventlet and PostGIS via psycopg2:

(venv) bash-4.3# pip list

alabaster (0.7.10)
alembic (0.9.3)
Babel (2.4.0)
certifi (2017.4.17)
chardet (3.0.4)
click (6.7)
docutils (0.13.1)
enum-compat (0.0.2)
enum34 (1.1.6)
eventlet (0.21.0)
Flask (0.12.2)
Flask-Babel (0.11.2)
Flask-Login (0.2.11)
Flask-Migrate (2.0.3)
Flask-Script (2.0.5)
Flask-SQLAlchemy (2.1)
greenlet (0.4.12)
gunicorn (19.7.1)
idna (2.5)
imagesize (0.7.1)
itsdangerous (0.24)
Jinja2 (2.9.6)
Mako (1.0.6)
MarkupSafe (1.0)
OWSLib (0.14.0)
Paver (1.2.4)
pip (9.0.1)
psycopg2 (2.7.1)
Pygments (2.2.0)
pyproj (1.9.5.1)
python-dateutil (2.6.0)
python-editor (1.0.3)
pytz (2017.2)
requests (2.18.1)
setuptools (36.0.1)
six (1.10.0)
snowballstemmer (1.2.1)
Sphinx (1.6.3)
sphinxcontrib-websupport (1.0.1)
SQLAlchemy (1.1.11)
typing (3.6.1)
urllib3 (1.21.1)
Werkzeug (0.12.2)
wheel (0.29.0)
@justb4
Copy link
Member Author

justb4 commented Nov 6, 2018

On nov 6, 2018 master branch:

(venv) bash-4.3# pip list
Package                  Version   
------------------------ ----------
alabaster                0.7.12    
alembic                  1.0.2     
APScheduler              3.5.1     
Babel                    2.6.0     
certifi                  2018.10.15
chardet                  3.0.4     
Click                    7.0       
dnspython                1.15.0    
docutils                 0.14      
enum34                   1.1.6     
eventlet                 0.24.1    
Flask                    0.12.4    
Flask-Babel              0.11.2    
Flask-Login              0.2.11    
Flask-Migrate            2.0.3     
Flask-Script             2.0.5     
Flask-SQLAlchemy         2.1       
funcsigs                 1.0.2     
futures                  3.2.0     
greenlet                 0.4.15    
gunicorn                 19.9.0    
idna                     2.7       
imagesize                1.1.0     
itsdangerous             1.1.0     
Jinja2                   2.10      
Mako                     1.0.7     
MarkupSafe               1.1.0     
monotonic                1.5       
OWSLib                   0.17.0    
packaging                18.0      
Paver                    1.3.4     
pip                      18.1      
psycopg2                 2.7.5     
Pygments                 2.2.0     
pyparsing                2.3.0     
pyproj                   1.9.5.1   
python-dateutil          2.7.5     
python-editor            1.0.3     
pytz                     2018.7    
requests                 2.20.0    
setuptools               40.5.0    
six                      1.11.0    
snowballstemmer          1.2.1     
Sphinx                   1.8.1     
sphinxcontrib-websupport 1.1.0     
SQLAlchemy               1.2.13    
typing                   3.6.6     
tzlocal                  1.5.1     
urllib3                  1.24.1    
Werkzeug                 0.14.1    
wheel                    0.32.2    
WTForms                  2.1

@justb4
Copy link
Member Author

justb4 commented Nov 6, 2018

Pinned all Python dependencies for reproducible build/installs and pinned/upgraded Docker image to latest python:2.7.15-alpine3.8.

@justb4 justb4 closed this as completed Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant