Description
Just setup a venv and "pip install coconut". Tried one of the examples in the tutorial and got many many lines of error.
~$ source coconut/bin/activate
(coconut) ~$ cd python/coconut/
(coconut) ~$ bin/coconut
Coconut Interpreter v3.0.3 (Python 3.12):
(enter 'exit()' or press Ctrl-D to end)
>>> "hello world"|>print File
"/home/me/coconut/lib64/python3.12/site-packages/coconut/command/command.py", line 476, in handling_exceptions
yield
...
File "/home/me/coconut/lib64/python3.12/site-packages/coconut/compiler/util.py", line 684, in parseImpl
with self.wrapped_context():
File "/usr/lib64/python3.12/contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "/home/me/coconut/lib64/python3.12/site-packages/coconut/compiler/util.py", line 669, in wrapped_context
ParserElement.packrat_context.append(self.wrapper)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'frozenset' object has no attribute 'append'
(you should report this at https://github.com/evhub/coconut/issues/new)
Coconut exiting with error: AttributeError
(coconut) $ which python
/home/me/coconut/bin/python
(coconut) $ python --version
Python 3.12.0
Same thin happens every time so repro is easy. Let me know if you need additional information or the complete traceback.