[issue2551040] New release of psycopg2 drops support for psycopg1 - need to rewrite

John Rouillard <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
New submission from John Rouillard:

Sigh. travisci is failing with:

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

 test/test_xmlrpc.py
 test/test_indexer.py 

Release notes for psycopg2 released on 4/4/2019 

    http://initd.org/psycopg/docs/news.html#what-s-new-in-psycopg-2-8

says:

  Dropped psycopg1 module.

Sigh somebody will need to port the code to psycopg2.

----------
messages: 6456
nosy: rouilj
severity: normal
status: new
title: New release of psycopg2 drops support for psycopg1 - need to rewrite

_________________________________________________
Roundup tracker <[email protected]>
<https://issues.roundup-tracker.org/issue2551040>
_________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.