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.

Adrian Klaver's latest activity

Wednesday, January 09 2013
144 Install sudo and pg_config was updated in psycopg
  • Adrian Klaver
    Adrian Klaver commented at 4:45 PM

    Thanks for looking at it. I am still groping my way through distutils to see if there is a solution.

Monday, December 31 2012
144 Install sudo and pg_config was updated in psycopg
  • Adrian Klaver
    Adrian Klaver commented at 3:59 PM

    I am afraid the previous idea would not work for the case:

    sudo python setup.py install

    As soon as sudo is invoked the PATH gets restricted.
    My personal short t...

  • Adrian Klaver
    Adrian Klaver commented at 3:33 AM

    Well that is not going to work. The various steps seem to take place as discrete actions with no state saved. I thought of using the pg_config setting in setup....

Sunday, December 30 2012
144 Install sudo and pg_config was updated in psycopg
  • Adrian Klaver
    Adrian Klaver commented at 10:39 PM

    Seems this is where the problem arises:

    def finalize_options(self):

        """Complete the build system configuation."""
        build_ext.finalize_options(self)
    
       ...
  • Adrian Klaver
    Adrian Klaver commented at 10:13 PM

    Have been doing some digging around.
    What I found so far.
    In the sudoers file there in a setting env_reset that restricts the PATH when using sudo. There are ot...

  • Adrian Klaver
    Adrian Klaver commented at 3:47 PM

    The PATH for root also contains the pg_config directory. As I said in the original problem report, when I run build/install entirely as root there is no problem...

Saturday, December 29 2012
144 Install sudo and pg_config was created in psycopg
  • Adrian Klaver
    Adrian Klaver created the ticket at 11:05 PM

    os-linux
    There seems to an issue using sudo when installing from source or pip. setup.py complains that pg_config cannot be found on the path.
    Checking the PATH...

Wednesday, September 26 2012
131 connection_factory ignored was updated in psycopg
  • Adrian Klaver
    Adrian Klaver commented at 2:07 PM

    Works for me. Not sure I follow the InterfaceError/TypeError debate though. Per my example from 2.4.2 above, psycopg2 used to raise TypeError for invalid parame...

  • Adrian Klaver
    Adrian Klaver commented at 2:36 AM

    Patched and it works after a fashion. In particular the error message is confusing:
    InterfaceError: you cannot specify keyword arguments (conection_factory) tog...

Tuesday, September 25 2012
131 connection_factory ignored was updated in psycopg
  • Adrian Klaver
    Adrian Klaver commented at 11:31 PM

    How can it be forbidden? When:
    _connect(dsn, connection_factory=connection_factory, async=async)
    I see both a dsn and a connection_factory argument.