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

[Bug]: OpenAIWrapper file path incorrect #948

Closed
Celestialchips opened this issue Dec 12, 2023 · 4 comments
Closed

[Bug]: OpenAIWrapper file path incorrect #948

Celestialchips opened this issue Dec 12, 2023 · 4 comments
Labels
setup installation and setup issues

Comments

@Celestialchips
Copy link
Collaborator

Describe the bug

from autogen import OpenAIWrapper is not calling the correct file path resulting in an error when running autogen.

Steps to reproduce

in your main project call the autogen class
from autogen and import UserProxyAgent

an error will occur

Traceback (most recent call last):
from autogen import OpenAIWrapper
ImportError: cannot import name 'OpenAIWrapper' from 'autogen' (/Users/admin/anaconda3/envs/jna/lib/python3.11/site-packages/autogen/init.py)

Expected Behavior

The error should not have appeared and should just execute the command.

Screenshots and logs

No response

Additional Information

AutoGen Version: v0.2.2
Operating System: MacOS
Python Version: 3.11.5

@Celestialchips Celestialchips added the bug Something isn't working label Dec 12, 2023
@afourney
Copy link
Member

afourney commented Dec 14, 2023

Are you by chance installing autogen via pip install -e?

@sonichi
Copy link
Collaborator

sonichi commented Dec 29, 2023

uninstalling autogen and installing pyautogen should solve this issue. #949 is not needed.

@sonichi sonichi added setup installation and setup issues and removed bug Something isn't working labels Dec 29, 2023
@ekzhu
Copy link
Collaborator

ekzhu commented Dec 30, 2023

@Celestialchips could you try reinstalling and see if that fixes your issue?

@thinkall
Copy link
Collaborator

Closing this issue due to inactivity. If you have further questions, please open a new issue or join the discussion in AutoGen Discord server: https://discord.com/invite/Yb5gwGVkE5

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

No branches or pull requests

5 participants