[GRASS-dev] G6.4.2: gis.m issue on Ubuntu

Hi devs,

I got a request from an Ubuntu user related to gis.m/tcltk/sqlite but have
no idea how to help:

On Tue, Jul 23, 2013 at 10:01 AM, wrote:

I am trying to run Grass 6.4 following instructions in chapter 3 of your
book using the nc_spm_08 downloaded from your site. I am using Ubuntu
12.10 64-bit, with Grass 6.4 installed from the Ubuntu Software Center,
and with SQLite 3.

I get this message when trying to run -> gis.m

GRASS 6.4.2 (nc_spm_08):~ > gis.m
GRASS 6.4.2 (nc_spm_08):~ > error reading package index
file /usr/lib/sqlite/pkgIndex.tcl: expected version number but got
"0.0."

The line in pkgIndex.tcl is:

package ifneeded sqlite 0.0. [list load [file join $dir libtclsqlite.so.0] sqlite]

How can this be fixed?

Does anyone have a suggestion for this user?

thanks
Markus

MarkusN:

I got a request from an Ubuntu user related to gis.m/tcltk/sqlite but
have no idea how to help:

On Tue, Jul 23, 2013 at 10:01 AM, wrote:

I am trying to run Grass 6.4 following instructions in chapter 3 of your
book using the nc_spm_08 downloaded from your site. I am using Ubuntu
12.10 64-bit, with Grass 6.4 installed from the Ubuntu Software Center,
and with SQLite 3.

I get this message when trying to run -> gis.m

GRASS 6.4.2 (nc_spm_08):~ > gis.m
GRASS 6.4.2 (nc_spm_08):~ > error reading package index
file /usr/lib/sqlite/pkgIndex.tcl: expected version number but got
"0.0."

The line in pkgIndex.tcl is:

package ifneeded sqlite 0.0. [list load [file join $dir libtclsqlite.so.0]

sqlite]

How can this be fixed?

Does anyone have a suggestion for this user?

not really, /usr/lib/sqlite/pkgIndex.tcl comes from the libsqlite-tcl package,
but that is not used or required by the grass package(s) AFAIK. I just tried
GIS.m in an Lubuntu 13.04 VM and gis.m worked ok. I did get the same error message
if I manually installed the libsqlite-tcl package (even with dbf as the db.connect
default), but other than the message in the terminal gis.m seemed to work ok.

So I'd guess an error in the other package and grass users can ignore it?

?,
Hamish

On Tue, Jul 23, 2013 at 11:52 AM, Hamish <hamish_b@yahoo.com> wrote:

MarkusN:

I got a request from an Ubuntu user related to gis.m/tcltk/sqlite but
have no idea how to help:

On Tue, Jul 23, 2013 at 10:01 AM, wrote:

I am trying to run Grass 6.4 following instructions in chapter 3 of your
book using the nc_spm_08 downloaded from your site. I am using Ubuntu
12.10 64-bit, with Grass 6.4 installed from the Ubuntu Software Center,
and with SQLite 3.

I get this message when trying to run -> gis.m

GRASS 6.4.2 (nc_spm_08):~ > gis.m
GRASS 6.4.2 (nc_spm_08):~ > error reading package index
file /usr/lib/sqlite/pkgIndex.tcl: expected version number but got
"0.0."

...

/usr/lib/sqlite/pkgIndex.tcl comes from the libsqlite-tcl package,
but that is not used or required by the grass package(s) AFAIK. I just tried
GIS.m in an Lubuntu 13.04 VM and gis.m worked ok. I did get the same error message
if I manually installed the libsqlite-tcl package (even with dbf as the db.connect
default), but other than the message in the terminal gis.m seemed to work ok.

So I'd guess an error in the other package and grass users can ignore it?

I just received an update: The issue got fixed in Ubuntu 12.10
https://bugs.launchpad.net/ubuntu/+source/sqlite/+bug/996644

So it was not a GRASS bug... good to know.

Markus

User wrote:

I am using Ubuntu 12.10 64-bit, with Grass 6.4 installed from
the Ubuntu Software Center, and with SQLite 3.

I get this message when trying to run -> gis.m

GRASS 6.4.2 (nc_spm_08):~ > gis.m
GRASS 6.4.2 (nc_spm_08):~ > error reading package index
file /usr/lib/sqlite/pkgIndex.tcl: expected version number but got
"0.0."

Hamish:

/usr/lib/sqlite/pkgIndex.tcl comes from the libsqlite-tcl package,
but that is not used or required by the grass package(s) AFAIK.
I just tried GIS.m in an Lubuntu 13.04 VM and gis.m worked ok. I
did get the same error message if I manually installed the
libsqlite-tcl package

...

So I'd guess an error in the other package and grass users can
ignore it?

Markus:

I just received an update: The issue got fixed in Ubuntu 12.10
https://bugs.launchpad.net/ubuntu/+source/sqlite/+bug/996644

but the user reported it from 12.10, and I saw the same in 13.04.
I think the "seems to work in 12.10" in the ubuntu ticket was not
correct, and the earlier debian bug it linked to was from 2009.

So it was not a GRASS bug... good to know.

Right, to be continued elsewhere..

Hamish