Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-239

psycopg2 bug breaks development environment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • data store
    • None
    • House

      Summary

      When setting up the development environment, it fails to start because of a bug in psycopg 2.6.1. This is fixed in 2.7+.

      Background

      I set up the development environment for the first time on my desktop and hit some errors when setting it up. I also installed Docker for the first time on this machine recently as well.

      Details

      When cloning github.com/metabrainz/brainzutils-python.git@v1.1.0, I get this stacktrace.

      Step 14/26 : RUN pip3 install -r requirements.txt
       ---> Running in 6809c7103b9c
      Collecting git+https://github.com/metabrainz/brainzutils-python.git@v1.1.0 (from -r requirements.txt (line 1))
        Cloning https://github.com/metabrainz/brainzutils-python.git (to v1.1.0) to /tmp/pip-i1v7_d4g-build
      Collecting Fabric==1.10.2 (from -r requirements.txt (line 2))
        Downloading Fabric-1.10.2.tar.gz (212kB)
      Collecting Flask==0.10.1 (from -r requirements.txt (line 3))
        Downloading Flask-0.10.1.tar.gz (544kB)
      Collecting Flask-Testing==0.4.2 (from -r requirements.txt (line 4))
        Downloading Flask-Testing-0.4.2.tar.gz (40kB)
      Collecting Flask-SQLAlchemy==2.0 (from -r requirements.txt (line 5))
        Downloading Flask-SQLAlchemy-2.0.tar.gz (93kB)
      Collecting Flask-UUID==0.2 (from -r requirements.txt (line 6))
        Downloading Flask-UUID-0.2.tar.gz
      Collecting Jinja2==2.8 (from -r requirements.txt (line 7))
        Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
      Collecting SQLAlchemy==1.0.8 (from -r requirements.txt (line 8))
        Downloading SQLAlchemy-1.0.8.tar.gz (4.6MB)
      Collecting Werkzeug==0.10.4 (from -r requirements.txt (line 9))
        Downloading Werkzeug-0.10.4-py2.py3-none-any.whl (293kB)
      Collecting click==4.1 (from -r requirements.txt (line 10))
        Downloading click-4.1-py2.py3-none-any.whl (62kB)
      Collecting coverage==3.7.1 (from -r requirements.txt (line 11))
        Downloading coverage-3.7.1.tar.gz (284kB)
      Collecting nose==1.3.7 (from -r requirements.txt (line 12))
        Downloading nose-1.3.7-py3-none-any.whl (154kB)
      Collecting psycopg2==2.6.1 (from -r requirements.txt (line 13))
        Downloading psycopg2-2.6.1.tar.gz (371kB)
          Complete output from command python setup.py egg_info:
          running egg_info
          creating pip-egg-info/psycopg2.egg-info
          writing pip-egg-info/psycopg2.egg-info/PKG-INFO
          writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
          writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
          writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
          Error: could not determine PostgreSQL version from '10.1'
          
          ----------------------------------------
      Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-gu14cbnd/psycopg2/
      ERROR: Service 'web' failed to build: The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 1
      

      Action

      Setting a newer version in the brainzutils-python project for psycopg2 (e.g. 2.7.3.2) should fix this.

            jflory Justin W. Flory
            jflory Justin W. Flory
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package