Comments (4)
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.
from gf-core.
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 togf-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.
Hello @krangelov , indeed, it works with pgf==1.0
from gf-core.
Related Issues (20)
- Create Ubuntu PPA HOT 14
- Java bindings fail to build on windows in CI HOT 1
- "Majestic" PGF runtime HOT 91
- PGF2 lacks some functions that are available in PGF HOT 4
- Compilation hangs with `param` variants, succeeds with `record` variants
- Build fails since e4b2f281 (but works on my computer) HOT 1
- Misleading error message when using `=` in place of `:`
- GF on Docker? HOT 2
- The new nix-style Cabal is a fat monster HOT 10
- Create GF source files from a CF file HOT 2
- Java API (Windows) - No Main entry point in jpgf.jar HOT 6
- `gr -cat=S` fails, but `gr UseCl ? ? ?` succeeds HOT 1
- Error installing c runtime HOT 1
- minibar web application fails to load at local server
- python runtime compiling failed HOT 1
- complete function returns non-deterministic results
- Some example files are still in ISO-8859-1 but GF expects UTF-8 input
- Error in generated Haskell code for functions whose name starts with `ListX`
- Unable to install GF on macOS Sonoma HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gf-core.