Re: how to convert VB scripts to Gnumeric python

Morten Welinder <[email protected]>
Newsgroups gmane.comp.gnome.apps.gnumeric
Message-ID <CANv4PNn68RP-suvoNPocc=rKdbQ=aBK99G+mLD-ArzrWF_iXGw@mail.gmail.com>
> Where does 'gi.repository' come from?

That is created when Gnumeric is configured with --enable-introspection
(which requires that
both libgsf and goffice also are configure that way).

Debian might have put the resulting files into another package.

M.




On Wed, Apr 11, 2018 at 1:54 PM Mike McClain <[email protected]> wrote:

> On Wed, Apr 11, 2018 at 12:00:07PM +0000, [email protected]
> wrote:
> > From: Morten Welinder <[email protected]>
> > To: Gnumeric Mailing List <[email protected]>
> > Subject: Re: how to convert VB scripts to Gnumeric python
> >
> > Here's a sample that just does a numerical computation:
> >
> > $ python
> > Python 2.7.12 (default, Dec  4 2017, 14:50:18)
> > [GCC 5.4.0 20160609] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> from gi.repository import Gnm;
> > __main__:1: PyGIWarning: Gnm was imported without specifying a version
> > first. Use gi.require_version('Gnm', '1.12') before import to ensure that
> > the right version gets loaded.
> > >>> Gnm.qnorm(0.2,0,1,0,0)
> > 0.8416212335729144
> >
> > Morten
>
> mike@/deb73:~> python
> Python 2.7.3 (default, Nov 24 2017, 16:26:37)
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from gi.repository import Gnm;
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named gi.repository
>
> Not found from the gnumeric Python CL either.
> Where does 'gi.repository' come from?
> Is that from the larger Gnome desktop package?
> If it matters I'm running Debian Wheezy on a P3 w/ 256M ram.
>
> Thanks for your help,
> Mike
>
> --
> An open mind is apt to let anything in....or out!
> _______________________________________________
> gnumeric-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gnumeric-list
>

_______________________________________________
gnumeric-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnumeric-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.