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

Python package 4.1.0 broken #153

Closed
aslakhellesoy opened this issue Mar 16, 2017 · 4 comments
Closed

Python package 4.1.0 broken #153

aslakhellesoy opened this issue Mar 16, 2017 · 4 comments
Labels
🐛 bug Defect / Bug language: python library: gherkin 🔧 build Related to build / release process

Comments

@aslakhellesoy
Copy link
Contributor

From @koterpillar on March 16, 2017 22:19

gherkin-official==4.1.0 package was released to PyPI but is missing gherkin-languages.json. The example from README crashes immediately:

In [1]: from gherkin.parser import Parser
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-1-f036580b63e7> in <module>()
----> 1 from gherkin.parser import Parser

.../lib/python3.5/site-packages/gherkin/parser.py in <module>()
      2 from collections import deque
      3 from .ast_builder import AstBuilder
----> 4 from .token_matcher import TokenMatcher
      5 from .token_scanner import TokenScanner
      6 from .errors import UnexpectedEOFException, UnexpectedTokenException, ParserException, CompositeParserException

.../lib/python3.5/site-packages/gherkin/token_matcher.py in <module>()
      1 import re
----> 2 from .dialect import Dialect
      3 from .errors import NoSuchLanguageException
      4
      5

.../lib/python3.5/site-packages/gherkin/dialect.py in <module>()
      8     'gherkin-languages.json')
      9
---> 10 with io.open(DIALECT_FILE_PATH, 'r', encoding='utf-8') as file:
     11     DIALECTS = json.load(file)
     12

FileNotFoundError: [Errno 2] No such file or directory: '.../lib/python3.5/site-packages/gherkin/gherkin-languages.json'

Copied from original issue: cucumber/gherkin#260

@aslakhellesoy
Copy link
Contributor Author

Sorry about that! I just release 4.1.1 which should fix this. Please confirm.

@davmelikyan
Copy link

Thanks! Now it works.

@koterpillar
Copy link

Confirmed fixed.

@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Defect / Bug language: python library: gherkin 🔧 build Related to build / release process
Projects
None yet
Development

No branches or pull requests

3 participants