Git Product home page Git Product logo

Comments (4)

inariksit avatar inariksit commented on August 20, 2024 1

Hello @Saibo-creator, thanks for reporting the issue!

What is your GF version? Does it work with any other PGF?
You can download this (Foods grammar compiled on my computer) to make sure that the problem isn't in your GF compiler. https://listenmaa.fi/b/Foods.pgf

If that doesn't help, you can try to install the Python bindings manually, following the steps below.

1. Install the C runtime

1.1 Download the source code at gf-core.

1.2 Go to the directory gf-core/src/runtime/c, where you find installation instructions. Follow them to install the C runtime.

2) Install the Python bindings

After installing the C runtime at gf-core/src/runtime/c, go to gf-core/src/runtime/python and run the following commands:

$ python setup.py build
$ sudo python setup.py install

from gf-core.

krangelov avatar krangelov commented on August 20, 2024 1

from gf-core.

Saibo-creator avatar Saibo-creator commented on August 20, 2024 1

Hello @Saibo-creator, thanks for reporting the issue!

What is your GF version? Does it work with any other PGF? You can download this (Foods grammar compiled on my computer) to make sure that the problem isn't in your GF compiler. https://listenmaa.fi/b/Foods.pgf

If that doesn't help, you can try to install the Python bindings manually, following the steps below.

1. Install the C runtime

1.1 Download the source code at gf-core.

1.2 Go to the directory gf-core/src/runtime/c, where you find installation instructions. Follow them to install the C runtime.

2) Install the Python bindings

After installing the C runtime at gf-core/src/runtime/c, go to gf-core/src/runtime/python and run the following commands:

$ python setup.py build
$ sudo python setup.py install

Hello @inariksit , I confirm that I get the same error with https://listenmaa.fi/b/Foods.pgf

I tried to reinstall from source by following your instruction, and I get the following error message when run python setup.py build

(pgf_from_source) ➜  python git:(master) ✗ python setup.py build
In file included from pypgf.c:5:
In file included from /usr/local/include/gu/mem.h:9:
/usr/local/include/gu/defs.h:195:12: warning: this function declaration is not a prototype [-Wstrict-prototypes]
        void (*fp)();
                  ^
                   void
In file included from pypgf.c:5:
In file included from /usr/local/include/gu/mem.h:10:
/usr/local/include/gu/fun.h:6:21: warning: this function declaration is not a prototype [-Wstrict-prototypes]
typedef void (*GuFn)();
                    ^
                     void
In file included from pypgf.c:9:
In file included from /usr/local/include/pgf/pgf.h:49:
In file included from /usr/local/include/pgf/expr.h:7:
/usr/local/include/gu/seq.h:19:13: warning: this function declaration is not a prototype [-Wstrict-prototypes]
gu_empty_seq();
            ^
             void
pypgf.c:1740:77: error: too many arguments to function call, expected 6, have 7
                pgf_complete(self->concr, type, sentence, prefix, prefix_bind, parse_err, pyres->pool);
                ~~~~~~~~~~~~                                                              ^~~~~~~~~~~
/usr/local/include/pgf/pgf.h:253:1: note: 'pgf_complete' declared here
pgf_complete(PgfConcr* concr, PgfType* type, GuString string, 
^
3 warnings and 1 error generated.
error: command '/usr/bin/gcc' failed with exit code 1

It seems that install pgf==1.0 indeed fixed the error, but I guess the error when installing from source may still be an issue ?

from gf-core.

Saibo-creator avatar Saibo-creator commented on August 20, 2024

Hello @krangelov , indeed, it works with pgf==1.0

from gf-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.