chatgpt-retrieval-plugin icon indicating copy to clipboard operation
chatgpt-retrieval-plugin copied to clipboard

Milvus Integration Test Failed before starting test cases

Open Mikelin97 opened this issue 1 year ago • 2 comments

Bug Report

ImportError while importing test module '/Users//matchbox/chatgpt-retrieval-plugin/tests/datastore/providers/milvus/test_milvus_datastore.py'. Hint: make sure your test modules/packages have valid Python names. E ImportError: dlopen(/Users//Library/Caches/pypoetry/virtualenvs/chatgpt-retrieval-plugin-4n3DfVMU-py3.10/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_CFRelease'

To Reproduce

I was able to get the Milvus docker-compose version to be up and running on the docker on my local machine. After that I was using the command: pytest ./tests/datastore/providers/milvus/test_milvus_datastore.py. However, it produces error as mentioned above. Kind of suspecting this is an issue with macos...please verify, Thanks!

Your Environment

Python Version: 3.10.9 OS: MacOS, M1 ARM Chip pytest 7.2.2

Mikelin97 avatar Mar 29 '23 09:03 Mikelin97

Hi @Mikelin97, I can run the command on my macbook(macos 13.1) successfully:

(chatgpt-retrieval-plugin-py3.10) (base) michaelmo@YihuadeMacBook-Pro chatgpt-retrieval-plugin % pytest ./tests/datastore/providers/milvus/test_milvus_datastore.py
========================================================================= test session starts ==========================================================================
platform darwin -- Python 3.10.10, pytest-7.2.2, pluggy-1.0.0
rootdir: /Users/michaelmo/git/chatgpt-retrieval-plugin
plugins: asyncio-0.20.3, cov-4.0.0, anyio-3.6.2
asyncio: mode=strict
collected 9 items                                                                                                                                                      

tests/datastore/providers/milvus/test_milvus_datastore.py .........                                                                                              [100%]

=========================================================================== warnings summary ===========================================================================
../../Library/Caches/pypoetry/virtualenvs/chatgpt-retrieval-plugin-Fh2nRm7e-py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py:121
  /Users/michaelmo/Library/Caches/pypoetry/virtualenvs/chatgpt-retrieval-plugin-Fh2nRm7e-py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py:121: DeprecationWarning: pkg_resources is deprecated as an API
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)

../../Library/Caches/pypoetry/virtualenvs/chatgpt-retrieval-plugin-Fh2nRm7e-py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py:2870
  /Users/michaelmo/Library/Caches/pypoetry/virtualenvs/chatgpt-retrieval-plugin-Fh2nRm7e-py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================================================== 9 passed, 2 warnings in 100.80s (0:01:40) ===============================================================

The error "/lib/python3.10/site-packages/grpc/_cython/cygrpc.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '_CFRelease'" might be caused by grpcio lib. My grpcio version is 1.47.5. What is the grpcio version of yours?

yhmo avatar Apr 07 '23 13:04 yhmo

Related issue: https://github.com/openai/chatgpt-retrieval-plugin/issues/135

yhmo avatar Apr 07 '23 13:04 yhmo