I am running macOS Monterey 12.0.1. I have followed the installation guide in the repository's README. For context, I also have a python venv in which I am using cairo which I can use to compile, deploy and interact with cairo contracts. I have also built docker containers for cairo and OpenZeppelin Nile which both appear to work without error at this time. I have built a docker container for warp (following the installation instructions in the README). I have also tried the warp installation on my Linux machine (Ubuntu 20.04) neither of which work and display the same error set out below.
On my MacBook I have installed the following with brew:
- python3.7.12
- gmp
- boost
I then created a new python venv activated it and installed sol-warp==0.2.15 with pip.
Everything appears to install properly and without error. However, when I run warp transpile I get the following error:
(sol-warp) # warp transpile ERC20.sol WARP
Traceback (most recent call last):
File "/Users/david/sol-warp/bin/warp", line 5, in
from cli.warp_cli import main
File "/Users/david/sol-warp/lib/python3.7/site-packages/cli/warp_cli.py", line 13, in
from cli.commands import _deploy, _invoke, _status
File "/Users/david/sol-warp/lib/python3.7/site-packages/cli/commands.py", line 13, in
from starkware.starknet.services.api.contract_definition import ContractDefinition
File "/Users/david/sol-warp/lib/python3.7/site-packages/starkware/starknet/services/api/contract_definition.py", line 9, in
from starkware.cairo.lang.compiler.program import Program
File "/Users/david/sol-warp/lib/python3.7/site-packages/starkware/cairo/lang/compiler/program.py", line 10, in
from starkware.cairo.lang.compiler.debug_info import DebugInfo
File "/Users/david/sol-warp/lib/python3.7/site-packages/starkware/cairo/lang/compiler/debug_info.py", line 10, in
from starkware.cairo.lang.compiler.preprocessor.flow import FlowTrackingDataActual
File "/Users/david/sol-warp/lib/python3.7/site-packages/starkware/cairo/lang/compiler/preprocessor/flow.py", line 16, in
from starkware.cairo.lang.compiler.references import FlowTrackingError, Reference
File "/Users/david/sol-warp/lib/python3.7/site-packages/starkware/cairo/lang/compiler/references.py", line 18, in
from starkware.cairo.lang.compiler.fields import ExpressionAsStr
File "/Users/david/sol-warp/lib/python3.7/site-packages/starkware/cairo/lang/compiler/fields.py", line 4, in
from starkware.cairo.lang.compiler.parser import parse_expr, parse_type
File "/Users/david/sol-warp/lib/python3.7/site-packages/starkware/cairo/lang/compiler/parser.py", line 34, in
propagate_positions=True,
File "/Users/david/sol-warp/lib/python3.7/site-packages/lark/lark.py", line 355, in init
assert_config(lexer, ('basic', 'contextual', 'dynamic', 'dynamic_complete'))
File "/Users/david/sol-warp/lib/python3.7/site-packages/lark/exceptions.py", line 21, in assert_config
raise ConfigurationError(msg % (value, options))
lark.exceptions.ConfigurationError: Got 'standard', expected one of ('basic', 'contextual', 'dynamic', 'dynamic_complete')
Your help with this would be appreciated.