Skip to content

Conversation

@wuodar
Copy link

@wuodar wuodar commented Nov 21, 2025

I'm integrating my langchain app into pipecat pipeline for voice agents. I noticed after migration to langchain v1, that pipecat have some strict constraints on numpy and therefore I can't really use it now.

❯ uv sync --prerelease=allow
  × No solution found when resolving dependencies:
  ╰─▶ Because only workbots==0.1.0 is available and workbots==0.1.0 depends on langchain-aws>=1.0.0, we can conclude that all versions of workbots depend on langchain-aws>=1.0.0.
      And because only langchain-aws<=1.0.0 is available, we can conclude that all versions of workbots depend on langchain-aws==1.0.0. (1)

      Because only the following versions of numpy are available:
          numpy<=2.3.2
          numpy==2.3.3
          numpy==2.3.4
          numpy==2.3.5
      and langchain-aws==1.0.0 depends on numpy>=2.3.2, we can conclude that langchain-aws==1.0.0 depends on numpy>=2.3.2.
      And because we know from (1) that all versions of workbots depend on langchain-aws==1.0.0, we can conclude that all versions of workbots depend on numpy>=2.3.2.
      And because numba==0.61.2 depends on numpy>=1.24,<2.3 and pipecat-ai==0.0.95 depends on numba==0.61.2, we can conclude that pipecat-ai==0.0.95 and all versions of workbots are incompatible.
      And because your project depends on pipecat-ai[websockets-base]==0.0.95 and workbots, we can conclude that your project's requirements are unsatisfiable.

@wuodar
Copy link
Author

wuodar commented Nov 21, 2025

Local tests output:

❯ uv run python --version
Python 3.13.2
❯ make test
env -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY -u AWS_SESSION_TOKEN -u BEDROCK_AWS_ACCESS_KEY_ID -u BEDROCK_AWS_SECRET_ACCESS_KEY uv run --group test pytest --disable-socket --allow-unix-socket tests/unit_tests/
Installed 36 packages in 209ms
=============================================================================================================================================================================== test session starts ================================================================================================================================================================================
platform darwin -- Python 3.13.2, pytest-8.4.2, pluggy-1.6.0
codspeed: 4.2.0b0 (disabled, mode: walltime, callgraph: not supported, timer_resolution: 41.7ns)
benchmark: 5.1.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /Users/kacperwlodarczyk/dev/contributions/langchain-aws/libs/aws
configfile: pyproject.toml
plugins: recording-0.13.4, codspeed-4.2.0b0, anyio-4.11.0, syrupy-4.9.1, socket-0.7.0, langsmith-0.4.37, benchmark-5.1.0, asyncio-0.26.0, cov-7.0.0
asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 345 items                                                                                                                                                                                                                                                                                                                                                                

tests/unit_tests/agents/test_bedrock_agents.py ........                                                                                                                                                                                                                                                                                                                      [  2%]
tests/unit_tests/agents/test_utils.py ...                                                                                                                                                                                                                                                                                                                                    [  3%]
tests/unit_tests/chat_models/test_bedrock.py .............................................................                                                                                                                                                                                                                                                                   [ 20%]
tests/unit_tests/chat_models/test_bedrock_converse.py .........X.......................................................................................................                                                                                                                                                                                                      [ 53%]
tests/unit_tests/chat_models/test_sagemaker_endpoint.py ..                                                                                                                                                                                                                                                                                                                   [ 54%]
tests/unit_tests/document_compressors/test_rerank.py ...                                                                                                                                                                                                                                                                                                                     [ 55%]
tests/unit_tests/embeddings/test_bedrock_cohere.py ........                                                                                                                                                                                                                                                                                                                  [ 57%]
tests/unit_tests/llms/test_bedrock.py .......................                                                                                                                                                                                                                                                                                                                [ 64%]
tests/unit_tests/retrievers/test_bedrock.py ............................................                                                                                                                                                                                                                                                                                     [ 76%]
tests/unit_tests/retrievers/test_s3_vectors.py .                                                                                                                                                                                                                                                                                                                             [ 77%]
tests/unit_tests/test_imports.py .                                                                                                                                                                                                                                                                                                                                           [ 77%]
tests/unit_tests/test_standard.py ....................                                                                                                                                                                                                                                                                                                                       [ 83%]
tests/unit_tests/test_utils.py ................................                                                                                                                                                                                                                                                                                                              [ 92%]
tests/unit_tests/vectorstores/test_s3_vectors.py ..........................                                                                                                                                                                                                                                                                                                  [100%]

================================================================================================================================================================================= warnings summary =================================================================================================================================================================================
tests/unit_tests/chat_models/test_bedrock_converse.py::TestBedrockStandard::test_init_streaming
  /Users/kacperwlodarczyk/dev/contributions/langchain-aws/libs/aws/.venv/lib/python3.13/site-packages/_pytest/python.py:157: UserWarning: WARNING! streaming is not default parameter.
                  streaming was transferred to model_kwargs.
                  Please confirm that streaming is what you intended.
    result = testfunction(**testargs)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

------------------------------------------------------------------------------------------ benchmark: 3 tests -----------------------------------------------------------------------------------------
Name (time in us)          Min                    Max                  Mean                StdDev              Median                 IQR            Outliers         OPS            Rounds  Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_init_time        458.7080 (1.0)       4,492.9580 (1.31)       560.7510 (1.0)        292.8502 (1.0)      475.0210 (1.0)       71.8545 (1.0)         41;93  1,783.3228 (1.0)         804           1
test_init_time        722.7090 (1.58)      3,422.6670 (1.0)      1,103.6975 (1.97)       509.4204 (1.74)     897.6460 (1.89)     399.4990 (5.56)        33;26    906.0454 (0.51)        222           1
test_init_time        725.1250 (1.58)     68,671.0420 (20.06)    1,317.2983 (2.35)     4,115.2983 (14.05)    821.6670 (1.73)     260.1870 (3.62)         1;38    759.1295 (0.43)        277           1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Legend:
  Outliers: 1 Standard Deviation from Mean; 1.5 IQR (InterQuartile Range) from 1st Quartile and 3rd Quartile.
  OPS: Operations Per Second, computed as 1 / Mean
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- snapshot report summary ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 snapshots passed.
=============================================================================================================================================================================== slowest 5 durations ================================================================================================================================================================================
1.45s call     tests/unit_tests/chat_models/test_bedrock_converse.py::TestBedrockStandard::test_init_time
0.37s call     tests/unit_tests/test_standard.py::TestBedrockStandard::test_init_time
0.25s call     tests/unit_tests/test_standard.py::TestBedrockAsConverseStandard::test_init_time
0.06s setup    tests/unit_tests/chat_models/test_bedrock_converse.py::test__messages_to_bedrock_appends_system_prompt_from_parameter[system_prompt_parameter1-expected_system1]
0.06s setup    tests/unit_tests/chat_models/test_bedrock.py::test__get_provider[us.anthropic.claude-3-7-sonnet-20250219-v1:0-None-anthropic-expectation6-us-west-2]
==================================================================================================================================================================== 344 passed, 1 xpassed, 1 warning in 4.83s =====================================================================================================================================================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant