[GRASS-user] [Ubuntu] python-grass code not working on ubuntu

Group,
What is the best way to uninstall grass (binary installed) and install the development package instead? I am at a road block. I followed the grass dev package (after having installed the binary) but i still experience the same error response. And the grass version does not show “grass 7.04 svn” but shows “grass7.04”.

Again, your suggestion is appreciated.

Regards,

Alassane

···

On Fri, Sep 16, 2016 at 6:15 AM, Sebastiaan Couwenberg <sebastic@xs4all.nl> wrote:

On 09/16/2016 02:10 PM, alassane toure wrote:

I believe i installed grass70 on my server as the main interface comes up
when i issue “grass70”. However, when i execute a python-grass code, the
response is …
ERROR: ERROR: Please install the GRASS GIS development package

ERROR: Cannot find GRASS GIS 7 start script (grass70 --config path)

Your suggestion is appreciated.

Do as the first error message states, and install the development
package: grass-dev

Kind Regards,

Bas


GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1


UbuntuGIS mailing list
Ubuntu@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/ubuntu
http://trac.osgeo.org/ubuntugis/wiki

On Thu, Sep 29, 2016 at 10:46 PM, alassane toure <atourej@gmail.com> wrote:

What is the best way to uninstall grass (binary installed) and install the
development package instead? I am at a road block. I followed the grass
dev package (after having installed the binary) but i still experience the
same error response.

I'm sorry, I don't understand. Did you executed the following command?

sudo apt-get install grass-dev

Forwarding the result to the mailing list, so that anybody can potentially
benefit.

On Fri, Sep 30, 2016 at 12:04 AM, Vaclav Petras <wenzeslaus@gmail.com>
wrote:

Did you executed the following command?

sudo apt-get install grass-dev

On Fri, Sep 30, 2016 at 8:41 AM, alassane toure <atourej@gmail.com> wrote:

I did not. But i executed it now and the code in question worked!

Group,
I am still not out the wood yet. I am now having a gdal version issue. How do i make sure my gdal code works?

/home/alassane/Programs/gdal/shaoesubset: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
ERROR 1: gdal_translate was compiled against GDAL 2.1, but the current library version is 2.2
end gdal_translate.

Thanks for your help.
Alassane

···

On Fri, Sep 30, 2016 at 8:51 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Fri, Sep 30, 2016 at 12:04 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

sudo apt-get install grass-dev
That’s want installing a development package on Ubuntu means (you can also use Synaptic or maybe even the Software Center instead of apt-get).

On Wed, 5 Oct 2016, alassane toure wrote:

ERROR 1: gdal_translate was compiled against GDAL 2.1, but the current
library version is 2.2

Alassane,

   I don't know what distribution you run; regardless, the best solution is
to re-compile gdal on your machine (running version 2.2). You might need to
rummage around a bit to find the source code for your distribution/version
but then you can build it to fit your system.

Rich

Group,
I am running a python code (worked well on earlier gdal version but not on 2.1) calling gdal with the following errors.
Inline image 1

···

The code start as follows…

#!/usr/bin/env python

import os
import sys
import subprocess
import shutil
import binascii
import tempfile

import gdal
from gdalconst import *
from datetime import datetime

Your comments/suggestions are appreciated.

Alassane

On Fri, Sep 30, 2016 at 12:04 AM, Vaclav Petras <wenzeslaus@gmail.com> wrote:

sudo apt-get install grass-dev
That’s want installing a development package on Ubuntu means (you can also use Synaptic or maybe even the Software Center instead of apt-get).