-
Notifications
You must be signed in to change notification settings - Fork 1k
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
No Module named 'openai' #117
Comments
You may need to prefix commands with or open a |
error got after running "poetry run py main.py "a test case"" ==> pip show openai please assists!!! |
error got after running "poetry run python main_no_modal.py " "prompt.md" ==> please help! |
I am having the same issue - openai_function_call cannot be imported. I've installed everything via poetry. pip list shows openai_function_call on the list. I cannot import it via python interactive shell either. Any hints? What temporarily worked for me was copying init.py file from openai_function_call directory to the main directory of smol-ai and renaming it to "openai_function_call.py". |
I also received the same error "No module named 'openai_function_call" when first trying the project and resolved it. NOTE: When we report bugs as a community, let's take the time to include the environment information to reproduce the bug, such as the name and version of the application, the version of the operating system, execution switches, etc. This aids in reproducing the error and understanding the specific circumstances. Otherwise, the messages may not be actionable. Environment
Steps to Reproduce
Steps to Resolve
NOTE: I also used |
When running the latest update - 7 hours ago from writing - I see installation instructions have changed since last night :D
no more pip install -r requirements.txt but rather poetry install. Done all that and then when I come to run any type of promt I get the following
"PS D:\Development\SMOLAI\developer> poetry install
Installing dependencies from lock file
No dependencies to install or update
Installing the current project: smol_dev (0.0.3)
PS D:\Development\SMOLAI\developer> python main.py a HTML/JS/CSS Tic Tac Toe Game
Traceback (most recent call last):
File "D:\Development\SMOLAI\developer\main.py", line 3, in
from smol_dev.prompts import plan, specify_file_paths, generate_code_sync
File "D:\Development\SMOLAI\developer\smol_dev_init_.py", line 1, in
from smol_dev.prompts import *
File "D:\Development\SMOLAI\developer\smol_dev\prompts.py", line 6, in
import openai
ModuleNotFoundError: No module named 'openai'
PS D:\Development\SMOLAI\developer> "
Still a bit of a noob but im guessing the poetry install , allthough confirming that openai is installed doesnt find it.
Great fan. Thanks so much for wat you are doing.
The text was updated successfully, but these errors were encountered: