cucumber / common

A home for issues that are common to multiple cucumber repositories
https://cucumber.io/docs
MIT License
3.36k stars 694 forks source link

Python package 4.1.0 broken #153

Closed aslakhellesoy closed 7 years ago

aslakhellesoy commented 7 years ago

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 commented 7 years ago

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

davmelikyan commented 7 years ago

Thanks! Now it works.

koterpillar commented 7 years ago

Confirmed fixed.

lock[bot] commented 6 years ago

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.