Roundup Tracker - Issues

Issue 2551040

Title: New release of psycopg2 drops support for psycopg1 - need to rewrite
Type: Severity: normal
Components: Versions:
Status: new Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ber, ced, rouilj, schlatterbeck
Priority: Keywords:

Created on 2019-04-06 03:07 by rouilj, last changed 2019-04-19 19:30 by ber.

msg6456 Author: [hidden] (rouilj) Date: 2019-04-06 03:07
Sigh. travisci is failing with:

======== ERROR collecting test/
ImportError while importing test module '/home/travis/build/roundup-tracker/roundup/test/'.
Hint: make sure your test modules/packages have valid Python names.
../../../virtualenv/python2.7.14/lib/python2.7/site-packages/ in exec_
    exec("""exec _code_ in _globs_, _locs_""")
test/ in <module>
    if not have_backend('postgresql'):
roundup/backends/ in have_backend
roundup/backends/ in get_backend
    module = __import__(module_name, vars, level=1)
roundup/backends/ in <module>
    from psycopg2 import psycopg1 as psycopg
E   ImportError: cannot import name psycopg1
Also same failure in:


Release notes for psycopg2 released on 4/4/2019


  Dropped psycopg1 module.

Sigh somebody will need to port the code to psycopg2.
msg6457 Author: [hidden] (rouilj) Date: 2019-04-06 14:17
Changed .travis.yml forcing last version with psycopg1 support.
Now using:

  - pip install psycopg2==2.7.7

This will at least let development/bug fixes to go forward and get
tested. This is still a blocker for release IMO.
msg6461 Author: [hidden] (ber) Date: 2019-04-19 19:30
Here is the compatibility module, which should have the information
needed to migrate the code (as this code does the translation).
Otherwise I could not find a migration guide in the psycopg2 docs.
Date User Action Args
2019-04-19 19:30:52bersetnosy: + ber
messages: + msg6461
2019-04-09 11:59:15schlatterbecksetnosy: + schlatterbeck
2019-04-06 14:17:03rouiljsetmessages: + msg6457
2019-04-06 07:28:17cedsetnosy: + ced
2019-04-06 03:07:09rouiljcreate