-
Notifications
You must be signed in to change notification settings - Fork 969
Description
Bug Description
Hello,
I spent quite some time to try to find a solution to the following error which appears when starting the job_finder_agent
ImportError: cannot import name 'Agent' from 'agents' (unknown location)
I can't explain where this agent should be. Is there something missing in the project ?
Project Name
job_finder_agent
Project Directory
advance_ai_agents
Current Behavior
`(venv) PS C:\Users\Gael\awesome-ai-apps\advance_ai_agents\job_finder_agent> streamlit run app.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://192.168.1.141:8501
────────────────────────── Traceback (most recent call last) ───────────────────────────
C:\Users\Gael\awesome-ai-apps\advance_ai_agents\job_finder_agent\venv\Lib\site-packa
ges\streamlit\runtime\scriptrunner\exec_code.py:129 in exec_func_with_error_handling
C:\Users\Gael\awesome-ai-apps\advance_ai_agents\job_finder_agent\venv\Lib\site-packa
ges\streamlit\runtime\scriptrunner\script_runner.py:669 in code_to_exec
C:\Users\Gael\awesome-ai-apps\advance_ai_agents\job_finder_agent\app.py:8 in
5 import nest_asyncio
6 import base64
7 from dotenv import load_dotenv
❱ 8 from job_agents import run_analysis
9 from mcp_server import wait_for_initialization, get_mcp_server
10
11 nest_asyncio.apply()
C:\Users\Gael\awesome-ai-apps\advance_ai_agents\job_finder_agent\job_agents.py:4 in
1 import os
2 import logging
3 import asyncio
❱ 4 from agents import (
5 │ Agent,
6 │ OpenAIChatCompletionsModel,
7 │ Runner,
────────────────────────────────────────────────────────────────────────────────────────
ImportError: cannot import name 'Agent' from 'agents' (unknown location)`
Expected Behavior
The application should start
Steps to Reproduce
Execute the exact procedure defined in the documentation to install the agent and start itOperating System
Windows
Python Version
3.13.5
Dependencies
Package Version
absl-py 2.3.1
ag-ui-protocol 0.1.10
altair 5.5.0
annotated-types 0.7.0
anthropic 0.74.1
anyio 4.11.0
argcomplete 3.6.3
astunparse 1.6.3
asyncio 4.0.0
attrs 25.4.0
Authlib 1.6.5
beartype 0.22.6
blinker 1.9.0
boto3 1.41.0
botocore 1.41.0
cachetools 6.2.2
certifi 2025.11.12
cffi 2.0.0
charset-normalizer 3.4.4
click 8.3.1
cloudpickle 3.1.2
cohere 5.20.0
colorama 0.4.6
cryptography 46.0.3
cyclopts 4.2.4
diskcache 5.6.3
distro 1.9.0
dnspython 2.8.0
docstring_parser 0.17.0
docutils 0.22.3
email-validator 2.3.0
eval_type_backport 0.3.0
exceptiongroup 1.3.0
executing 2.2.1
fastavro 1.12.1
fastmcp 2.13.1
filelock 3.20.0
flatbuffers 25.9.23
fsspec 2025.10.0
gast 0.6.0
genai-prices 0.0.42
gitdb 4.0.12
GitPython 3.1.45
google-auth 2.43.0
google-genai 1.51.0
google-pasta 0.2.0
googleapis-common-protos 1.72.0
griffe 1.15.0
groq 0.36.0
grpcio 1.76.0
gym 0.26.2
gym-notices 0.1.0
h11 0.16.0
h5py 3.15.1
hf-xet 1.2.0
httpcore 1.0.9
httpx 0.28.1
httpx-sse 0.4.0
huggingface_hub 1.1.4
idna 3.11
importlib_metadata 8.7.0
invoke 2.2.1
jaraco.classes 3.4.0
jaraco.context 6.0.1
jaraco.functools 4.3.0
Jinja2 3.1.6
jiter 0.12.0
jmespath 1.0.1
jsonschema 4.25.1
jsonschema-path 0.3.4
jsonschema-specifications 2025.9.1
keyring 25.7.0
libclang 18.1.1
logfire 4.15.0
logfire-api 4.15.0
Markdown 3.10
markdown-it-py 4.0.0
MarkupSafe 3.0.3
mcp 1.21.2
mdurl 0.1.2
mistralai 1.9.11
ml_dtypes 0.5.4
more-itertools 10.8.0
namex 0.1.0
narwhals 2.12.0
nest-asyncio 1.6.0
nexus-rpc 1.1.0
numpy 2.3.5
openai 2.8.1
openai-agents 0.6.1
openapi-pydantic 0.5.1
opentelemetry-api 1.38.0
opentelemetry-exporter-otlp-proto-common 1.38.0
opentelemetry-exporter-otlp-proto-http 1.38.0
opentelemetry-instrumentation 0.59b0
opentelemetry-instrumentation-httpx 0.59b0
opentelemetry-proto 1.38.0
opentelemetry-sdk 1.38.0
opentelemetry-semantic-conventions 0.59b0
opentelemetry-util-http 0.59b0
opt_einsum 3.4.0
optree 0.18.0
packaging 25.0
pandas 2.3.3
pathable 0.4.4
pathvalidate 3.3.1
pillow 12.0.0
pip 25.1.1
platformdirs 4.5.0
prompt_toolkit 3.0.52
protobuf 6.33.1
py-key-value-aio 0.2.8
py-key-value-shared 0.2.8
pyarrow 21.0.0
pyasn1 0.6.1
pyasn1_modules 0.4.2
pycparser 2.23
pydantic 2.12.4
pydantic-ai-slim 1.20.0
pydantic_core 2.41.5
pydantic-evals 1.20.0
pydantic-graph 1.20.0
pydantic-settings 2.12.0
pydeck 0.9.1
Pygments 2.19.2
PyJWT 2.10.1
pyperclip 1.11.0
python-dateutil 2.9.0.post0
python-dotenv 1.2.1
python-multipart 0.0.20
pytz 2025.2
pywin32 311
pywin32-ctypes 0.2.3
PyYAML 6.0.3
referencing 0.36.2
requests 2.32.5
rich 14.2.0
rich-rst 1.3.2
rpds-py 0.29.0
rsa 4.9.1
ruamel.yaml 0.18.16
ruamel.yaml.clib 0.2.15
s3transfer 0.14.0
setuptools 80.9.0
shellingham 1.5.4
six 1.17.0
smmap 5.0.2
sniffio 1.3.1
sse-starlette 3.0.3
starlette 0.50.0
streamlit 1.51.0
temporalio 1.19.0
tenacity 9.1.2
tensorboard 2.20.0
tensorboard-data-server 0.7.2
termcolor 3.2.0
tokenizers 0.22.1
toml 0.10.2
tornado 6.5.2
tqdm 4.67.1
typer-slim 0.20.0
types-protobuf 6.32.1.20251105
types-requests 2.32.4.20250913
typing_extensions 4.15.0
typing-inspection 0.4.2
tzdata 2025.2
urllib3 2.5.0
uvicorn 0.38.0
watchdog 6.0.0
wcwidth 0.2.14
websockets 15.0.1
Werkzeug 3.1.3
wheel 0.45.1
wrapt 1.17.3
zipp 3.23.0
Screenshots
No response
Additional Context
No response