Bump to Python 3.9
Opened this issue · 0 comments
slavakurilyak commented
Running python -m venv .venv
on Python 3.8 gives the following stack trace:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.8/3.8.16/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/Cellar/python@3.8/3.8.16/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/skurilyak/dev/autolang/autolang/__main__.py", line 11, in <module>
from .auto import AutoAgent
File "/Users/skurilyak/dev/autolang/autolang/auto.py", line 10, in <module>
from .reviewer import ReviewingChain
File "/Users/skurilyak/dev/autolang/autolang/reviewer.py", line 34, in <module>
class ReviewingChain(LLMChain):
File "/Users/skurilyak/dev/autolang/autolang/reviewer.py", line 40, in ReviewingChain
def review_tasks(self, this_task_id: int, completed_tasks: List[str], pending_tasks: List[str], context: str) -> deque[Dict]:
TypeError: 'type' object is not subscriptable
I recommend updating README to reflect the requirement of using Python 3.9. For example:
python3.9 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt