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
I'm installing latest grammarinator on master and got this error when I want to generate json (I separate some rules from original json grammar file to the lexer and parser in order to successful generating output)
cityoflight:json cityoflight$ grammarinator-process JSONLexer.g4 JSONParser.g4 --no-actions -o output
-sh: grammarinator-process: command not found
cityoflight:json cityoflight$ source~/.bash_profile
cityoflight:json cityoflight$ grammarinator-process JSONLexer.g4 JSONParser.g4 --no-actions -o output
Traceback (most recent call last):
File "/Users/cityoflight/Library/Python/3.9/bin/grammarinator-process", line 5, in<module>
from grammarinator.process import execute
File "/Users/cityoflight/Library/Python/3.9/lib/python/site-packages/grammarinator/__init__.py", line 11, in<module>
from .process import FuzzerFactory
File "/Users/cityoflight/Library/Python/3.9/lib/python/site-packages/grammarinator/process.py", line 28, in<module>
from .parser import ANTLRv4Lexer, ANTLRv4Parser
File "/Users/cityoflight/Library/Python/3.9/lib/python/site-packages/grammarinator/parser/__init__.py", line 8, in<module>
from .ANTLRv4Lexer import ANTLRv4Lexer
ModuleNotFoundError: No module named 'grammarinator.parser.ANTLRv4Lexer'
But when I uninstall latest one and using old one by typing pip3 install grammarinator I'm successfully generating json output
The text was updated successfully, but these errors were encountered:
@CityOfLight77 Inspecting your log it seems that at your first trial, Grammarinator wasn't installed at all:
-sh: grammarinator-process: command not found
At the second trial, Grammarinator was installed, but its source was probably newer than the installed version, since it complained about the missing 'grammarinator.parser.ANTLRv4Lexer' module which should have been generated build time.
Lastly,
pip3 install grammarinator
worked since it installed the latest release from PyPI and not from your local repository.
What you should do to use your own checkout with the latest master is to execute the following install command from the root directory of Grammarinator:
I'm installing latest grammarinator on master and got this error when I want to generate json (I separate some rules from original json grammar file to the lexer and parser in order to successful generating output)
But when I uninstall latest one and using old one by typing
pip3 install grammarinator
I'm successfully generating json outputThe text was updated successfully, but these errors were encountered: