You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> import thriftpy2
>>> f = open('addressbook.thrift')
>>> thriftpy2.load_fp(f, 'addressbook_thrift')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/asaka/Codes/thriftpy2/thriftpy2/parser/__init__.py", line 171, in load_fp
thrift = parse_fp(source, module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/asaka/Codes/thriftpy2/thriftpy2/parser/parser.py", line 655, in parse_fp
parser.parse(data)
File "/Users/asaka/Codes/thriftpy2/venv/lib/python3.12/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/asaka/Codes/thriftpy2/venv/lib/python3.12/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File "/Users/asaka/Codes/thriftpy2/thriftpy2/parser/parser.py", line 58, in p_include
raise ThriftParserError('Unexpected include statement while loading '
thriftpy2.parser.exc.ThriftParserError: Unexpected include statement while loading from file like object.
The text was updated successfully, but these errors were encountered:
In the project's tests directory:
The text was updated successfully, but these errors were encountered: