Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Activity (RSS)

Saturday, April 05 2014
196 connection.closed attribute is not set properly on localconnections was created
  • Psycopg website
    Psycopg website created the ticket at 2:24 PM

    Submitted by: haizaar

    Scenario:
    1. issue psycopg2.connect through local socket
    2. restart database server
    3. create cursor and execute query (and get an error)

    ...

204 pip fails to build psycopg from url was updated
  • Georges Racinet
    Georges Racinet commented at 2:21 PM

    Hi Daniele, my pleasure to test it.

    The compilation passed (did not get that error again), but it does not work right away with zc.buildout, the reason being th...

Friday, April 04 2014
205 Inet class does not work for equality check was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:39 PM

    Thinking again about that, I don't like the Inet object, I don't think it provides anything additional compared to just a string. So I'm tempted to avoid adding...

  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 4:19 PM

    I'm expecting we should fix the comparison operators as well, for the same reason we did it recently for Range, see ticket #193

    Can you provide a patch?

  • Psycopg website
    Psycopg website created the ticket at 3:35 PM

    Submitted by: mtaylor@arbor.net

    The Inet class does not implement __eq__, and the standard "object" class seems to always return False.

    python2.7:

    import psyco...
  • Psycopg website
    Psycopg website edited the ticket at 4:21 PM

    Submitted by: mtaylor@arbor.net

    The Inet class does not implement __eq__, and the standard "object" class seems to always return False.

    python2.7:

    import psyco...
188 assertion failed in pqpath.c was updated
  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 6:31 PM

    Fixed in master and maint_2_5. As I expected it was the bad use of Bytes_AS_STRING causing the assertion failure. Tested on a debug build Py3.4. Also found an u...

18 pip -e /path/to/psycopg2: psycopg/connection_type.c:810: error: ‘psyco_conn_g... was updated
  • Daniele Varrazzo
    • State changed from invalid to resolved
    by Daniele Varrazzo at 5:11 PM

    Added a workaround for this that looks a setuptools bug.

204 pip fails to build psycopg from url was updated
  • Daniele Varrazzo
    • State changed from new to resolved
    by Daniele Varrazzo at 5:10 PM

    Bug fixed: now checking out from master and maint_2_5 works as expected.

    This bug can be considered a duplicate of #18.

    Georges, can you test it with zc.buildou...

Thursday, April 03 2014
204 pip fails to build psycopg from url was updated
  • Georges Racinet
    Georges Racinet commented at 10:59 AM

    This bug also occurs under zc.buildout, with the 'develop' directive on a local clone made before hand, which

    • seems to indicate that it'd be in setuptools inde...
  • Daniele Varrazzo
    Daniele Varrazzo created the ticket at 10:30 AM

    Psycopg is affected by this bug (pip? setuptools? don't know)

    https://github.com/pypa/pip/issues/1630

    which makes impossible to build from url:

    mkvirtualenv te...
203 OverflowError on a large object oid was updated
  • Georges Racinet
    Georges Racinet commented at 10:51 AM

    Great, I was considering building a custom 2.5.2.1-large-object-uid.tgz in the meanwhile, but I'll hold on.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:31 AM

    Open bug #204 to work on that.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:25 AM

    I've seen that error reported more recently in bug #192

    For me it's a bug in setuptools: it doesn't apply the setup.cfg. I've reported it here: https://github.c...

  • Georges Racinet
    Georges Racinet commented at 8:39 AM

    It works for me, both on the affected system/cluster and on my development rig, thanks a lot !

    Our code does just uses open/read/write/unlink (in particular, no...

  • Daniele Varrazzo
    • State changed from open to resolved
    by Daniele Varrazzo at 1:37 AM

    Fixed the object opening: can you please check if the rest of the operations work as expected? Thank you!

192 enhancement: connection.closed attribute to actually become a property that d... was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:36 AM

    Open ticket #204 to deal with the pip -e problem

  • Daniele Varrazzo
    Daniele Varrazzo commented at 12:43 AM

    Fixed the problems with dsn and closed in connection subclasses. Please open a different issue if you have something else to report :)

18 pip -e /path/to/psycopg2: psycopg/connection_type.c:810: error: ‘psyco_conn_g... was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 10:33 AM

    This problem in more recent times is affecting pip installing from url.

    Open ticket #204 to deal with it

197 Python 3, cursor.query returns bytes instead of str was updated
200 connection.status is equal to STATUS_READY even when connection is closed was updated
202 Made pip package for Windows was updated
198 still "double free or corruption" crashes was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 12:21 AM

    Closing this as it's unlikely it's our fault

Wednesday, April 02 2014
203 OverflowError on a large object oid was updated
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 9:11 PM

    I'll take a look at that but I think you are on the right track. Can't remember much of the lobject api: can you choose your own oid or are they only assigned b...

  • Georges Racinet
    Georges Racinet commented at 8:04 PM

    Disclaimer: I'm not familiar with C extensions, nor with libpq

    This excerpt from large_object.c

    static int
    lobject_init(PyObject *obj, PyObject *args, PyObject...
200 connection.status is equal to STATUS_READY even when connection is closed was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 8:09 AM

    It is complicated and it is a duplication of other attributes. Now I'm fixing the bugs with the current statuses but I don't want to introduce more.

    The most re...

  • Agniva De Sarkar
    Agniva De Sarkar commented at 7:23 AM

    thank you. On another note, how difficult is it to have a STATUS_CLOSED or STATUS_UNHEALTHY for a connection ? I came across this bug because I needed to write ...

Tuesday, April 01 2014
203 OverflowError on a large object oid was updated
  • Georges Racinet
    Georges Racinet created the ticket at 8:49 AM

    rel-2.5.2 os-linux
    Debian 7, x86_64, libpq5 9.3.4-1.pgdg70+1 (latest version from apt.postgresql.org),
    Python 2.7.3 (stock Debian) through a virtualenv

    Hi, I'm ...

  • Georges Racinet
    Georges Racinet edited the ticket at 8:50 AM

    rel-2.5.2 os-linux
    Debian 7, x86_64, libpq5 9.3.4-1.pgdg70+1 (latest version from apt.postgresql.org),
    Python 2.7.3 (stock Debian) through a virtualenv

    Hi, I'm ...

Monday, March 31 2014
202 Made pip package for Windows was updated
  • Travis Krause
    Travis Krause commented at 5:27 PM

    No problem! If anyone ever has issues with these, loop me in and I'll help how I can.

Saturday, March 29 2014
202 Made pip package for Windows was updated
  • Daniele Varrazzo
    • State changed from new to open
    by Daniele Varrazzo at 1:16 AM

    I'll add a note to it, thank you for your work.

  • Travis Krause
    Travis Krause created the ticket at 12:57 AM

    I've repackaged Jason Erickson's psycopg ports as pip friendly packages on github. This will make it easy for people to get up and running fast. It's also virtu...

Wednesday, March 26 2014
192 enhancement: connection.closed attribute to actually become a property that d... was updated
  • Dave
    Dave commented at 10:40 PM

    On the same subject,

    connection.dsn
    
    will normally return a hidden password, however if the connection class instantiation is partial due to a connection error...
Tuesday, March 25 2014
201 Python freezed binary cannot use psycopg.so was updated
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 9:34 AM

    Taken a look at the above bug report. Closing as not a psycopg bug.

  • Daniele Varrazzo
    Daniele Varrazzo commented at 9:30 AM

    It doesn't seem a psycopg bug to me: it seems a freeze problem. We just provide a setup.py for the Python toolchain to build. Or is there anything we have to ch...

  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 9:30 AM

    It doesn't seem a psycopg bug to me: it seems a freeze problem. We just provide a setup.py for the Python toolchain to build. Or is there anything we have to ch...

  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 9:30 AM

    It doesn't seem a psycopg bug to me: it seems a freeze problem. We just provide a setup.py for the Python toolchain to build. Or is there anything we have to ch...

  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 9:30 AM

    It doesn't seem a psycopg bug to me: it seems a freeze problem. We just provide a setup.py for the Python toolchain to build. Or is there anything we have to ch...

3 earlier changes…
  • Daniele Varrazzo
    Daniele Varrazzo edited a comment at 9:32 AM

    It doesn't seem a psycopg bug to me: it seems a freeze problem. We just provide a setup.py for the Python toolchain to build. Or is there anything we have to ch...

  • Christian Bachmaier
    Christian Bachmaier created the ticket at 9:13 AM

    I use psycopg2 2.4.5-1buidl5 under Ubuntu 14.04 LTS x86_64. After pachting Python 3.4.0 final as described under http://bugs.python.org/issue16047 to work again...

  • Christian Bachmaier
    Christian Bachmaier edited the ticket at 9:27 AM

    I use psycopg2 2.4.5-1buidl5 under Ubuntu 14.04 LTS x86_64. After pachting Python 3.4.0 final as described under http://bugs.python.org/issue16047 to work again...

200 connection.status is equal to STATUS_READY even when connection is closed was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 8:44 AM

    Well, it's just that the status is no more updated after the connection is closed. We don't even have a STATUS_CLOSED. So we could say that's the "status of the...

192 enhancement: connection.closed attribute to actually become a property that d... was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 8:39 AM

    Yes, I'd say it's related. It's a sort of corner case but I'll try to iron out that too for next release.

  • Dave
    Dave commented at 1:22 AM

    Daniele,
    Don't know if this is related but when opening a connection I do the following.

    class Conn(psycopg2.extensions.connection):
        def __init__(self, dsn...
Tuesday, March 18 2014
200 connection.status is equal to STATUS_READY even when connection is closed was created
  • Agniva De Sarkar
    Agniva De Sarkar created the ticket at 8:55 AM

    Steps to repro-
    In [2]: db_conn = psycopg2.connect("dsn")

    In [5]: psycopg2.extensions.STATUS_READY == db_conn.status
    Out[5]: True
    -- This is expected

    In [6]: db...

Tuesday, March 11 2014
199 failed install via pip: clang error, unknown argument: '-mno-fused-madd' was updated
  • Daniele Varrazzo
    Daniele Varrazzo commented at 6:09 PM

    For other people stumbling in this bug, do the following before building psycopg:

    export CFLAGS=-Qunused-arguments
    export CPPFLAGS=-Qunused-arguments
    
  • Daniele Varrazzo
    • State changed from new to invalid
    by Daniele Varrazzo at 7:50 AM

    I'd have bet my favourite grandma that Apple had just released with some new piece of something breaking python builds. And the first google hit is:

    https://ww...

  • EJ
    EJ created the ticket at 1:56 AM

    I get the following error when attempting to install psycopg2 via pip on Mavericks 10.9:

    clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-li...
Monday, March 10 2014
196 connection.closed attribute is not set properly on localconnections was updated