Closed jasredyy5 closed 2 weeks ago
Is this inside a Python virtual environment?
Is this inside a Python virtual environment?
Hi Pamela, yes.
Hm, I did see this, but I thought it was due to previous installation and went away when I started my venv over. Is this a brand new venv?
I just replicated this in a Codespace, investigating.
Hm, I did see this, but I thought it was due to previous installation and went away when I started my venv over. Is this a brand new venv?
Yes, it is a brand new venv. Tried creating new venvs couple of times and it is still the same.
I just replicated this in a Codespace, investigating.
Great. Thank you for looking in to it.
I believe I've fixed this, but I'm going to make a brand new Codespace and verify. I've pinned the otel packages to versions that appear to be compatible. The most recent version is incompatibility with the otel-openai package.
Yep that looked like a clean install. Please update or pull in that PR's fix and let me know if you have issues. You may want to delete the venv first.
Yep that looked like a clean install. Please update or pull in that PR's fix and let me know if you have issues. You may want to delete the venv first.
This worked. Thank you so much!
Description
What is wrong or what would you like to see improved?
pip install -e src/backend
While running the above command in vscode terminal in windows, getting the following error:
ERROR: Cannot install fastapi_app and opentelemetry-instrumentation-aiohttp-client because these package versions have conflicting dependencies.
Logs
pip install -e src/backend
Obtaining file:///C:/Users/jam0220/Desktop/GenAI%20Projects/rag-postgres-openai-python/src/backend Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Preparing editable metadata (pyproject.toml) ... done Requirement already satisfied: fastapi<1.0.0,>=0.111.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from fastapi_app==1.0.0) (0.115.4) Requirement already satisfied: python-dotenv<2.0.0,>=1.0.1 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from fastapi_app==1.0.0) (1.0.1) Collecting environs<12.0.0,>=11.0.0 (from fastapi_app==1.0.0) Using cached environs-11.0.0-py3-none-any.whl.metadata (13 kB) Requirement already satisfied: azure-identity<2.0.0,>=1.16.1 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from fastapi_app==1.0.0) (1.19.0) Requirement already satisfied: aiohttp<4.0.0,>=3.9.5 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from fastapi_app==1.0.0) (3.10.10) Collecting asyncpg<1.0.0,>=0.29.0 (from fastapi_app==1.0.0) Using cached asyncpg-0.30.0-cp312-cp312-win_amd64.whl.metadata (5.2 kB) Requirement already satisfied: SQLAlchemy<3.0.0,>=2.0.30 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from SQLAlchemy[asyncio]<3.0.0,>=2.0.30->fastapi_app==1.0.0) (2.0.36) Collecting pgvector<0.4.0,>=0.3.0 (from fastapi_app==1.0.0) Using cached pgvector-0.3.6-py3-none-any.whl.metadata (13 kB) Requirement already satisfied: openai<2.0.0,>=1.34.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from fastapi_app==1.0.0) (1.54.3) Collecting tiktoken<0.8.0,>=0.7.0 (from fastapi_app==1.0.0) Using cached tiktoken-0.7.0-cp312-cp312-win_amd64.whl.metadata (6.8 kB) Collecting openai-messages-token-helper<0.2.0,>=0.1.8 (from fastapi_app==1.0.0) Using cached openai_messages_token_helper-0.1.10-py3-none-any.whl.metadata (5.8 kB) Collecting azure-monitor-opentelemetry<2.0.0,>=1.6.0 (from fastapi_app==1.0.0) Using cached azure_monitor_opentelemetry-1.6.4-py3-none-any.whl.metadata (21 kB) Collecting opentelemetry-instrumentation-sqlalchemy<1.0.0,>=0.46b0 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_sqlalchemy-0.49b0-py3-none-any.whl.metadata (2.1 kB) Collecting opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_aiohttp_client-0.49b0-py3-none-any.whl.metadata (2.1 kB) Collecting opentelemetry-instrumentation-openai<1.0.0,>=0.25.6 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_openai-0.33.9-py3-none-any.whl.metadata (2.3 kB) Requirement already satisfied: aiohappyeyeballs>=2.3.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.5->fastapi_app==1.0.0) (2.4.3) Requirement already satisfied: aiosignal>=1.1.2 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.5->fastapi_app==1.0.0) (1.3.1) Requirement already satisfied: attrs>=17.3.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.5->fastapi_app==1.0.0) (24.2.0) Requirement already satisfied: frozenlist>=1.1.1 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.5->fastapi_app==1.0.0) (1.5.0) Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.5->fastapi_app==1.0.0) (6.1.0) Requirement already satisfied: yarl<2.0,>=1.12.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from aiohttp<4.0.0,>=3.9.5->fastapi_app==1.0.0) (1.17.1) Requirement already satisfied: azure-core>=1.31.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (1.32.0) Requirement already satisfied: cryptography>=2.5 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (43.0.3) Requirement already satisfied: msal>=1.30.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (1.31.0) Requirement already satisfied: msal-extensions>=1.2.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (1.2.0) Requirement already satisfied: typing-extensions>=4.0.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (4.12.2) Collecting azure-core-tracing-opentelemetry~=1.0.0b11 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached azure_core_tracing_opentelemetry-1.0.0b11-py3-none-any.whl.metadata (8.5 kB) Requirement already satisfied: azure-monitor-opentelemetry-exporter~=1.0.0b31 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) (1.0.0b32) Collecting opentelemetry-instrumentation-django~=0.49b0 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_django-0.49b0-py3-none-any.whl.metadata (2.2 kB) Collecting opentelemetry-instrumentation-fastapi~=0.49b0 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_fastapi-0.49b0-py3-none-any.whl.metadata (2.1 kB) Collecting opentelemetry-instrumentation-flask~=0.49b0 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_flask-0.49b0-py3-none-any.whl.metadata (2.1 kB) Collecting opentelemetry-instrumentation-psycopg2~=0.49b0 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_psycopg2-0.49b0-py3-none-any.whl.metadata (1.9 kB) Collecting opentelemetry-instrumentation-requests~=0.49b0 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_requests-0.49b0-py3-none-any.whl.metadata (2.5 kB) Collecting opentelemetry-instrumentation-urllib~=0.49b0 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_urllib-0.49b0-py3-none-any.whl.metadata (3.3 kB) Collecting opentelemetry-instrumentation-urllib3~=0.49b0 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_urllib3-0.49b0-py3-none-any.whl.metadata (3.4 kB) Collecting opentelemetry-resource-detector-azure~=0.1.4 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_resource_detector_azure-0.1.5-py3-none-any.whl.metadata (5.3 kB) Requirement already satisfied: opentelemetry-sdk~=1.28 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) (1.28.0) Requirement already satisfied: marshmallow>=3.13.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from environs<12.0.0,>=11.0.0->fastapi_app==1.0.0) (3.23.1) Requirement already satisfied: starlette<0.42.0,>=0.40.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from fastapi<1.0.0,>=0.111.0->fastapi_app==1.0.0) (0.41.2) Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from fastapi<1.0.0,>=0.111.0->fastapi_app==1.0.0) (2.9.2) Requirement already satisfied: anyio<5,>=3.5.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (4.6.2.post1) Requirement already satisfied: distro<2,>=1.7.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (1.9.0) Requirement already satisfied: httpx<1,>=0.23.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (0.27.2) Requirement already satisfied: jiter<1,>=0.4.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (0.7.0) Requirement already satisfied: sniffio in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (1.3.1) Requirement already satisfied: tqdm>4 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (4.67.0)
Requirement already satisfied: pillow in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from openai-messages-token-helper<0.2.0,>=0.1.8->fastapi_app==1.0.0) (10.4.0) Requirement already satisfied: opentelemetry-api~=1.12 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) (1.28.0) Collecting opentelemetry-instrumentation==0.49b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation-0.49b0-py3-none-any.whl.metadata (6.2 kB) Requirement already satisfied: opentelemetry-semantic-conventions==0.49b0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) (0.49b0) Collecting opentelemetry-util-http==0.49b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_util_http-0.49b0-py3-none-any.whl.metadata (2.5 kB) Requirement already satisfied: wrapt<2.0.0,>=1.0.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) (1.16.0) Requirement already satisfied: packaging>=18.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from opentelemetry-instrumentation==0.49b0->opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) (24.1) Requirement already satisfied: deprecated>=1.2.6 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from opentelemetry-semantic-conventions==0.49b0->opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) (1.2.14) Requirement already satisfied: importlib-metadata<=8.5.0,>=6.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from opentelemetry-api~=1.12->opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) (7.2.1) INFO: pip is looking at multiple versions of opentelemetry-instrumentation-openai to determine which version is compatible with other requirements. This could take a while. Collecting opentelemetry-instrumentation-openai<1.0.0,>=0.25.6 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_openai-0.33.8-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.33.7-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.33.6-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.33.5-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.33.4-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.33.3-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.33.2-py3-none-any.whl.metadata (2.3 kB) INFO: pip is still looking at multiple versions of opentelemetry-instrumentation-openai to determine which version is compatible with other requirements. This could take a while. Using cached opentelemetry_instrumentation_openai-0.33.1-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.33.0-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.32.2-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.32.1-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.32.0-py3-none-any.whl.metadata (2.3 kB) INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C. Using cached opentelemetry_instrumentation_openai-0.31.4-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.31.3-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.31.2-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.31.1-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.31.0-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.30.1-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.30.0-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.29.2-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.29.1-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.29.0-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.28.2-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.28.1-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.28.0-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.27.0-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.26.5-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.26.4-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.26.3-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.26.2-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.26.1-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.26.0-py3-none-any.whl.metadata (2.3 kB) Using cached opentelemetry_instrumentation_openai-0.25.6-py3-none-any.whl.metadata (2.3 kB) Collecting opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_aiohttp_client-0.48b0-py3-none-any.whl.metadata (2.1 kB) Collecting opentelemetry-instrumentation==0.48b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation-0.48b0-py3-none-any.whl.metadata (6.1 kB) Collecting opentelemetry-semantic-conventions==0.48b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_semantic_conventions-0.48b0-py3-none-any.whl.metadata (2.4 kB) Collecting opentelemetry-util-http==0.48b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_util_http-0.48b0-py3-none-any.whl.metadata (2.5 kB) Requirement already satisfied: setuptools>=16.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from opentelemetry-instrumentation==0.48b0->opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) (75.3.0) Collecting opentelemetry-api~=1.12 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_api-1.27.0-py3-none-any.whl.metadata (1.4 kB) Collecting opentelemetry-semantic-conventions-ai==0.4.2 (from opentelemetry-instrumentation-openai<1.0.0,>=0.25.6->fastapi_app==1.0.0) Using cached opentelemetry_semantic_conventions_ai-0.4.2-py3-none-any.whl.metadata (1.1 kB) INFO: pip is looking at multiple versions of opentelemetry-instrumentation-sqlalchemy to determine which version is compatible with other requirements. This could take a while. Collecting opentelemetry-instrumentation-sqlalchemy<1.0.0,>=0.46b0 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_sqlalchemy-0.48b0-py3-none-any.whl.metadata (2.1 kB) Requirement already satisfied: numpy in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from pgvector<0.4.0,>=0.3.0->fastapi_app==1.0.0) (1.26.4)
Requirement already satisfied: greenlet!=0.4.17 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from SQLAlchemy<3.0.0,>=2.0.30->SQLAlchemy[asyncio]<3.0.0,>=2.0.30->fastapi_app==1.0.0) (3.1.1) Requirement already satisfied: regex>=2022.1.18 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from tiktoken<0.8.0,>=0.7.0->fastapi_app==1.0.0) (2024.11.6) Requirement already satisfied: requests>=2.26.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from tiktoken<0.8.0,>=0.7.0->fastapi_app==1.0.0) (2.32.3) Requirement already satisfied: idna>=2.8 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from anyio<5,>=3.5.0->openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (3.10) Requirement already satisfied: six>=1.11.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-core>=1.31.0->azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (1.16.0) Requirement already satisfied: fixedint==0.1.6 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-monitor-opentelemetry-exporter~=1.0.0b31->azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) (0.1.6) Requirement already satisfied: msrest>=0.6.10 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-monitor-opentelemetry-exporter~=1.0.0b31->azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) (0.7.1) Requirement already satisfied: psutil~=5.9 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from azure-monitor-opentelemetry-exporter~=1.0.0b31->azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) (5.9.8) Requirement already satisfied: cffi>=1.12 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from cryptography>=2.5->azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (1.17.1) Requirement already satisfied: certifi in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from httpx<1,>=0.23.0->openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (2024.8.30) Requirement already satisfied: httpcore==1. in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from httpx<1,>=0.23.0->openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (1.0.6) Requirement already satisfied: h11<0.15,>=0.13 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from httpcore==1.->httpx<1,>=0.23.0->openai<2.0.0,>=1.34.0->fastapi_app==1.0.0) (0.14.0) Requirement already satisfied: PyJWT<3,>=1.0.0 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from PyJWT[crypto]<3,>=1.0.0->msal>=1.30.0->azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (2.9.0) Requirement already satisfied: portalocker<3,>=1.4 in c:\users\jam0220\desktop\genai projects\rag-postgres-openai-python.venv\lib\site-packages (from msal-extensions>=1.2.0->azure-identity<2.0.0,>=1.16.1->fastapi_app==1.0.0) (2.10.1) Collecting opentelemetry-instrumentation-wsgi==0.49b0 (from opentelemetry-instrumentation-django~=0.49b0->azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_wsgi-0.49b0-py3-none-any.whl.metadata (2.0 kB) INFO: pip is looking at multiple versions of opentelemetry-instrumentation-django to determine which version is compatible with other requirements. This could take a while. Collecting opentelemetry-instrumentation-sqlalchemy<1.0.0,>=0.46b0 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_sqlalchemy-0.47b0-py3-none-any.whl.metadata (2.1 kB) Using cached opentelemetry_instrumentation_sqlalchemy-0.46b0-py3-none-any.whl.metadata (2.0 kB) INFO: pip is still looking at multiple versions of opentelemetry-instrumentation-sqlalchemy to determine which version is compatible with other requirements. This could take a while. INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C. Collecting opentelemetry-semantic-conventions-ai==0.4.1 (from opentelemetry-instrumentation-openai<1.0.0,>=0.25.6->fastapi_app==1.0.0) Using cached opentelemetry_semantic_conventions_ai-0.4.1-py3-none-any.whl.metadata (1.1 kB) INFO: pip is still looking at multiple versions of opentelemetry-instrumentation-django to determine which version is compatible with other requirements. This could take a while. INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C. Collecting opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_aiohttp_client-0.47b0-py3-none-any.whl.metadata (2.1 kB) Collecting opentelemetry-instrumentation==0.47b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation-0.47b0-py3-none-any.whl.metadata (6.1 kB) Collecting opentelemetry-semantic-conventions==0.47b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_semantic_conventions-0.47b0-py3-none-any.whl.metadata (2.4 kB) Collecting opentelemetry-util-http==0.47b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_util_http-0.47b0-py3-none-any.whl.metadata (2.5 kB) Collecting opentelemetry-api~=1.12 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_api-1.26.0-py3-none-any.whl.metadata (1.4 kB) Collecting opentelemetry-semantic-conventions-ai==0.4.0 (from opentelemetry-instrumentation-openai<1.0.0,>=0.25.6->fastapi_app==1.0.0) Using cached opentelemetry_semantic_conventions_ai-0.4.0-py3-none-any.whl.metadata (1.1 kB) Collecting opentelemetry-semantic-conventions-ai==0.3.6 (from opentelemetry-instrumentation-openai<1.0.0,>=0.25.6->fastapi_app==1.0.0) Using cached opentelemetry_semantic_conventions_ai-0.3.6-py3-none-any.whl.metadata (1.1 kB) Collecting opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0 (from fastapi_app==1.0.0) Using cached opentelemetry_instrumentation_aiohttp_client-0.46b0-py3-none-any.whl.metadata (2.0 kB) Collecting opentelemetry-instrumentation==0.46b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_instrumentation-0.46b0-py3-none-any.whl.metadata (6.1 kB) Collecting opentelemetry-semantic-conventions==0.46b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_semantic_conventions-0.46b0-py3-none-any.whl.metadata (2.3 kB) Collecting opentelemetry-util-http==0.46b0 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_util_http-0.46b0-py3-none-any.whl.metadata (2.4 kB) Collecting opentelemetry-api~=1.12 (from opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached opentelemetry_api-1.25.0-py3-none-any.whl.metadata (1.4 kB) Collecting importlib-metadata<=7.1,>=6.0 (from opentelemetry-api~=1.12->opentelemetry-instrumentation-aiohttp-client<1.0.0,>=0.46b0->fastapi_app==1.0.0) Using cached importlib_metadata-7.1.0-py3-none-any.whl.metadata (4.7 kB) INFO: pip is looking at multiple versions of azure-monitor-opentelemetry-exporter to determine which version is compatible with other requirements. This could take a while. Collecting azure-monitor-opentelemetry-exporter~=1.0.0b31 (from azure-monitor-opentelemetry<2.0.0,>=1.6.0->fastapi_app==1.0.0) Using cached azure_monitor_opentelemetry_exporter-1.0.0b31-py2.py3-none-any.whl.metadata (32 kB) ERROR: Cannot install fastapi_app and opentelemetry-instrumentation-aiohttp-client because these package versions have conflicting dependencies.
The conflict is caused by: opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.9 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.8 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.7 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.6 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.5 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.4 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.3 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.2 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.1 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.33.0 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.32.2 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.32.1 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.32.0 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.31.4 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.31.3 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.31.2 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.31.1 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.31.0 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.30.1 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.30.0 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.29.2 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.29.1 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.29.0 depends on opentelemetry-api<2.0.0 and >=1.27.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.28.2 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.28.1 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.28.0 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.27.0 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.26.5 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.26.4 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.26.3 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.26.2 depends on opentelemetry-api<2.0.0 and >=1.26.0 opentelemetry-instrumentation-aiohttp-client 0.46b0 depends on opentelemetry-api~=1.12 opentelemetry-instrumentation 0.46b0 depends on opentelemetry-api~=1.4 opentelemetry-semantic-conventions 0.46b0 depends on opentelemetry-api==1.25.0 opentelemetry-instrumentation-openai 0.26.1 depends on opentelemetry-api<2.0.0 and >=1.26.0
To fix this you could try to:
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Environment
Describe your OS and dev environment (Codespaces, Dev Container, etc):
Windows, VS Code Terminal