Re: [GRASS-dev] problem installing wx.metadata from g.extension

2016-02-10 Thread Blumentrath, Stefan
Hi,

I tried building from source after installing the dependencies listed here:
https://grasswiki.osgeo.org/wiki/ISO/INSPIRE_Metadata_Support#Requirements_and_installation
plus python-reportlabs.

But I get an error for g.gui.metadata saying
“Traceback (most recent call last):
  File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata", line 43, in 
import mdgrass
ImportError: No module named mdgrass
make: *** [g.gui.metadata.tmp.html] Error 1
rm g.gui.metadata.tmp.html”

I had a look at the g.gui.metadata.py but have no idea how to fix that...

It did compile after I changed line 43 in g.gui.metadata.py to:
set_path(modulename='g.gui.metadata', dirname='mdlib', 
path='/usr/local/grass-7.1.svn/scripts/')

However, when I then try to run the module I get:
“Traceback (most recent call last):
  File "/usr/local/grass-7.1.svn/scripts/g.gui.metadata", line 43, in 
set_path(modulename='g.gui.metadata', dirname='mdlib', 
path='/usr/local/grass-7.1.svn/scripts/')
  File "/usr/local/grass-7.1.svn/etc/python/grass/pygrass/utils.py", line 308, 
in set_path
return set_path(modulename=modulename, dirname=dirname, path=path)
  File "/usr/local/grass-7.1.svn/etc/python/grass/script/utils.py", line 370, 
in set_path
"(current dir '%s')." % (pathname, os.getcwd()))
ImportError: Not able to find the path 'g.gui.metadata/mdlib' directory 
(current dir '/data/home/stefan').”

I remember seeing that error before: 
http://osgeo-org.1560.x6.nabble.com/Installing-wx-metadata-fails-td5232359.html 
so maybe someone has a quick fix at hand?

Cheers
Stefan

From: grass-dev [mailto:grass-dev-boun...@lists.osgeo.org] On Behalf Of Vaclav 
Petras
Sent: 12. januar 2016 03:49
To: Martin Landa <landa.mar...@gmail.com>
Cc: GRASS developers list <grass-dev@lists.osgeo.org>
Subject: Re: [GRASS-dev] problem installing wx.metadata from g.extension


On Mon, Jan 11, 2016 at 9:54 AM, Martin Landa 
<landa.mar...@gmail.com<mailto:landa.mar...@gmail.com>> wrote:
2016-01-11 15:44 GMT+01:00 Matej Krejci 
<matejkre...@gmail.com<mailto:matejkre...@gmail.com>>:
> thanks for update wiki page, I have updated (r67551) dependency file for
> checking dependency before installation.

it would be nice to reduce number of dependencies for compiling to the
minimum. It's the reason why this extension is not available for
Windows [1]. Most of dependencies are need for running the tool but
for compiling. Now they are checked before compiling which should be
changed in the future.

Agreed, there is an post about it here:

https://lists.osgeo.org/pipermail/grass-dev/2015-February/073734.html
There is now even more examples in addons how this can be done.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] problem installing wx.metadata from g.extension

2016-01-11 Thread Margherita Di Leo
Hi,

I have problem installing wx.metadata via g.extension:

> g.extension wx.metadata
Fetching  from GRASS GIS Addons repository (be patient)...
Compiling...
Traceback (most recent call last):
  File
"/tmp/grass7-v-user-21088/tmpape9at/wx.metadata/scripts/g.gui.metadata",
line 45, in 
from mdpdffactory import PdfCreator
  File "../mdlib/mdpdffactory.py", line 13, in 
from reportlab.platypus import Paragraph, Image, Table
ImportError: No module named reportlab.platypus
make[1]: *** [g.gui.metadata.tmp.html] Error 1
Installing...
/usr/bin/install: cannot stat
‘/tmp/grass7-v-user-21088/tmpape9at/wx.metadata/docs/html/g.gui.metadata.html’:
No such file or directory
make[1]: *** [install] Error 1
make: *** [installsubdirs] Error 2
WARNING: Installation failed, sorry. Please check above error messages.

GRASS trunk installation updated today. ~/.grass7/addons was clean.
wx.metadata specific dependencies installed

Any pointers?
Thank you in advance

-- 
Margherita Di Leo
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] problem installing wx.metadata from g.extension

2016-01-11 Thread Vaclav Petras
On Mon, Jan 11, 2016 at 9:54 AM, Martin Landa 
wrote:

> 2016-01-11 15:44 GMT+01:00 Matej Krejci :
> > thanks for update wiki page, I have updated (r67551) dependency file for
> > checking dependency before installation.
>
> it would be nice to reduce number of dependencies for compiling to the
> minimum. It's the reason why this extension is not available for
> Windows [1]. Most of dependencies are need for running the tool but
> for compiling. Now they are checked before compiling which should be
> changed in the future.



Agreed, there is an post about it here:

https://lists.osgeo.org/pipermail/grass-dev/2015-February/073734.html

There is now even more examples in addons how this can be done.
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] problem installing wx.metadata from g.extension

2016-01-11 Thread Margherita Di Leo
Figured out I missed dependency python-reportlab. Not sure it's written
anywhere in https://grasswiki.osgeo.org/wiki/ISO/INSPIRE_Metadata_Support ,
I'm updating now the wiki page.

Thanks




On Mon, Jan 11, 2016 at 11:59 AM, Margherita Di Leo 
wrote:

> Hi,
>
> I have problem installing wx.metadata via g.extension:
>
> > g.extension wx.metadata
> Fetching  from GRASS GIS Addons repository (be patient)...
> Compiling...
> Traceback (most recent call last):
>   File
> "/tmp/grass7-v-user-21088/tmpape9at/wx.metadata/scripts/g.gui.metadata",
> line 45, in 
> from mdpdffactory import PdfCreator
>   File "../mdlib/mdpdffactory.py", line 13, in 
> from reportlab.platypus import Paragraph, Image, Table
> ImportError: No module named reportlab.platypus
> make[1]: *** [g.gui.metadata.tmp.html] Error 1
> Installing...
> /usr/bin/install: cannot stat
> ‘/tmp/grass7-v-user-21088/tmpape9at/wx.metadata/docs/html/g.gui.metadata.html’:
> No such file or directory
> make[1]: *** [install] Error 1
> make: *** [installsubdirs] Error 2
> WARNING: Installation failed, sorry. Please check above error messages.
>
> GRASS trunk installation updated today. ~/.grass7/addons was clean.
> wx.metadata specific dependencies installed
>
> Any pointers?
> Thank you in advance
>
> --
> Margherita Di Leo
>



-- 
Margherita Di Leo
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] problem installing wx.metadata from g.extension

2016-01-11 Thread Paulo van Breugel
On Mon, Jan 11, 2016 at 3:54 PM, Martin Landa 
wrote:

> Hi,
>
> 2016-01-11 15:44 GMT+01:00 Matej Krejci :
> > thanks for update wiki page, I have updated (r67551) dependency file for
> > checking dependency before installation.
>
> it would be nice to reduce number of dependencies for compiling to the
> minimum. It's the reason why this extension is not available for
> Windows [1]. Most of dependencies are need for running the tool but
> for compiling. Now they are checked before compiling which should be
> changed in the future.
>

In addition, the wx.metadata includes several distinct (imho) tools, most
notably g.gui.metadata and g.gui.cswbrowser. This means, I think, that if I
am interested in the first, I still need to make sure to have all the
dependencies of the latter. If that is true (and I am not sure), would it
be possible to make it separate installs?


>
> Martin
>
> [1]
> https://wingrass.fsv.cvut.cz/x86_64/grass71/addons/grass-7.1.svn/logs/wx.metadata.log
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] problem installing wx.metadata from g.extension

2016-01-11 Thread Matej Krejci
Hi Madi,
thanks for update wiki page, I have updated (r67551) dependency file for
checking dependency before installation.
ciao Matej

On Mon, Jan 11, 2016 at 2:43 PM Margherita Di Leo 
wrote:

> Figured out I missed dependency python-reportlab. Not sure it's written
> anywhere in https://grasswiki.osgeo.org/wiki/ISO/INSPIRE_Metadata_Support
> , I'm updating now the wiki page.
>
> Thanks
>
>
>
>
> On Mon, Jan 11, 2016 at 11:59 AM, Margherita Di Leo 
> wrote:
>
>> Hi,
>>
>> I have problem installing wx.metadata via g.extension:
>>
>> > g.extension wx.metadata
>> Fetching  from GRASS GIS Addons repository (be patient)...
>> Compiling...
>> Traceback (most recent call last):
>>   File
>> "/tmp/grass7-v-user-21088/tmpape9at/wx.metadata/scripts/g.gui.metadata",
>> line 45, in 
>> from mdpdffactory import PdfCreator
>>   File "../mdlib/mdpdffactory.py", line 13, in 
>> from reportlab.platypus import Paragraph, Image, Table
>> ImportError: No module named reportlab.platypus
>> make[1]: *** [g.gui.metadata.tmp.html] Error 1
>> Installing...
>> /usr/bin/install: cannot stat
>> ‘/tmp/grass7-v-user-21088/tmpape9at/wx.metadata/docs/html/g.gui.metadata.html’:
>> No such file or directory
>> make[1]: *** [install] Error 1
>> make: *** [installsubdirs] Error 2
>> WARNING: Installation failed, sorry. Please check above error messages.
>>
>> GRASS trunk installation updated today. ~/.grass7/addons was clean.
>> wx.metadata specific dependencies installed
>>
>> Any pointers?
>> Thank you in advance
>>
>> --
>> Margherita Di Leo
>>
>
>
>
> --
> Margherita Di Leo
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] problem installing wx.metadata from g.extension

2016-01-11 Thread Martin Landa
Hi,

2016-01-11 15:44 GMT+01:00 Matej Krejci :
> thanks for update wiki page, I have updated (r67551) dependency file for
> checking dependency before installation.

it would be nice to reduce number of dependencies for compiling to the
minimum. It's the reason why this extension is not available for
Windows [1]. Most of dependencies are need for running the tool but
for compiling. Now they are checked before compiling which should be
changed in the future.

Martin

[1] 
https://wingrass.fsv.cvut.cz/x86_64/grass71/addons/grass-7.1.svn/logs/wx.metadata.log

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa
___
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev