Skip to content

Commit

Permalink
Merge branch 'Pythagora-io:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahman305 authored Mar 19, 2024
2 parents ee5ba27 + a08b470 commit 96f8287
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pilot/helpers/agents/ProductOwner.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def get_project_description(self, spec_writer):
while True:
question = 'What is the project name?'
print(question, type='ipc')
print('start an example project', type='button')
print('continue/start an example project', type='button')
project_name = ask_user(self.project, question)
if project_name is not None and project_name.lower() == 'continue':
continue
if len(project_name) <= MAX_PROJECT_NAME_LENGTH:
break
else:
Expand Down
13 changes: 12 additions & 1 deletion pilot/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@
try:
from dotenv import load_dotenv
except ImportError:
raise RuntimeError('Python environment for GPT Pilot is not completely set up: required package "python-dotenv" is missing.') from None
gpt_pilot_root = os.path.dirname(os.path.dirname(__file__))
venv_path = os.path.join(gpt_pilot_root, 'pilot-env')
requirements_path = os.path.join(gpt_pilot_root, 'requirements.txt')
if sys.prefix == sys.base_prefix:
venv_python_path = os.path.join(venv_path, 'scripts' if sys.platform == 'win32' else 'bin', 'python')
print('Python environment for GPT Pilot is not set up.')
print(f'Please create Python virtual environment: {sys.executable} -m venv {venv_path}')
print(f'Then install the required dependencies with: {venv_python_path} -m pip install -r {requirements_path}')
else:
print('Python environment for GPT Pilot is not completely set up.')
print(f'Please run `{sys.executable} -m pip install -r {requirements_path}` to finish Python setup, and rerun GPT Pilot.')
sys.exit(-1)

load_dotenv()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

VERSION = "0.1.5"
VERSION = "0.1.6"

requirements = open("requirements.txt").readlines()

Expand Down

0 comments on commit 96f8287

Please sign in to comment.