AttributeError: module 'eventlet' has no attribute 'getcurrent'

Open
#28 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
jupyter-notebook, python
Domain
ai, api

Research direction

Reproduce the example notebook with the shown OAI_CONFIG_LIST, then inspect its setup and /site-packages/openai/_base_client.py around the reported eventlet failure. Done means the standard OpenAI configuration runs without the reported connection error, or the supported configuration and limitation are clearly documented.

Written by the indexing model from the issue text.

Description

I'm running the example notebook provided as it it. I'm using standard OpenAI not Azure based one. Below is my OAI_CONFIG_LIST.

I'm getting the error:
AttributeError: module 'eventlet' has no attribute 'getcurrent'
APIConnectionError: Connection error.

The source code for the APIConnectionError is in /site-packages/openai/_base_client.py

Does it work only with Azure OpenAI?

[
{
"model": "gpt-4o",
"api_key": api_key
}

]

Dominant language
Python
Stars
713
Forks
127
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/OptiGuide

All issues in microsoft/OptiGuide

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.