Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lark version not fixed #45

Closed
vvmruder opened this issue Jan 5, 2018 · 2 comments
Closed

Lark version not fixed #45

vvmruder opened this issue Jan 5, 2018 · 2 comments

Comments

@vvmruder
Copy link

vvmruder commented Jan 5, 2018

In the packages setup.py file the "lark-parser" version is not fixed to a number. So if we use it now pip installs the newest version of "lark-parser" which is 0.5.1

This has a problem with this call:
https://github.com/geographika/mappyfile/blob/master/mappyfile/parser.py#L28

It seems that "lark-parser" does not support parameter "earley__all_derivations" any longer in newest version. So parsing has been corrupted in this combination.

If I install manually version 0.4.1 of "lark-parser" everything works like expected:
pip install "lark-parser==0.4.1"

Suggestion is to set version of lark-parser fix to 0.4.1 in setup.py

@erezsh
Copy link
Collaborator

erezsh commented Jan 5, 2018

Author of Lark here, any version that is 0.4.x will work.
The parameter earley__all_derivations is there just for speed optimization. In 0.5.1, it's no longer necessary and can be removed.

geographika added a commit that referenced this issue Jan 17, 2018
@geographika
Copy link
Owner

@vvmruder - thanks for noting this.
setup.py now contains the following dependency ranges:

lark-parser>=0.5, <0.6', 'jsonschema >=2.0, <3.0

The earley__all_derivations keyword was also removed with the latest v0.6.0 release.
With new releases of mappyfile I'll test with newer versions of the above and update accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants