yanniedog / Autocrew

Automatically create a crew and tasks for CrewAI
Creative Commons Zero v1.0 Universal
183 stars 34 forks source link

bad import #29

Closed iplayfast closed 7 months ago

iplayfast commented 7 months ago
python autocrew.py 
Traceback (most recent call last):
  File "/home/chris/ai/aiprojects/crewai-autocrew/autocrew.py", line 28, in <module>
    from core import AutoCrew
  File "/home/chris/ai/aiprojects/crewai-autocrew/core.py", line 13, in <module>
    from openai import OpenAI
ImportError: cannot import name 'OpenAI' from 'openai' (/home/chris/anaconda3/envs/crewAI/lib/python3.11/site-packages/openai/__init__.py)

from openai import OpenAI should be import openai

iplayfast commented 7 months ago

Ah, recent update. For anyone else seeing this, this is the fix: pip install openai --upgrade

yanniedog commented 7 months ago

The core problem was that the script actually wasn't installing dependencies from requirements.txt at all (until the version I've literally just released now: 2.1.5)