Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/installation and main #120

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anuk909
Copy link

@anuk909 anuk909 commented Jul 13, 2023

Change few files to fix errors that new users will encounter:

  • changed line in pyproject.toml with the file "README.md" instead of "readme.md" (poetry install doesn't work now)
  • update readme to tell users to use poetry run instead of plain python.
    solves No Module named 'openai' #117
  • update main + readme to use --prompt instead of just putting the string after the file, anyway doesn't work now.
    solves args not defined error #118

@jsbrown88
Copy link

Unfortunately this did not solve the "no openai" here is a full log :( any ideas ?

PS C:\Development\SMOLAI\developer> poetry run python main.py --prompt "a HTML/JS/CSS Tic Tac Toe Game"

Traceback (most recent call last):
File "C:\Development\SMOLAI\developer\main.py", line 3, in
from smol_dev.prompts import plan, specify_file_paths, generate_code_sync
File "C:\Development\SMOLAI\developer\smol_dev_init_.py", line 1, in
from smol_dev.prompts import *
File "C:\Development\SMOLAI\developer\smol_dev\prompts.py", line 6, in
import openai
ModuleNotFoundError: No module named 'openai'

PS C:\Development\SMOLAI\developer> pip show openai
Name: openai
Version: 0.27.8
Summary: Python client library for the OpenAI API
Home-page: https://github.com/openai/openai-python
Author: OpenAI
Author-email: support@openai.com
License:
Location: C:\Users\JSB-WIN\AppData\Local\Programs\Python\Python311\Lib\site-packages
Requires: aiohttp, requests, tqdm
Required-by:

@anuk909
Copy link
Author

anuk909 commented Jul 29, 2023

Did you run poetry install before?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants