in windows I installed pdm and created venv. In venv installed everything using pdm install then added openAi api key like:
$Env:OPENAI_API_KEY = "openai key"
after running config faced this issue:
repo_agent\RepoAgent> repoagent configure
Traceback (most recent call last):
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\Scripts\repoagent.exe__main__.py", line 4, in
from repo_agent.main import cli
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\main.py", line 12, in
from repo_agent.chat_with_repo import main as run_chat_with_repo
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\chat_with_repo__init__.py", line 3, in
from .main import main
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\chat_with_repo\main.py", line 3, in
from repo_agent.settings import setting
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\settings.py", line 1, in
from enum import StrEnum
ImportError: cannot import name 'StrEnum' from 'enum' (C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\enum.py)
in windows I installed pdm and created venv. In venv installed everything using pdm install then added openAi api key like: $Env:OPENAI_API_KEY = "openai key" after running config faced this issue: repo_agent\RepoAgent> repoagent configure Traceback (most recent call last): File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\HP\AppData\Local\Programs\Python\Python310\Scripts\repoagent.exe__main__.py", line 4, in
from repo_agent.main import cli
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\main.py", line 12, in
from repo_agent.chat_with_repo import main as run_chat_with_repo
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\chat_with_repo__init__.py", line 3, in
from .main import main
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\chat_with_repo\main.py", line 3, in
from repo_agent.settings import setting
File "C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\site-packages\repo_agent\settings.py", line 1, in
from enum import StrEnum
ImportError: cannot import name 'StrEnum' from 'enum' (C:\Users\HP\AppData\Local\Programs\Python\Python310\lib\enum.py)