[GRASS-user] not able to import and use pygrass

Markus Neteler neteler at osgeo.org
Sun Aug 2 11:31:25 PDT 2015


On Mon, Jun 29, 2015 at 6:08 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
> On Mon, Jun 29, 2015 at 11:42 AM, Moritz Lennert
>> On 29/06/15 16:57, Gra wrote:
>>>
>>> Hi I compiled Grass 7.0 (with OpenMP) on a CENTOS 7 OS.
>>>
>>> everything works properly, but I'm not able to use PYGRASS
>>>
>>> here is my first part of the codes if I add import pygrass I have the
>>> error:
>>> *
>>>      import pygrass
>>>
>>> ImportError: No module named pygrass
>>
>>
>> try
>>
>> import grass.pygrass
>>
>> pygrass is on the same level as script which you seem to be able to import
>> successfully.
>
>
> I fixed the documentation in:
>
> https://trac.osgeo.org/grass/changeset/65526
>
> When backported and updated online, it will be visible at:
>
> http://grass.osgeo.org/grass70/manuals/libpython/pygrass_modules.html

For the record: the backport has been done and the pages linked here
are up to date.

Markus


More information about the grass-user mailing list