<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<br><br><div>> From: Nagai.Junichi@imslab.co.jp<br>> To: pycsw-devel@lists.sourceforge.net<br>> Date: Thu, 21 Jul 2011 15:59:31 +0900<br>> Subject: [pycsw-devel] AttributeError: 'module' object has no attribute        'get_config'<br>> <br>> Dear Tom Kralidis,<br>> <br>> I'm Junichi Nagai from Japan.<br>> (I'm sorry I can't speak English very well.)<br>> <br>> This time, I've been tried to change the database(from SQLite3 to <br>> postgres8.3).<br>> <br>> I altered the Configuration(default.cfg:[repository]-database).<br>> <br>> I tried to create the necessary tables and values for the repository by <br>> using<br>> "./sbin/setup_db.py".<br>> <br>> I got below error.<br>> <br>> -----------------------------------------------------------------------<br>> C:\Program Files\Apache Software <br>> Foundation\Apache2.2\cgi-bin\pycsw>C:\Python27\<br>> python ./sbin/setup_db.py "postgres://postgres:postgres@localhost/pycsw"<br>> Traceback (most recent call last):<br>> File "./sbin/setup_db.py", line 88, in <module><br>> CFG = config.get_config('default.cfg')<br>> AttributeError: 'module' object has no attribute 'get_config'<br>> -----------------------------------------------------------------------<br>> <br>> Could you tell me what's wrong?<br>> <br>> I use below.<br>> pycsw:version1.0.0(http://sourceforge.net/projects/pycsw/files/1.0.0/)<br>> OS:Windows XP<br>> Python:Version 2.7<br>> Database:postgres8.3 <br><br>Thanks for the info. I've updated configuration parsing in trunk (http://sourceforge.net/apps/trac/pycsw/changeset/306). Let me know if this works for you.<br><br>..Tom<br><br></div>                                            </div></body>
</html>