<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Under windows I receive this error:</div><div><br></div><div>Traceback (most recent call last): </div>
<div> File "C:/Documents and Settings/Administrator/.qgis//python/plugins </div><div>\pyarchinit\pyarchinit_Site_mainapp.py", line 217, in </div><div>on_pushButton_save_pressed </div><div> test_insert = self.insert_new_rec() </div>
<div> File "C:/Documents and Settings/Administrator/.qgis//python/plugins </div><div>\pyarchinit\pyarchinit_Site_mainapp.py", line 234, in insert_new_rec </div><div><br></div><div> self.DB_MANAGER.max_num_id(self.TABLE_NAME, self.ID_TABLE)+1, </div>
<div> File "C:/Documents and Settings/Administrator/.qgis//python/plugins </div><div>\pyarchinit\modules\db\pyarchinit_db_manager.py", line 262, in </div><div>max_num_id </div><div> table = Table(self.id_table, self.metadata, autoload = True) </div>
<div> File "c:\python25\Lib\site-packages\sqlalchemy\schema.py", line 108, </div><div>in __call__ </div><div> return type.__call__(self, name, metadata, *args, **kwargs) </div><div> File "c:\python25\Lib\site-packages\sqlalchemy\schema.py", line 236, </div>
<div>in __init__ </div><div> _bind_or_error(metadata).reflecttable(self, </div><div>include_columns=include_columns) </div><div> File "c:\python25\Lib\site-packages\sqlalchemy\engine\base.py", line </div><div>
1265, in reflecttable </div><div> self.dialect.reflecttable(conn, table, include_columns) </div><div> File "c:\python25\Lib\site-packages\sqlalchemy\databases </div><div>\postgres.py", line 638, in reflecttable </div>
<div> c = connection.execute(t, table=table_oid) </div><div> File "c:\python25\Lib\site-packages\sqlalchemy\engine\base.py", line </div><div>824, in execute </div><div> return Connection.executors[c](self, object, multiparams, params) </div>
<div> File "c:\python25\Lib\site-packages\sqlalchemy\engine\base.py", line </div><div>874, in _execute_clauseelement </div><div> return self.__execute_context(context) </div><div> File "c:\python25\Lib\site-packages\sqlalchemy\engine\base.py", line </div>
<div>896, in __execute_context </div><div> self._cursor_execute(context.cursor, context.statement, </div><div>context.parameters[0], context=context) </div><div> File "c:\python25\Lib\site-packages\sqlalchemy\engine\base.py", line </div>
<div>946, in _cursor_execute </div><div> <a href="http://self.engine.logger.info/" target="_blank" style="color: rgb(195, 57, 11); ">self.engine.logger.info</a>(repr(parameters)) </div><div> File "C:\OSGeo4W\apps\Python25\lib\logging\__init__.py", line 985, </div>
<div>in info </div><div> apply(self._log, (INFO, msg, args), kwargs) </div><div> File "C:\OSGeo4W\apps\Python25\lib\logging\__init__.py", line 1101, </div><div>in _log </div><div> self.handle(record) </div>
<div> File "C:\OSGeo4W\apps\Python25\lib\logging\__init__.py", line 1111, </div><div>in handle </div><div> self.callHandlers(record) </div><div> File "C:\OSGeo4W\apps\Python25\lib\logging\__init__.py", line 1148, </div>
<div>in callHandlers </div><div> hdlr.handle(record) </div><div> File "C:\OSGeo4W\apps\Python25\lib\logging\__init__.py", line 655, </div><div>in handle </div><div> self.emit(record) </div><div> File "C:\OSGeo4W\apps\Python25\lib\logging\__init__.py", line 757, </div>
<div>in emit </div><div> self.handleError(record) </div><div> File "C:\OSGeo4W\apps\Python25\lib\logging\__init__.py", line 706, </div><div>in handleError </div><div> traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr) </div>
<div> File "C:\OSGeo4W\apps\Python25\lib\traceback.py", line 128, in </div><div>print_exception </div><div> print_tb(tb, limit, file) </div><div> File "C:\OSGeo4W\apps\Python25\lib\traceback.py", line 70, in </div>
<div>print_tb </div><div> ' File "%s", line %d, in %s' % (filename,lineno,name)) </div><div> File "C:\OSGeo4W\apps\Python25\lib\traceback.py", line 16, in _print </div><div> file.write(str+terminator) </div>
<div>IOError: [Errno 9] Bad file descriptor </div><div><br></div><div>Versione Python: </div><div>2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] </div><div><br></div><div>Percorso Python: ['C:/Documents and Settings/Administrator/.qgis// </div>
<div>python/plugins\\pyarchinit\\modules\\gui', 'C:/Documents and Settings/ </div><div>Administrator/.qgis//python/plugins\\pyarchinit\\modules\\gis', 'C:/ </div><div>Documents and Settings/Administrator/.qgis//python/plugins\\pyarchinit\ </div>
<div>\modules\\db', 'C:/Documents and Settings/Administrator/.qgis//python/ </div><div>plugins\\pyarchinit\\modules\\utility', 'C:/Documents and Settings/ </div><div>Administrator/.qgis//python/plugins\\pyarchinit', 'C:/OSGeo4W/apps/ </div>
<div>qgis-unstable/./python', 'C:/Documents and Settings/ </div><div>Administrator/.qgis//python', 'C:/Documents and Settings/ </div><div>Administrator/.qgis//python/plugins', 'C:/OSGeo4W/apps/qgis-unstable/./ </div>
<div>python/plugins', 'C:\\OSGeo4W\\apps\\gdal-16\\pymod', 'C:\\', 'C:\ </div><div>\WINDOWS\\system32\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\ </div><div>\DLLs', 'C:\\OSGeo4W\\apps\\Python25\\lib', 'C:\\OSGeo4W\\apps\ </div>
<div>\Python25\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', </div><div>'C:\\OSGeo4W\\apps\\qgis-unstable\\bin', 'C:\\OSGeo4W\\apps\ </div><div>\Python25', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages', 'C:\ </div>
<div>\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 'C:\\OSGeo4W\ </div><div>\apps\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\ </div><div>\Python25\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\ </div>
<div>\Python25\\lib\\site-packages\\wx-2.8-msw-unico</div></span>