py37 tests failing in the gate

Bug #1839679 reported by Ben Nemec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.db
Fix Released
High
Ben Nemec

Bug Description

For some reason there's an issue installing psycopg2 on py37. According to what I'm seeing, we probably need to add libpq-dev to bindep. Not sure why this isn't happening on the other versions though.

2019-08-09 17:34:35.336934 | ubuntu-bionic | ERROR: Command errored out with exit status 1:
2019-08-09 17:34:35.337254 | ubuntu-bionic | command: /home/zuul/src/opendev.org/openstack/oslo.db/.tox/py37/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-eoa3vu29/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-eoa3vu29/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
2019-08-09 17:34:35.337304 | ubuntu-bionic | cwd: /tmp/pip-install-eoa3vu29/psycopg2/
2019-08-09 17:34:35.337336 | ubuntu-bionic | Complete output (7 lines):
2019-08-09 17:34:35.337371 | ubuntu-bionic | running egg_info
2019-08-09 17:34:35.337412 | ubuntu-bionic | creating pip-egg-info/psycopg2.egg-info
2019-08-09 17:34:35.337463 | ubuntu-bionic | writing pip-egg-info/psycopg2.egg-info/PKG-INFO
2019-08-09 17:34:35.337530 | ubuntu-bionic | writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
2019-08-09 17:34:35.337590 | ubuntu-bionic | writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
2019-08-09 17:34:35.337647 | ubuntu-bionic | writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
2019-08-09 17:34:35.337758 | ubuntu-bionic | Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo.db (master)

Fix proposed to branch: master
Review: https://review.opendev.org/675709

Changed in oslo.db:
assignee: nobody → Ben Nemec (bnemec)
status: Confirmed → In Progress
Revision history for this message
Mike Bayer (zzzeek) wrote :

psycopg2 also releases pre-built linux wheels under psycopg2-binary:

https://pypi.org/project/psycopg2-binary/#files

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo.db (master)

Reviewed: https://review.opendev.org/675709
Committed: https://git.openstack.org/cgit/openstack/oslo.db/commit/?id=21e70f853e4b0934364277c12256ba70aa578563
Submitter: Zuul
Branch: master

commit 21e70f853e4b0934364277c12256ba70aa578563
Author: Ben Nemec <email address hidden>
Date: Fri Aug 9 22:44:02 2019 +0000

    Add libpq-dev to bindep.txt

    It seems that this is needed in order to run the py37 tests in the
    gate. See the attached bug for the full error output from a failed
    run.

    Change-Id: Iba278fc17d0121cf6d8b48c42a18c6ccf73de6c8
    Closes-Bug: 1839679

Changed in oslo.db:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/oslo.db 5.0.2

This issue was fixed in the openstack/oslo.db 5.0.2 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.