developer icon indicating copy to clipboard operation
developer copied to clipboard

Bugfix/installation and main

Open anuk909 opened this issue 2 years ago • 2 comments

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 https://github.com/smol-ai/developer/issues/117
  • update main + readme to use --prompt instead of just putting the string after the file, anyway doesn't work now. solves https://github.com/smol-ai/developer/issues/118

anuk909 avatar Jul 13 '23 21:07 anuk909

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: [email protected] License: Location: C:\Users\JSB-WIN\AppData\Local\Programs\Python\Python311\Lib\site-packages Requires: aiohttp, requests, tqdm Required-by:

jsbrown88 avatar Jul 28 '23 19:07 jsbrown88

Did you run poetry install before?

anuk909 avatar Jul 29 '23 18:07 anuk909