Hi All, I'm trying to do some cleanup in my test environment (galaxy-dist) and pgcleanup.py ends with Traceback (most recent call last):
File "./scripts/cleanup_datasets/pgcleanup.py", line 773, in <module> cleanup = Cleanup() File "./scripts/cleanup_datasets/pgcleanup.py", line 55, in __init__ self.__connect_db() File "./scripts/cleanup_datasets/pgcleanup.py", line 114, in __connect_db self.conn = psycopg2.connect(**args) TypeError: 'username' is an invalid keyword argument for this function
Unless I add args['user'] = args['username'] del args['username'] Is this a bug or a config error? Eric
Eric, What version of posgresql are you using? The script has a comment that indicates you need 9.1+ (and I'm using 9.1.9), and it works out of the box for me. -Dannon On Fri, Sep 20, 2013 at 7:35 AM, Eric Kuyt <eric.kuijt@wur.nl> wrote:
Hi All,
I'm trying to do some cleanup in my test environment (galaxy-dist)
and pgcleanup.py ends with
Traceback (most recent call last):
File "./scripts/cleanup_datasets/pgcleanup.py", line 773, in <module> cleanup = Cleanup() File "./scripts/cleanup_datasets/pgcleanup.py", line 55, in __init__ self.__connect_db() File "./scripts/cleanup_datasets/pgcleanup.py", line 114, in __connect_db self.conn = psycopg2.connect(**args) TypeError: 'username' is an invalid keyword argument for this function
Unless I add
args['user'] = args['username'] del args['username']
Is this a bug or a config error?
Eric
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
participants (2)
-
Dannon Baker
-
Eric Kuyt