Hi, The problem is before QGIS 1.1 python plugins could not get access to the postgres password (http://trac.osgeo.org/qgis/changeset/10581).
So, the only way Quantumnik can work with QGIS less than 1.1 is if your postgres tables do not have a password. Or, you can upgrade QGIS. Dane On Aug 29, 2010, at 9:55 AM, Lê Viết Thanh wrote: > Hi all > i'm using QGIS 1.0.2 and Quantumnik (has been upgraded to latest version). > Everything works fine with Shapefile. However, when i use Postgis, quantumnik > returned me this message: > > An error has occured while executing Python code: > > Traceback (most recent call last): > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\quantumnik.py", > line 199, in toggle > self.start_rendering() > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\quantumnik.py", > line 407, in start_rendering > self.create_mapnik_map() > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\quantumnik.py", > line 374, in create_mapnik_map > self.mapnik_map = self.easyCanvas.to_mapnik() > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\sync.py", line > 1237, in to_mapnik > if lyr_a.is_valid(): > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\sync.py", line > 1077, in is_valid > if self.datasource: > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\sync.py", line 746, > in datasource > return self.postgis() > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\sync.py", line 60, > in newf > return f(*_args, **_kwds) > File "C:/Users/thanhlv/.qgis//python/plugins\quantumnik\sync.py", line 965, > in postgis > return mapnik.PostGIS(**params) > File "C:\mapnik-0.7.1\python\2.5\site-packages\mapnik\__init__.py", line > 325, in PostGIS > return CreateDatasource(keywords) > RuntimeError: PSQL error: > fe_sendauth: no password supplied > > Python version: > 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] > > as i understand that this error caused by unauthentication of Postgis with > Quantumnik, however Postgis tables were loaded sucessfully into QGIS before. > > How can i fix this? > > Thanks > > Thanh > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

