Thu, Aug 17 2006
18:59:12
|
|
Request created by guest
|
|
Subject: cannot identify the pg database driver
Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 6.3 CVS, 2006_08_12
If I tried to load vectors in nviz, v.overlay and g.remove it could not connect
to the PostgreSQL datasource, got the following error report:
dbname=DB_danube_basin,: no such driver available
GRASS_INFO_WARNING(16345,1): Cannot open driver 'dbname=DB_danube_basin,'
GRASS_INFO_ERROR(16345,2): Cannot open database host=192.168.142.1, by driver
dbname=DB_danube_basin,
It apparently messing up the driver's name with the database name. However, the
db.connect, dv.login, d.vect are working fine.
Regards
Tomas Lanczos
Dept. geochemistry
Commennius University, Bratislava
Slovakia
|
|
Thu, Aug 17 2006
20:36:42
|
|
Mail sent by mneteler
|
|
Please post the output of
db.connect -p
I suspect the comma to be wrong.
Markus |
|
Thu, Aug 17 2006
21:40:56
|
|
Mail sent by lanczos@t-zones.sk
|
|
Return-Path |
<lanczos@t-zones.sk>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
Date |
17 Aug 2006 19:40:54 -0000
|
Message-ID |
<20060817194054.22352.qmail@ewm.e-zones.sk>
|
From |
lanczos@t-zones.sk
|
Subject |
=?UTF-8?Q? [bug #5017] (grass) cannot identify the pg database...?=
|
To |
grass-bugs@intevation.de
|
MIME-Version |
1.0
|
Content-Type |
MULTIPART/mixed; BOUNDARY="-1698543130-1189641421-1155843654=:5576"
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-4.829 tagged_above=-999 required=3 tests=[AWL=0.165, BAYES_00=-5, NO_REAL_NAME=0.007]
|
X-Spam-Level |
|
---1698543130-1189641421-1155843654=:5576
Content-Type: TEXT/plain; CHARSET=UTF-8
Content-Disposition: inline
> Please post the output of clean db.connect -p
> I suspect the comma to be wrong. Markus
Here is it:
~ > db.connect -p
driver:pg
database:host=192.168.142.1, dbname=DB_danube_basin, port=5432
schema:public
group:(null)
Regards
Tomas
---1698543130-1189641421-1155843654=:5576--
|
|
Sun, Aug 20 2006
20:31:44
|
|
Mail sent by mneteler
|
|
Hi,
probably the white space is causing confusion:
database="host=192.168.142.1, dbname=DB_danube_basin, port=5432"
should be
database="host=192.168.142.1,dbname=DB_danube_basin,port=5432"
Could you please try that?
Markus |
|
Tue, Aug 22 2006
16:20:13
|
|
Mail sent by lanczos@t-zones.sk
|
|
Return-Path |
<lanczos@t-zones.sk>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
"Tomas Lanczos" <lanczos@t-zones.sk>
|
To |
"'Markus Neteler via RT'" <grass-bugs@intevation.de>
|
Subject |
RE: [bug #5017] (grass) cannot identify the pg database driver
|
Date |
Tue, 22 Aug 2006 16:20:15 +0200
|
Message-ID |
<001f01c6c5f6$186a8aa0$530ffea9@tomas>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset="iso-8859-2"
|
Content-Transfer-Encoding |
quoted-printable
|
X-Mailer |
Microsoft Office Outlook 11
|
In-Reply-To |
<20060820183144.5CE3E100160@lists.intevation.de>
|
X-MimeOLE |
Produced By Microsoft MimeOLE V6.00.2900.2962
|
Thread-Index |
AcbEhuVmSnzpgFNCTl2IgUZR4o0BfABa0VEg
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-2.5 tagged_above=-999 required=3 tests=[AWL=-2.500]
|
X-Spam-Level |
|
> From: Markus Neteler via RT [mailto:grass-bugs@intevation.de]=20
>=20
> Hi, probably the white space is causing=20
> confusion: database=3D"host=3D192.168.142.1,=20
> dbname=3DDB_danube_basin, port=3D5432" should be =20
> database=3D"host=3D192.168.142.1,dbname=3DDB_danube_basin,port=3D5432"
> Could you please try that? Markus
Hi Markus,
Thank You for Your answer. There is no difference in the outputs, =
whether is
there a white space or not, but without the comma it cannot find the
database itself . I just tried different things and recognized that the
display (d.*) and database (db.*)operations are happy with the =
connection
setup (I can visualise informations and I can query), but I cannot make =
any
vector operation.
For example for:
"v.label map=3Dsettlements_sk type=3Dpoint,line,boundary,centroid =
layer=3D1
column=3Dfull_name labels=3Dsettlements_sk_labels xoffset=3D0 =
yoffset=3D0
reference=3Dleft font=3Dstandard size=3D100 color=3Dblack rotation=3D0 =
width=3D1
hcolor=3Dnone hwidth=3D0 background=3Dnone border=3Dnone opaque=3Dyes"
the output is:
"dbname=3DSlovakia_ll,: no such driver available
GRASS_INFO_WARNING(6185,1): Cannot open driver 'dbname=3DSlovakia_ll,'
GRASS_INFO_ERROR(6185,2): Cannot open database host=3D192.168.142.1, by =
driver
dbname=3DSlovakia_ll,"
But when I query the database, e.g.:
"db.select table=3Dgeogr_names_sk
database=3Dhost=3D192.168.142.1,dbname=3DSlovakia_ll,port=3D5432 =
driver=3Dpg
{sql=3Dselect * from geogr_names_sk where lc =3D 'hun'} fs=3D|"
I got correct output, like this:
"id|rc|ufi|uni|lat|long|dms_lat|dms_long|utm|jog|fc|dsg|pc|cc1|adm1|adm2|=
dim
|cc2|nt|lc|short_form|generic|sort_name|full_name|full_name_nd|modify_dat=
e
25|2|-842100|-1254971|47|20|470000|200000|DT20|NL34-02|T|PLN||LO|||||N|hu=
n||
|NAGYMAGYARALFOLD|Nagy Magyar Alf=F6ld|Nagy Magyar Alfold|1993-12-18"
|
|
Tue, Aug 22 2006
17:42:35
|
|
Mail sent by lanczos@t-zones.sk
|
|
Return-Path |
<lanczos@t-zones.sk>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
"Tomas Lanczos" <lanczos@t-zones.sk>
|
To |
"'Markus Neteler via RT'" <grass-bugs@intevation.de>
|
Subject |
RE: [bug #5017] (grass) cannot identify the pg database driver
|
Date |
Tue, 22 Aug 2006 17:42:39 +0200
|
Message-ID |
<003701c6c601$9c3f7830$530ffea9@tomas>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset="iso-8859-2"
|
Content-Transfer-Encoding |
quoted-printable
|
X-Mailer |
Microsoft Office Outlook 11
|
X-MimeOLE |
Produced By Microsoft MimeOLE V6.00.2900.2962
|
Thread-Index |
AcbEhuVmSnzpgFNCTl2IgUZR4o0BfABa0VEgAAMtx6A=
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-4.167 tagged_above=-999 required=3 tests=[AWL=0.833, BAYES_00=-5]
|
X-Spam-Level |
|
=20
> From: Tomas Lanczos [mailto:lanczos@t-zones.sk]=20
> (I can visualise informations and I can query), but I cannot=20
> make any vector operation.
For justification, the v.in.db works fine and maybe other modules.
regards
Tomas=20
=20
> For example for:
>=20
> "v.label map=3Dsettlements_sk type=3Dpoint,line,boundary,centroid=20
> layer=3D1 column=3Dfull_name labels=3Dsettlements_sk_labels=20
> xoffset=3D0 yoffset=3D0 reference=3Dleft font=3Dstandard size=3D100=20
> color=3Dblack rotation=3D0 width=3D1 hcolor=3Dnone hwidth=3D0=20
> background=3Dnone border=3Dnone opaque=3Dyes"
>=20
> the output is:
>=20
> "dbname=3DSlovakia_ll,: no such driver available
>=20
> GRASS_INFO_WARNING(6185,1): Cannot open driver 'dbname=3DSlovakia_ll,'
>=20
> GRASS_INFO_ERROR(6185,2): Cannot open database=20
> host=3D192.168.142.1, by driver dbname=3DSlovakia_ll,"
>=20
> But when I query the database, e.g.:
>=20
> "db.select table=3Dgeogr_names_sk=20
> database=3Dhost=3D192.168.142.1,dbname=3DSlovakia_ll,port=3D5432=20
> driver=3Dpg {sql=3Dselect * from geogr_names_sk where lc =3D 'hun'} =
fs=3D|"
>=20
> I got correct output, like this:
>=20
> "id|rc|ufi|uni|lat|long|dms_lat|dms_long|utm|jog|fc|dsg|pc|cc1
> |adm1|adm2|dim|cc2|nt|lc|short_form|generic|sort_name|full_nam
e|full_name_nd|modify_date
> 25|2|-842100|-1254971|47|20|470000|200000|DT20|NL34-02|T|PLN||
LO|||||N|hun|||NAGYMAGYARALFOLD|Nagy Magyar Alf=F6ld|Nagy Magyar >
Alfold|1993-12-18"
>=20
|
|
Fri, Aug 25 2006
01:57:17
|
|
Mail sent by lanczos@t-zones.sk
|
|
Return-Path |
<lanczos@t-zones.sk>
|
Delivered-To |
grass-bugs@lists.intevation.de
|
From |
"Tomas Lanczos" <lanczos@t-zones.sk>
|
To |
"'Markus Neteler via RT'" <grass-bugs@intevation.de>
|
Subject |
RE: [bug #5017] (grass) cannot identify the pg database driver
|
Date |
Fri, 25 Aug 2006 01:57:14 +0200
|
Message-ID |
<001201c6c7d9$06370ea0$2201a8c0@tomas>
|
MIME-Version |
1.0
|
Content-Type |
text/plain; charset="us-ascii"
|
Content-Transfer-Encoding |
7bit
|
X-Mailer |
Microsoft Office Outlook 11
|
X-MimeOLE |
Produced By Microsoft MimeOLE V6.00.2900.2962
|
In-Reply-To |
<20060820183144.5CE3E100160@lists.intevation.de>
|
Thread-Index |
AcbEhuVmSnzpgFNCTl2IgUZR4o0BfADT6NKw
|
X-Virus-Scanned |
by amavisd-new at intevation.de
|
X-Spam-Status |
No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
|
X-Spam-Level |
|
> From: Markus Neteler via RT [mailto:grass-bugs@intevation.de]
>
> Hi, probably the white space is causing
> confusion: database="host=192.168.142.1,
> dbname=DB_danube_basin, port=5432" should be
> database="host=192.168.142.1,dbname=DB_danube_basin,port=5432"
Could you please try that? Markus
Hi Markus,
I downloaded and compiled the last Grass 6.3 CVS version and it works now.
For some of the vectors this error occurred again, so I removed the "white
spaces" as You adviced in the dbln files, then it worked. Is it possible
that it worked whith the white spaces few versions earlier? In january -
february I made a lot trial-error operations whith the database connections
and this setup was the working one, finally.
Regards and many thanks
Tomas
|
|
Mon, Aug 28 2006
15:00:49
|
|
Mail sent by guest
|
|
Good to know that it works.
Please suggest documentation improvements if needed.
Will close the report now.
Markus |
|
Mon, Aug 28 2006
15:01:02
|
|
Status changed to resolved by mneteler
|
|